migrations boolean() -> smallInteger()

This commit is contained in:
xiaomlove
2026-04-14 13:12:56 +07:00
parent 4d4af87dc9
commit 4d54e08918
45 changed files with 136 additions and 103 deletions
@@ -19,14 +19,14 @@ class CreateSearchboxTable extends Migration
Schema::create('searchbox', function (Blueprint $table) {
$table->smallIncrements('id');
$table->string('name', 30)->nullable();
$table->boolean('showsubcat')->default(0);
$table->boolean('showsource')->default(0);
$table->boolean('showmedium')->default(0);
$table->boolean('showcodec')->default(0);
$table->boolean('showstandard')->default(0);
$table->boolean('showprocessing')->default(0);
$table->boolean('showteam')->default(0);
$table->boolean('showaudiocodec')->default(0);
$table->smallInteger('showsubcat')->default(0);
$table->smallInteger('showsource')->default(0);
$table->smallInteger('showmedium')->default(0);
$table->smallInteger('showcodec')->default(0);
$table->smallInteger('showstandard')->default(0);
$table->smallInteger('showprocessing')->default(0);
$table->smallInteger('showteam')->default(0);
$table->smallInteger('showaudiocodec')->default(0);
$table->unsignedSmallInteger('catsperrow')->default(7);
$table->unsignedSmallInteger('catpadding')->default(25);
$table->text('custom_fields')->nullable();