Files
nexusphp/database/migrations/2022_09_05_235445_create_taxonomies_table.php
2022-09-06 20:45:29 +08:00

39 lines
874 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('taxonomies', function (Blueprint $table) {
$table->id();
$table->integer('mode')->default(0);
$table->string('name');
$table->string('torrent_field');
$table->string('image')->nullable(true);
$table->string('class_name')->nullable(true);
$table->integer('priority')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('taxonomies');
}
};