better sql update, fixed worker return, better logic on vlans

This commit is contained in:
Oliver Gorwits
2019-04-01 22:36:35 +01:00
parent a6e7943c03
commit b22c32a578
2 changed files with 28 additions and 19 deletions

View File

@@ -1,5 +1,9 @@
BEGIN;
ALTER TABLE device_port_vlan ADD COLUMN "egress_tag" boolean not null default false;
ALTER TABLE device_port_vlan ADD COLUMN "egress_tag" boolean not null default true;
UPDATE device_port_vlan SET egress_tag = true;
UPDATE device_port_vlan SET egress_tag = false WHERE native = TRUE;
COMMIT;