Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
ad18e65d
Commit
ad18e65d
authored
Oct 14, 2013
by
Jean Michel Rouly
Browse files
Autoincrement the primary key of the active users table.
parent
f43d5197
Changes
1
Hide whitespace changes
Inline
Side-by-side
wsgi/library.py
View file @
ad18e65d
...
...
@@ -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`)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment