Commit ad18e65d authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Autoincrement the primary key of the active users table.

parent f43d5197
......@@ -141,6 +141,8 @@ def connect_to_mysql():
# ACTIVE USER TABLE
sql = """CREATE TABLE IF NOT EXISTS `'%s'`(
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id),
user_hash VARCHAR(500) CHARACTER SET 'utf8' NOT NULL,
user VARCHAR(50) CHARACTER SET 'utf8' NOT NULL,
CONSTRAINT `fk_active_user` FOREIGN KEY (`user`)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment