Skip to content

Commit

Permalink
tableExists is not static
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Sep 21, 2017
1 parent 73eeb6c commit 140cf7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/entity.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static function install(Migration $migration) {

$table = self::getTable();

if (!$DB::tableExists($table)) {
if (!$DB->tableExists($table)) {
$migration->displayMessage("Installing $table");

$query = "CREATE TABLE IF NOT EXISTS `$table` (
Expand Down
2 changes: 1 addition & 1 deletion inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ static function install(Migration $migration) {

$table = self::getTable();

if (!$DB::tableExists($table)) {
if (!$DB->tableExists($table)) {
$migration->displayMessage("Installing $table");

$query = "CREATE TABLE IF NOT EXISTS `$table` (
Expand Down
2 changes: 1 addition & 1 deletion inc/type.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static function install(Migration $migration) {

$table = self::getTable();

if (!$DB::tableExists($table)) {
if (!$DB->tableExists($table)) {
$migration->displayMessage("Installing $table");

$query = "CREATE TABLE IF NOT EXISTS `$table` (
Expand Down

0 comments on commit 140cf7f

Please sign in to comment.