From f45c04a3aacc03c595c9874c7209dcfc335d3925 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 30 Apr 2016 06:01:51 +1000 Subject: [PATCH] Minor logic error Trash strict mode off during default migrations: this will occur as a one-time during the RC->stable since the code exists in the migration. --- .../2016_10_01_000009_Db_Backend_Timestamp_Fix.php | 6 +++--- modules/system/classes/UpdateManager.php | 2 -- modules/system/classes/VersionManager.php | 4 ---- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/modules/backend/database/migrations/2016_10_01_000009_Db_Backend_Timestamp_Fix.php b/modules/backend/database/migrations/2016_10_01_000009_Db_Backend_Timestamp_Fix.php index 77f0d3b40..22fd973b8 100644 --- a/modules/backend/database/migrations/2016_10_01_000009_Db_Backend_Timestamp_Fix.php +++ b/modules/backend/database/migrations/2016_10_01_000009_Db_Backend_Timestamp_Fix.php @@ -5,9 +5,9 @@ use October\Rain\Database\Updates\Migration; class DbBackendTimestampFix extends Migration { protected $backendTables = [ - 'users', - 'user_groups', - 'access_log', + 'backend_users', + 'backend_user_groups', + 'backend_access_log', ]; public function up() diff --git a/modules/system/classes/UpdateManager.php b/modules/system/classes/UpdateManager.php index 4b1518722..acf170839 100644 --- a/modules/system/classes/UpdateManager.php +++ b/modules/system/classes/UpdateManager.php @@ -366,8 +366,6 @@ class UpdateManager */ public function migrateModule($module) { - DbDongle::disableStrictMode(); - $this->migrator->run(base_path() . '/modules/'.strtolower($module).'/database/migrations'); $this->note($module); diff --git a/modules/system/classes/VersionManager.php b/modules/system/classes/VersionManager.php index a37019338..05576e27e 100644 --- a/modules/system/classes/VersionManager.php +++ b/modules/system/classes/VersionManager.php @@ -385,8 +385,6 @@ class VersionManager */ protected function applyDatabaseScript($code, $version, $script) { - DbDongle::disableStrictMode(); - /* * Execute the database PHP script */ @@ -407,8 +405,6 @@ class VersionManager */ protected function removeDatabaseScript($code, $version, $script) { - DbDongle::disableStrictMode(); - /* * Execute the database PHP script */