mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-19 23:48:44 +00:00
Fixing the database migration system for issue #206
--HG-- branch : sha512-auth
This commit is contained in:
parent
094a23bd09
commit
5c2cc95dc9
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