aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/resources/db/migration
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-08-14 13:23:53 +0300
committerGravatar Vitaly Takmazov2018-08-14 16:45:12 +0300
commit2c1bfab10903895ece9644bc095597aaef2a75e8 (patch)
treec721f8582e2b9f1d91ab88ce7d3dfb6cd7e9d2d5 /juick-server/src/main/resources/db/migration
parentc0ac4aa5824b45ff9543f60c648625869b11b1a3 (diff)
Message editing API
Diffstat (limited to 'juick-server/src/main/resources/db/migration')
-rw-r--r--juick-server/src/main/resources/db/migration/V1.1__Add updated_at field.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-server/src/main/resources/db/migration/V1.1__Add updated_at field.sql b/juick-server/src/main/resources/db/migration/V1.1__Add updated_at field.sql
new file mode 100644
index 00000000..dac179b1
--- /dev/null
+++ b/juick-server/src/main/resources/db/migration/V1.1__Add updated_at field.sql
@@ -0,0 +1,2 @@
+ALTER TABLE messages_txt ADD COLUMN updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP;
+ALTER TABLE replies ADD COLUMN updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP;