Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

830 : Add metadata_version sequence and column in settings_metadata t… #126

Merged
merged 3 commits into from
May 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- // add metadata_version in settings_metadata table
-- Migration SQL that makes the change goes here.

CREATE SEQUENCE IF NOT EXISTS core.setting_metadata_version_seq START 1;
ALTER TABLE core.settings_metadata ADD COLUMN IF NOT EXISTS metadata_version bigint DEFAULT nextval('core.setting_metadata_version_seq');

-- //@UNDO
-- SQL to undo the change goes here.

ALTER TABLE core.settings_metadata DROP COLUMN metadata_version;
DROP SEQUENCE IF EXISTS core.setting_metadata_version_seq;