Fixing the database migration system for issue #206

--HG--
branch : sha512-auth
hg/feature/light_cycle
Rodolphe Breard 10 years ago
parent 094a23bd09
commit 5c2cc95dc9

@ -87,7 +87,7 @@ CREATE TABLE IF NOT EXISTS `shard` (
CREATE TABLE IF NOT EXISTS `user` (
`UId` int(10) NOT NULL,
`Login` varchar(64) NOT NULL DEFAULT '',
`Password` varchar(106) DEFAULT NULL,
`Password` varchar(13) DEFAULT NULL,
`ShardId` int(10) NOT NULL DEFAULT '-1',
`State` enum('Offline','Online') NOT NULL DEFAULT 'Offline',
`Privilege` varchar(255) NOT NULL DEFAULT '',

@ -0,0 +1 @@
ALTER TABLE `user` MODIFY `Password` VARCHAR(106);

@ -29,7 +29,7 @@ SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `ams_user` (
`UId` int(10) NOT NULL,
`Login` varchar(64) NOT NULL DEFAULT '',
`Password` varchar(106) DEFAULT NULL,
`Password` varchar(13) DEFAULT NULL,
`Email` varchar(255) NOT NULL DEFAULT '',
`Permission` int(3) NOT NULL DEFAULT '1',
`FirstName` varchar(255) NOT NULL DEFAULT '',

@ -0,0 +1 @@
ALTER TABLE `ams_user` MODIFY `Password` VARCHAR(106);

@ -5,7 +5,7 @@ DROP TABLE IF EXISTS ams_user;
CREATE TABLE IF NOT EXISTS `ams_user` (
`UId` int(10) NOT NULL AUTO_INCREMENT,
`Login` varchar(64) NOT NULL DEFAULT '',
`Password` varchar(106) DEFAULT NULL,
`Password` varchar(13) DEFAULT NULL,
`Email` varchar(255) NOT NULL DEFAULT '',
`Permission` int(3) NOT NULL DEFAULT 1,
PRIMARY KEY (`UId`)

@ -1,11 +1,11 @@
<?php
// Service
$db_nel = 3;
$db_nel = 4;
$db_nel_tool = 2;
// Support
$db_nel_ams = 1;
$db_nel_ams = 2;
$db_nel_ams_lib = 6;
// Domain

Loading…
Cancel
Save