aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/db/specific
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-16 23:04:59 +0300
committerGravatar Vitaly Takmazov2022-12-16 23:04:59 +0300
commita2fbac50db81649981f72c7ba1561f45146fcf9b (patch)
tree0454ebbba13350a960e646b6af0674411a24f7bd /src/main/resources/db/specific
parent8dcf4801a0f5cb99c6485c37871e50ec6c83905e (diff)
Fix `lastmessage` column
Diffstat (limited to 'src/main/resources/db/specific')
-rw-r--r--src/main/resources/db/specific/h2/V1.24__fix_lastmessage.sql1
-rw-r--r--src/main/resources/db/specific/mariadb/V1.24__fix_lastmessage.sql1
-rw-r--r--src/main/resources/db/specific/postgresql/V1.24__fix_lastmessage.sql1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/main/resources/db/specific/h2/V1.24__fix_lastmessage.sql b/src/main/resources/db/specific/h2/V1.24__fix_lastmessage.sql
new file mode 100644
index 00000000..399abf01
--- /dev/null
+++ b/src/main/resources/db/specific/h2/V1.24__fix_lastmessage.sql
@@ -0,0 +1 @@
+ALTER TABLE users MODIFY COLUMN lastmessage TIMESTAMP(6) NULL \ No newline at end of file
diff --git a/src/main/resources/db/specific/mariadb/V1.24__fix_lastmessage.sql b/src/main/resources/db/specific/mariadb/V1.24__fix_lastmessage.sql
new file mode 100644
index 00000000..399abf01
--- /dev/null
+++ b/src/main/resources/db/specific/mariadb/V1.24__fix_lastmessage.sql
@@ -0,0 +1 @@
+ALTER TABLE users MODIFY COLUMN lastmessage TIMESTAMP(6) NULL \ No newline at end of file
diff --git a/src/main/resources/db/specific/postgresql/V1.24__fix_lastmessage.sql b/src/main/resources/db/specific/postgresql/V1.24__fix_lastmessage.sql
new file mode 100644
index 00000000..ba3eee8c
--- /dev/null
+++ b/src/main/resources/db/specific/postgresql/V1.24__fix_lastmessage.sql
@@ -0,0 +1 @@
+ALTER TABLE users ALTER COLUMN lastmessage TYPE timestamp with time zone \ No newline at end of file