@@ -16,12 +16,14 @@ class SupportForV20 extends Migration
1616 */
1717 public function up ()
1818 {
19+ /** @phpstan-ignore-next-line */
1920 $ schema = DB ::connection ()->getSchemaBuilder ();
2021
2122 $ schema ->blueprintResolver (function ($ table , $ callback ) {
2223 return new ExtendedBlueprint ($ table , $ callback );
2324 });
2425
26+ /** @phpstan-ignore-next-line */
2527 if (!\Schema::hasTable (SystemTableName::ROLE_GROUP )) {
2628 $ schema ->create (SystemTableName::ROLE_GROUP , function (ExtendedBlueprint $ table ) {
2729 $ table ->increments ('id ' );
@@ -33,6 +35,7 @@ public function up()
3335 });
3436 }
3537
38+ /** @phpstan-ignore-next-line */
3639 if (!\Schema::hasTable (SystemTableName::ROLE_GROUP_PERMISSION )) {
3740 $ schema ->create (SystemTableName::ROLE_GROUP_PERMISSION , function (ExtendedBlueprint $ table ) {
3841 $ table ->increments ('id ' );
@@ -47,6 +50,7 @@ public function up()
4750 });
4851 }
4952
53+ /** @phpstan-ignore-next-line */
5054 if (!\Schema::hasTable (SystemTableName::ROLE_GROUP_USER_ORGANIZATION )) {
5155 $ schema ->create (SystemTableName::ROLE_GROUP_USER_ORGANIZATION , function (ExtendedBlueprint $ table ) {
5256 $ table ->increments ('id ' );
@@ -60,6 +64,7 @@ public function up()
6064 });
6165 }
6266
67+ /** @phpstan-ignore-next-line */
6368 if (!\Schema::hasTable (SystemTableName::CUSTOM_VALUE_AUTHORITABLE )) {
6469 $ schema ->create (SystemTableName::CUSTOM_VALUE_AUTHORITABLE , function (ExtendedBlueprint $ table ) {
6570 $ table ->increments ('id ' );
@@ -78,6 +83,7 @@ public function up()
7883 });
7984 }
8085
86+ /** @phpstan-ignore-next-line */
8187 if (!\Schema::hasTable (SystemTableName::NOTIFY_NAVBAR )) {
8288 $ schema ->create (SystemTableName::NOTIFY_NAVBAR , function (ExtendedBlueprint $ table ) {
8389 $ table ->increments ('id ' );
@@ -110,8 +116,11 @@ public function up()
110116 }
111117
112118 // patch role group and mail template
119+ /** @phpstan-ignore-next-line */
113120 \Artisan::call ('exment:patchdata ' , ['action ' => 'role_group ' ]);
121+ /** @phpstan-ignore-next-line */
114122 \Artisan::call ('exment:patchdata ' , ['action ' => 'notify_saved ' ]);
123+ /** @phpstan-ignore-next-line */
115124 \Artisan::call ('exment:patchdata ' , ['action ' => 'alldata_view ' ]);
116125
117126 // remove unused role
@@ -129,6 +138,7 @@ public function down()
129138 {
130139 Schema::dropIfExists (SystemTableName::NOTIFY_NAVBAR );
131140
141+ /** @phpstan-ignore-next-line */
132142 if (!\Schema::hasTable ('notifies ' )) {
133143 Schema::table ('notifies ' , function ($ table ) {
134144 $ table ->dropColumn ('custom_view_id ' );
0 commit comments