Skip to content

Commit

Permalink
add system_settings data migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Apr 24, 2021
1 parent 9c2996b commit aa2db9d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions updates/v2.0.0/convert_data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php namespace Winter\Builder\Updates;

use Db;
use Winter\Storm\Database\Updates\Migration;

class ConvertData extends Migration
{
public function up()
{
Db::table('system_settings')->where('item', 'rainlab_builder_settings')->update(['item' => 'winter_builder_settings']);
}

public function down()
{
Db::table('system_settings')->where('item', 'winter_builder_settings')->update(['item' => 'rainlab_builder_settings']);
}
}
1 change: 1 addition & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@
"2.0.0":
- Rebrand to Winter.Builder
- "Fixes namespace parsing on php >= 8.0"
- v2.0.0/convert_data.php

0 comments on commit aa2db9d

Please sign in to comment.