mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Cleanup shard table
This commit is contained in:
parent
55d2685aca
commit
6f2ac8e535
2 changed files with 10 additions and 0 deletions
6
code/web/private_php/setup/sql/nel_00003.sql
Normal file
6
code/web/private_php/setup/sql/nel_00003.sql
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
ALTER TABLE `shard` DROP `prim` ;
|
||||||
|
ALTER TABLE `shard` ADD PRIMARY KEY ( `ShardId` ) ;
|
||||||
|
ALTER TABLE `shard` DROP `PatchURL` ;
|
||||||
|
ALTER TABLE `shard` DROP `DynPatchURL` ;
|
||||||
|
ALTER TABLE `shard` DROP `ClientApplication` ;
|
||||||
|
|
|
@ -61,6 +61,10 @@ function upgrade_service_databases($continue_r) {
|
||||||
$continue = update_database_structure($continue, $con, "nel_00002.sql");
|
$continue = update_database_structure($continue, $con, "nel_00002.sql");
|
||||||
$continue = set_db_version($continue, "shard", 2);
|
$continue = set_db_version($continue, "shard", 2);
|
||||||
}
|
}
|
||||||
|
if ($continue && get_db_version("shard") < 3) {
|
||||||
|
$continue = update_database_structure($continue, $con, "nel_00003.sql");
|
||||||
|
$continue = set_db_version($continue, "shard", 3);
|
||||||
|
}
|
||||||
disconnect_database($con, "shard");
|
disconnect_database($con, "shard");
|
||||||
|
|
||||||
$con = null;
|
$con = null;
|
||||||
|
|
Loading…
Reference in a new issue