diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T17·29+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T17·29+0200 |
commit | f281749b8c5fbd80b77159f170a5ab173ec69d71 (patch) | |
tree | 3f4c04d3677c7d5630a153cfa27d460a1b8c5da2 /migrations/2018-04-08-172739_default_posted/up.sql | |
parent | 15d460bab3d45a8253c8d1ae9cdd69223fa78095 (diff) |
feat(migrations): Default 'posted' columns to NOW()
Diffstat (limited to 'migrations/2018-04-08-172739_default_posted/up.sql')
-rw-r--r-- | migrations/2018-04-08-172739_default_posted/up.sql | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/migrations/2018-04-08-172739_default_posted/up.sql b/migrations/2018-04-08-172739_default_posted/up.sql new file mode 100644 index 000000000000..afca8181cc56 --- /dev/null +++ b/migrations/2018-04-08-172739_default_posted/up.sql @@ -0,0 +1,2 @@ +ALTER TABLE threads ALTER COLUMN posted SET DEFAULT (NOW() AT TIME ZONE 'UTC'); +ALTER TABLE posts ALTER COLUMN posted SET DEFAULT (NOW() AT TIME ZONE 'UTC'); |