Skip to content

Commit

Permalink
clean up device layers
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyg committed Aug 25, 2019
1 parent d2661bf commit a11bce7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/schema_versions/App-Netdisco-DB-58-59-PostgreSQL.sql
Expand Up @@ -4,4 +4,8 @@ ALTER TABLE users ADD COLUMN "radius" boolean DEFAULT false;

UPDATE device SET layers = NULL WHERE vendor = 'netdisco';

UPDATE device SET layers = '00000000' WHERE layers IS NULL;

ALTER TABLE device ALTER layers SET DEFAULT '00000000';

COMMIT;

0 comments on commit a11bce7

Please sign in to comment.