mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Stable prep: Reset the brand settings and backend prefs
These have been restructured since RC version and so should be reset to avoid common bugs
This commit is contained in:
parent
171b14c6ab
commit
628031254d
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
use Backend\Models\Preference as PreferenceModel;
|
||||
use Backend\Models\BrandSetting as BrandSettingModel;
|
||||
|
||||
/**
|
||||
* This migration addresses a MySQL specific issue around STRICT MODE.
|
||||
@ -23,6 +25,10 @@ class DbBackendTimestampFix extends Migration
|
||||
foreach ($this->backendTables as $table) {
|
||||
DbDongle::convertTimestamps($table);
|
||||
}
|
||||
|
||||
// Use this opportunity to reset backend preferences and styles for stable
|
||||
PreferenceModel::instance()->resetDefault();
|
||||
BrandSettingModel::instance()->resetDefault();
|
||||
}
|
||||
|
||||
public function down()
|
||||
|
Loading…
x
Reference in New Issue
Block a user