dbic sync between actual db & our functions/docs (#595)

This commit is contained in:
nick n
2019-05-27 13:39:07 +02:00
committed by Oliver Gorwits
parent f2ddf175b7
commit e65f7b84c8
12 changed files with 42 additions and 73 deletions

View File

@@ -0,0 +1,14 @@
BEGIN;
alter table device_port_wireless alter column ip set not null;
alter table device_port_wireless alter column port set not null;
alter table device_port_wireless add constraint device_port_wireless_pkey primary key (ip, port);
alter table device_port_ssid alter column ip set not null;
alter table device_port_ssid alter column port set not null;
alter table device_port_ssid alter column bssid set not null;
alter table device_port_ssid add constraint device_port_ssid_pkey primary key (ip, bssid, port);
COMMIT;