diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-08-13 14:06:28 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-08-13 14:06:28 +0100 |
commit | b5710b291fd44ea7cacb9487de08bd4deba07f59 (patch) | |
tree | 4add90ef2cd7f0dce6658e20c213dcbfa3384e43 /db/schema_0034-remove-ms_current_timestamp.sql | |
parent | 60b3ea26baca8010486fc00c9e60034295e495fd (diff) | |
parent | d9e4afa5ee5e28566871d1ecfc363d547b85a7ed (diff) |
Merge branch 'speed-up-things'
Diffstat (limited to 'db/schema_0034-remove-ms_current_timestamp.sql')
-rw-r--r-- | db/schema_0034-remove-ms_current_timestamp.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/schema_0034-remove-ms_current_timestamp.sql b/db/schema_0034-remove-ms_current_timestamp.sql new file mode 100644 index 000000000..347099877 --- /dev/null +++ b/db/schema_0034-remove-ms_current_timestamp.sql @@ -0,0 +1,16 @@ +begin; + +drop table debugdate; + +ALTER TABLE problem ALTER COLUMN created SET DEFAULT current_timestamp; +ALTER TABLE problem ALTER COLUMN lastupdate SET DEFAULT current_timestamp; +ALTER TABLE comment ALTER COLUMN created SET DEFAULT current_timestamp; +ALTER TABLE token ALTER COLUMN created SET DEFAULT current_timestamp; +ALTER TABLE alert ALTER COLUMN whensubscribed SET DEFAULT current_timestamp; +ALTER TABLE alert_sent ALTER COLUMN whenqueued SET DEFAULT current_timestamp; +ALTER TABLE admin_log ALTER COLUMN whenedited SET DEFAULT current_timestamp; +ALTER TABLE moderation_original_data ALTER COLUMN created SET DEFAULT current_timestamp; + +drop function ms_current_timestamp(); + +commit; |