Skip to content

Commit

Permalink
db(add columns): created_at and updated_at
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePresman committed Jun 3, 2024
1 parent 1003675 commit 6405e0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrations/000007_add_date_columns_to_objects.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE dl.objects DROP COLUMN updated_at;
ALTER TABLE dl.objects DROP COLUMN created_at;
2 changes: 2 additions & 0 deletions migrations/000007_add_date_columns_to_objects.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE dl.objects ADD COLUMN updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL;
ALTER TABLE dl.objects ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL;

0 comments on commit 6405e0b

Please sign in to comment.