mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix for TFS 0.4 guilds creation
Where guilds.checkdata and motd doesn't have default value
This commit is contained in:
parent
33d7a0436b
commit
92c0671da2
@ -158,10 +158,19 @@ if(!$db->hasColumn('accounts', 'premium_points')) {
|
||||
success($locale['step_database_adding_field'] . ' accounts.premium_points...');
|
||||
}
|
||||
|
||||
if($db->hasColumn('guilds', 'checkdata')) {
|
||||
if(query("ALTER TABLE `guilds` MODIFY `checkdata` INT NOT NULL DEFAULT 0;"))
|
||||
success($locale['step_database_modifying_field'] . ' guilds.checkdata...');
|
||||
}
|
||||
|
||||
if(!$db->hasColumn('guilds', 'motd')) {
|
||||
if(query("ALTER TABLE `guilds` ADD `motd` VARCHAR(255) NOT NULL DEFAULT '';"))
|
||||
success($locale['step_database_adding_field'] . ' guilds.motd...');
|
||||
}
|
||||
else {
|
||||
if(query("ALTER TABLE `guilds` MODIFY `motd` VARCHAR(255) NOT NULL DEFAULT '';"))
|
||||
success($locale['step_database_modifying_field'] . ' guilds.motd...');
|
||||
}
|
||||
|
||||
if(!$db->hasColumn('guilds', 'description')) {
|
||||
if(query("ALTER TABLE `guilds` ADD `description` TEXT NOT NULL;"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user