Skip to content

Commit e7f82a0

Browse files
committed
fix: Replace unsignedInteger and unsignedDecimal calls
1 parent e23f764 commit e7f82a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

database/migrations/2022_02_01_233701_create_plans_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function up()
1616
$table->id();
1717
$table->integer('grace_days')->default(0);
1818
$table->string('name');
19-
$table->unsignedInteger('periodicity')->nullable();
19+
$table->integer('periodicity')->unsigned()->nullable();
2020
$table->string('periodicity_type')->nullable();
2121
$table->softDeletes();
2222
$table->timestamps();

database/migrations/2022_02_01_235540_create_features_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function up()
1818
$table->boolean('consumable');
1919
$table->boolean('quota')->default(false);
2020
$table->boolean('postpaid')->default(false);
21-
$table->unsignedInteger('periodicity')->nullable();
21+
$table->integer('periodicity')->unsigned()->nullable();
2222
$table->string('periodicity_type')->nullable();
2323
$table->softDeletes();
2424
$table->timestamps();

database/migrations/2022_02_02_000527_create_feature_consumptions_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function up()
1414
{
1515
Schema::create('feature_consumptions', function (Blueprint $table) {
1616
$table->id();
17-
$table->unsignedDecimal('consumption')->nullable();
17+
$table->decimal('consumption')->unsigned()->nullable();
1818
$table->timestamp('expired_at')->nullable();
1919
$table->foreignIdFor(\LucasDotVin\Soulbscription\Models\Feature::class)->constrained()->cascadeOnDelete();
2020
$table->timestamps();

0 commit comments

Comments
 (0)