unified formatting of db_init SQL

master
b3yond 2018-03-22 10:05:49 +01:00
parent 0e99a09ee3
commit d1b14390ec
1 changed files with 5 additions and 5 deletions

10
db.py
View File

@ -20,11 +20,11 @@ class DB(object):
def create(self): def create(self):
# init db # init db
self.cur.executescript(''' self.cur.executescript('''
CREATE TABLE user ( CREATE TABLE "user" (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
email TEXT, `email` TEXT,
passhash TEXT, `passhash` TEXT,
enabled INTEGER DEFAULT 1 `enabled` INTEGER DEFAULT 1
); );
CREATE TABLE "twitter_request_tokens" ( CREATE TABLE "twitter_request_tokens" (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,