diff options
-rw-r--r-- | migrations/2018-04-08-172739_default_posted/down.sql | 2 | ||||
-rw-r--r-- | migrations/2018-04-08-172739_default_posted/up.sql | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/migrations/2018-04-08-172739_default_posted/down.sql b/migrations/2018-04-08-172739_default_posted/down.sql new file mode 100644 index 000000000000..64dc07e0666a --- /dev/null +++ b/migrations/2018-04-08-172739_default_posted/down.sql @@ -0,0 +1,2 @@ +ALTER TABLE threads ALTER COLUMN posted DROP DEFAULT; +ALTER TABLE posts ALTER COLUMN posted DROP DEFAULT; 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'); |