Browse Source

Fix migration script

master
Chocobozzz 8 years ago
parent
commit
f90f24a649
  1. 4
      migration.php

4
migration.php

@ -18,14 +18,14 @@
$req->execute(); $req->execute();
$data = $req->fetch(); $data = $req->fetch();
$sql_schema = 0; $sql_schema = -1;
if ($data['sql_schema']) { if ($data['sql_schema']) {
$sql_schema = $data['sql_schema']; $sql_schema = $data['sql_schema'];
} }
} }
// Table does not exist // Table does not exist
catch (Exception $e) { catch (Exception $e) {
$sql_schema = 0; $sql_schema = -1;
} }
// For each migrations // For each migrations

Loading…
Cancel
Save