diff --git a/install/ajax/process-migration.php b/install/ajax/process-migration.php index 6bd6e294..7347bde3 100644 --- a/install/ajax/process-migration.php +++ b/install/ajax/process-migration.php @@ -1,27 +1,10 @@ "{$file} not found!", 500)); - } -}); require(HESK_PATH . 'install/migrations/core.php'); @@ -34,9 +17,9 @@ $migration = $allMigrations[$request['migrationNumber']]; hesk_dbConnect(); if ($request['direction'] === 'up') { - $migration->up($hesk_settings); + //$migration->up($hesk_settings); } elseif ($request['direction'] === 'down') { - $migration->down($hesk_settings); + //$migration->down($hesk_settings); } else { output(array("message" => "Invalid direction provided"), 400); } diff --git a/install/migrations/core.php b/install/migrations/core.php index c7a93a1d..732d9726 100644 --- a/install/migrations/core.php +++ b/install/migrations/core.php @@ -1,4 +1,20 @@ "{$file} not found!", 500)); + } +}); function getAllMigrations() { return array(