diff --git a/migrations/000007_add_date_columns_to_objects.down.sql b/migrations/000007_add_date_columns_to_objects.down.sql new file mode 100644 index 00000000..b3512e68 --- /dev/null +++ b/migrations/000007_add_date_columns_to_objects.down.sql @@ -0,0 +1 @@ +ALTER TABLE dl.objects DROP COLUMN created_at; diff --git a/migrations/000007_add_date_columns_to_objects.up.sql b/migrations/000007_add_date_columns_to_objects.up.sql new file mode 100644 index 00000000..2f05d7eb --- /dev/null +++ b/migrations/000007_add_date_columns_to_objects.up.sql @@ -0,0 +1 @@ +ALTER TABLE dl.objects ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL;