mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 17:46:18 +00:00
Fixing the database migration system for issue #206
This commit is contained in:
parent
bdfb3e615f
commit
7a54ca8658
6 changed files with 7 additions and 5 deletions
|
@ -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 '',
|
||||
|
|
1
code/web/private_php/setup/sql/nel_00004.sql
Normal file
1
code/web/private_php/setup/sql/nel_00004.sql
Normal file
|
@ -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 '',
|
||||
|
|
1
code/web/private_php/setup/sql/nel_ams_00002.sql
Normal file
1
code/web/private_php/setup/sql/nel_ams_00002.sql
Normal file
|
@ -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…
Reference in a new issue