fix(migrations): display_order signed for negative legacy values
This commit is contained in:
@@ -11,7 +11,7 @@ return new class extends Migration
|
|||||||
Schema::create('categories', function (Blueprint $table) {
|
Schema::create('categories', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->unsignedInteger('display_order')->default(0);
|
$table->integer('display_order')->default(0);
|
||||||
$table->unsignedInteger('articles_count')->default(0);
|
$table->unsignedInteger('articles_count')->default(0);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
@@ -92,7 +92,7 @@ return new class extends Migration
|
|||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('url');
|
$table->string('url');
|
||||||
$table->text('note')->nullable();
|
$table->text('note')->nullable();
|
||||||
$table->unsignedInteger('display_order')->default(0);
|
$table->integer('display_order')->default(0);
|
||||||
$table->boolean('visible')->default(true);
|
$table->boolean('visible')->default(true);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user