From f251338d068735d4ff4316c594194f912e817239 Mon Sep 17 00:00:00 2001 From: Aidaho12 Date: Thu, 26 Jul 2018 10:24:51 +0600 Subject: [PATCH] v2.7.2 --- app/create_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/create_db.py b/app/create_db.py index fd2b36ef..9bd3dee4 100644 --- a/app/create_db.py +++ b/app/create_db.py @@ -248,7 +248,7 @@ def update_db_v_2_4(**kwargs): def update_db_v_2_5_3(**kwargs): con, cur = get_cur() sql = """ - CREATE TABLE IF NOT EXISTS `cred` (`enable` INTEGER NOT NULL DEFAULT 1, `username` VARCHAR ( 64 ) NOT NULL, `password` VARCHAR ( 64 ) NOT NULL ); + CREATE TABLE IF NOT EXISTS `cred` (`id` integer primary key autoincrement, `enable` INTEGER NOT NULL DEFAULT 1, `username` VARCHAR ( 64 ) NOT NULL, `password` VARCHAR ( 64 ) NOT NULL ); """ try: cur.execute(sql)