aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src/main/java/com
diff options
context:
space:
mode:
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;
}