aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-26 10:01:18 +0300
committerGravatar Vitaly Takmazov2018-03-26 10:01:18 +0300
commit100e7340be63f1e78537de58332df8f09fed3faf (patch)
tree6ba0ddac06253cbc4392efc8f96c5ba93826180c /juick-server-jdbc/src/main/java/com
parentc7d73736fc0d22103c490d704858ad401568ba16 (diff)
h2 schema update
Diffstat (limited to 'juick-server-jdbc/src/main/java/com')
-rw-r--r--juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java b/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java
index ee9d0baa..78c6e1d6 100644
--- a/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java
+++ b/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java
@@ -267,6 +267,10 @@ public class DataConfiguration implements TransactionManagementConfigurer {
" `descr` varchar(255) DEFAULT NULL," +
" PRIMARY KEY (`user_id`)" +
")");
+ jdbcTemplate.execute("CREATE TABLE IF NOT EXISTS `telegram_chats` (\n" +
+ " `chat_id` bigint(20) DEFAULT NULL,\n" +
+ " UNIQUE KEY `chat_id` (`chat_id`)\n" +
+ ")");
}
return jdbcTemplate;
}