unified formatting of db_init SQL

This commit is contained in:
b3yond 2018-03-22 10:05:49 +01:00
parent 529270a396
commit a176f856d8

10
db.py
View file

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