mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
*some fixes
* fixed installing samples when for example Rook Sample already exist and other samples not * fixed some mysql error when character you trying to create already exist * fixed signature fonts finding path * removed DEFAULT '' for TEXT field. It didn't worked under some systems like MAC OS X. * moved news adding at installation from schema.sql to finish.php * removed some unused cities field from myaac_spells table * some optimizations
This commit is contained in:
@@ -61,7 +61,10 @@ if(fetchDatabaseConfig('database_version', $tmp)) { // we got version
|
||||
$tmp = (int)$tmp;
|
||||
if($tmp < DATABASE_VERSION) { // import if older
|
||||
for($i = $tmp + 1; $i <= DATABASE_VERSION; $i++) {
|
||||
require(SYSTEM . 'migrations/' . $i . '.php');
|
||||
$file = SYSTEM . 'migrations/' . $i . '.php';
|
||||
if(file_exists($file)) {
|
||||
require($file);
|
||||
}
|
||||
}
|
||||
|
||||
updateDatabaseConfig('database_version', DATABASE_VERSION);
|
||||
|
Reference in New Issue
Block a user