Skip to content

Commit

Permalink
add migration script to V4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
guillegiu committed Oct 8, 2019
1 parent efbe553 commit b2483f5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions version_upgrades/4.5.0/4.5.0.php
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit b2483f5

Please sign in to comment.