Compare commits

...

2 commits

Author SHA1 Message Date
2166cb4a9a
Merge branch 'main' into keys-namespace-id-not-null
All checks were successful
Run node --check on everything / node-check (pull_request) Successful in 9s
Make sure the server is actually able to start / boot-test (pull_request) Successful in 39s
Check project using prettier / prettier (pull_request) Successful in 41s
Run node --check on everything / node-check (push) Successful in 7s
Check project using prettier / prettier (push) Successful in 22s
Make sure the server is actually able to start / boot-test (push) Successful in 27s
2024-05-25 07:40:16 +00:00
20580e2f4b
Fix a major bug
All checks were successful
Run node --check on everything / node-check (pull_request) Successful in 8s
Make sure the server is actually able to start / prettier (pull_request) Successful in 55s
Check project using prettier / prettier (pull_request) Successful in 1m4s
2024-05-25 07:39:12 +00:00

View file

@ -1,7 +1,7 @@
-- Make sure that keys.namespace_id isn't able to be null
BEGIN;
-- 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
ALTER TABLE keys ALTER COLUMN namespace_id DROP NOT NULL;
ALTER TABLE keys ALTER COLUMN namespace_id SET NOT NULL;