Fixing the database migration system for issue #206

This commit is contained in:
Rodolphe Breard 2014-09-16 22:43:36 +02:00
parent bdfb3e615f
commit 7a54ca8658
6 changed files with 7 additions and 5 deletions

View file

@ -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 '',

View file

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

View file

@ -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 '',

View file

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

View file

@ -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`)

View file

@ -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