Commit 1b232622 authored by BERJON Matthieu's avatar BERJON Matthieu

Update on auto increment constraint

A bug was found in the user database. A missing auto_autocrement
constraint was preventing the creation of new user by always using the
same ID 0.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 236801be
......@@ -42,8 +42,9 @@ ALTER TABLE `auth_user`
ADD `is_active` tinyint(1) NOT NULL;
UPDATE `auth_user` SET `username`=`email`;
ALTER TABLE `auth_user`
ADD PRIMARY KEY (`id`),
MODIFY `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT FIRST,
ADD UNIQUE KEY `username` (`username`);
-- ADD PRIMARY KEY AUTO_INCREMENT FIRST (`id`),
--
-- Create all other Django specific tables
......
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