mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Ah yes, lets just spend 30 minutes trying to get a migration to run correctly.
This commit is contained in:
@@ -49,7 +49,7 @@ class ChangeToABetterUniqueServiceConfiguration extends Migration
|
||||
});
|
||||
|
||||
DB::transaction(function () {
|
||||
DB::table('service_options')->select(['id', 'author'])->get()->each(function ($option) {
|
||||
DB::table('service_options')->select(['id', 'tag'])->get()->each(function ($option) {
|
||||
DB::table('service_options')->where('id', $option->id)->update([
|
||||
'tag' => array_get(explode(':', $option->tag), 1),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user