Skip to content

Commit

Permalink
Create control_file record for each existing extension and set defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstanton committed Dec 18, 2023
1 parent 621ef43 commit 35b8a79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion registry/migrations/20231218192146_add-v1-control-file.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 35b8a79

Please sign in to comment.