add migration script to V4.5.0

This commit is contained in:
Guillermo Giuliana 2019-10-08 20:20:05 -03:00
parent efbe553076
commit b2483f58c7
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?php
require_once '../mysql_connect.php';
print 'Begin update v4.5.0...' . PHP_EOL;
// Update Languages
print '[1/1] Updating languages table...' . PHP_EOL;
if ($mysql->query("SELECT * FROM language WHERE code='pl' ")->num_rows == 0) {
$mysql->query("INSERT into language VALUES(NULL, 'pl', '0', '0')");
} else {
print 'Polish language already exists' . PHP_EOL;
}
print 'Update Completed!' . PHP_EOL;