aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-07 03:49:09 +0300
committerGravatar Vitaly Takmazov2019-04-07 03:49:09 +0300
commitf1278ae7119fcb77326c6d520915ecaa1527d39c (patch)
tree3d0c5eac7cef2c3e08ab9f5260f2f0dfc14d4532 /src/main/resources
parent97b37acdaee5d1665c2393254bc764bb4562729c (diff)
Edit telegram messages
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/db/migration/V1.21__recreate messages_properties with correct index.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/resources/db/migration/V1.21__recreate messages_properties with correct index.sql b/src/main/resources/db/migration/V1.21__recreate messages_properties with correct index.sql
new file mode 100644
index 00000000..685318af
--- /dev/null
+++ b/src/main/resources/db/migration/V1.21__recreate messages_properties with correct index.sql
@@ -0,0 +1,8 @@
+DROP TABLE messages_properties;
+CREATE TABLE messages_properties (
+ message_id int(10) unsigned NOT NULL,
+ reply_id smallint(5) unsigned NOT NULL,
+ property_key varchar(255) NOT NULL,
+ property_value mediumtext NOT NULL,
+ UNIQUE KEY message_key(message_id, reply_id, property_key)
+) \ No newline at end of file