diff --git a/registry/migrations/20231218192146_add-v1-control-file.sql b/registry/migrations/20231218192146_add-v1-control-file.sql index ce9694ae..87f71d79 100644 --- a/registry/migrations/20231218192146_add-v1-control-file.sql +++ b/registry/migrations/20231218192146_add-v1-control-file.sql @@ -4,5 +4,9 @@ CREATE TABLE IF NOT EXISTS v1.control_file id SERIAL PRIMARY KEY, extension_version_id int REFERENCES v1.extension_versions(id), absent boolean DEFAULT false, - content text + content text DEFAULT '' ); + +-- For each record in v1.extension_versions, create a record in v1.control_file +INSERT INTO v1.control_file (extension_version_id) +SELECT id FROM v1.extension_versions;