diff --git a/packages/db/migrations/0131.do.add_default_value_to_updated_at.sql b/packages/db/migrations/0131.do.add_default_value_to_updated_at.sql index 2d856811d4..a5a4ef915c 100755 --- a/packages/db/migrations/0131.do.add_default_value_to_updated_at.sql +++ b/packages/db/migrations/0131.do.add_default_value_to_updated_at.sql @@ -4,16 +4,6 @@ BEGIN; -UPDATE omnivore.user_profile SET updated_at = created_at WHERE updated_at IS NULL; -ALTER TABLE omnivore.user_profile - ALTER COLUMN updated_at SET DEFAULT current_timestamp, - ALTER COLUMN updated_at SET NOT NULL; - -UPDATE omnivore.labels SET updated_at = created_at WHERE updated_at IS NULL; -ALTER TABLE omnivore.labels - ALTER COLUMN updated_at SET DEFAULT current_timestamp, - ALTER COLUMN updated_at SET NOT NULL; - UPDATE omnivore.highlight SET updated_at = created_at WHERE updated_at IS NULL; ALTER TABLE omnivore.highlight ALTER COLUMN updated_at SET DEFAULT current_timestamp, diff --git a/packages/db/migrations/0131.undo.add_default_value_to_updated_at.sql b/packages/db/migrations/0131.undo.add_default_value_to_updated_at.sql index 6c520c03ef..96cf9e21f8 100755 --- a/packages/db/migrations/0131.undo.add_default_value_to_updated_at.sql +++ b/packages/db/migrations/0131.undo.add_default_value_to_updated_at.sql @@ -4,10 +4,6 @@ BEGIN; -ALTER TABLE omnivore.user_profile ALTER COLUMN updated_at DROP NOT NULL; - -ALTER TABLE omnivore.labels ALTER COLUMN updated_at DROP NOT NULL; - ALTER TABLE omnivore.highlight ALTER COLUMN updated_at DROP NOT NULL; COMMIT;