mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
add migration script to V4.5.0
This commit is contained in:
parent
efbe553076
commit
b2483f58c7
14
version_upgrades/4.5.0/4.5.0.php
Executable file
14
version_upgrades/4.5.0/4.5.0.php
Executable 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user