Compare commits
2 commits
64affde372
...
2166cb4a9a
Author | SHA1 | Date | |
---|---|---|---|
2166cb4a9a | |||
20580e2f4b |
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
-- Make sure that keys.namespace_id isn't able to be null
|
-- Make sure that keys.namespace_id isn't able to be null
|
||||||
BEGIN;
|
BEGIN;
|
||||||
-- Remove all null keys.namespace_id values. Nuking data like this is reckless, but it's the only option.
|
-- Remove all null keys.namespace_id values. Nuking data like this is reckless, but it's the only option.
|
||||||
DROP FROM keys WHERE namespace_id = NULL;
|
DELETE FROM keys WHERE namespace_id = NULL;
|
||||||
-- Delete before adding to avoid conflicts
|
-- Delete before adding to avoid conflicts
|
||||||
ALTER TABLE keys ALTER COLUMN namespace_id DROP NOT NULL;
|
ALTER TABLE keys ALTER COLUMN namespace_id DROP NOT NULL;
|
||||||
ALTER TABLE keys ALTER COLUMN namespace_id SET NOT NULL;
|
ALTER TABLE keys ALTER COLUMN namespace_id SET NOT NULL;
|
||||||
|
|
Loading…
Reference in a new issue