From 166ec57ca1dde0eb0a309814bf01c8a7d7ffa9dd Mon Sep 17 00:00:00 2001
From: Guillaume Vagner <guillaume.vagner@supelec.fr>
Date: Sun, 24 Feb 2019 20:58:38 +0100
Subject: [PATCH] not enought bits

---
 connection-db.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/connection-db.js b/connection-db.js
index 1535e92..5d95ca1 100644
--- a/connection-db.js
+++ b/connection-db.js
@@ -28,7 +28,7 @@ function query(req) {
 
 Promise.all([
     query(`CREATE TABLE IF NOT EXISTS channel(
-    chatId INT PRIMARY KEY NOT NULL,
+    chatId BIGINT PRIMARY KEY NOT NULL,
     username TEXT,
     state TEXT,
     token TEXT,
@@ -38,7 +38,7 @@ Promise.all([
 )`),
 
     query(`CREATE TABLE IF NOT EXISTS groups(
-    chatId INT NOT NULL,
+    chatId BIGINT NOT NULL,
     grp INT,
     primary key (chatId, grp)
 )`)
@@ -71,7 +71,7 @@ function deleteChanByChatId(chatId) {
 
 function modifyChan(data) {
     return query(`
-        UPDATE channel
+            UPDATE channel
         SET username = "${data.username}",
             state = "${data.state}",
             token = "${data.token}",
-- 
GitLab