@@ -12,24 +12,24 @@ public function up(): void
1212 Schema::create (config ('laravel-subscriptions.tables.plans ' ), function (Blueprint $ table ): void {
1313 $ table ->id ();
1414
15- $ table ->string ('slug ' )->unique ();
1615 $ table ->json ('name ' );
16+ $ table ->string ('slug ' )->unique ();
1717 $ table ->json ('description ' )->nullable ();
1818 $ table ->boolean ('is_active ' )->default (true );
1919 $ table ->decimal ('price ' )->default ('0.00 ' );
2020 $ table ->decimal ('signup_fee ' )->default ('0.00 ' );
2121 $ table ->string ('currency ' , 3 );
22- $ table ->smallInteger ('trial_period ' )-> unsigned ( )->default (0 );
22+ $ table ->unsignedSmallInteger ('trial_period ' )->default (0 );
2323 $ table ->string ('trial_interval ' )->default ('day ' );
24- $ table ->smallInteger ('invoice_period ' )-> unsigned ( )->default (0 );
24+ $ table ->unsignedSmallInteger ('invoice_period ' )->default (0 );
2525 $ table ->string ('invoice_interval ' )->default ('month ' );
26- $ table ->smallInteger ('grace_period ' )-> unsigned ( )->default (0 );
26+ $ table ->unsignedSmallInteger ('grace_period ' )->default (0 );
2727 $ table ->string ('grace_interval ' )->default ('day ' );
28- $ table ->tinyInteger ('prorate_day ' )-> unsigned ( )->nullable ();
29- $ table ->tinyInteger ('prorate_period ' )-> unsigned ( )->nullable ();
30- $ table ->tinyInteger ('prorate_extend_due ' )-> unsigned ( )->nullable ();
31- $ table ->smallInteger ('active_subscribers_limit ' )-> unsigned ( )->nullable ();
32- $ table ->mediumInteger ('sort_order ' )-> unsigned ( )->default (0 );
28+ $ table ->unsignedTinyInteger ('prorate_day ' )->nullable ();
29+ $ table ->unsignedTinyInteger ('prorate_period ' )->nullable ();
30+ $ table ->unsignedTinyInteger ('prorate_extend_due ' )->nullable ();
31+ $ table ->unsignedSmallInteger ('active_subscribers_limit ' )->nullable ();
32+ $ table ->unsignedSmallInteger ('sort_order ' )->default (0 );
3333
3434 $ table ->timestamps ();
3535 $ table ->softDeletes ();
0 commit comments