mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
39 lines
874 B
PHP
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');
|
|
}
|
|
};
|