Skip to content

Commit 311ad8a

Browse files
authored
Use shops table name from config (#247)
1 parent 0f24b0c commit 311ad8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/resources/database/migrations/2022_06_09_104819_add_theme_support_level_to_users_table.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Illuminate\Database\Migrations\Migration;
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
6+
use Osiset\ShopifyApp\Util;
67

78
class AddThemeSupportLevelToUsersTable extends Migration
89
{
@@ -13,7 +14,7 @@ class AddThemeSupportLevelToUsersTable extends Migration
1314
*/
1415
public function up()
1516
{
16-
Schema::table('users', function (Blueprint $table) {
17+
Schema::table(Util::getShopsTable(), function (Blueprint $table) {
1718
$table->integer('theme_support_level')->nullable();
1819
});
1920
}
@@ -25,7 +26,7 @@ public function up()
2526
*/
2627
public function down()
2728
{
28-
Schema::table('users', function (Blueprint $table) {
29+
Schema::table(Util::getShopsTable(), function (Blueprint $table) {
2930
$table->dropColumn('theme_support_level');
3031
});
3132
}

0 commit comments

Comments
 (0)