阶段性更新

This commit is contained in:
2021-10-09 13:12:45 +08:00
parent ae95c5540b
commit d89bc90cef
248 changed files with 8676 additions and 5682 deletions

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVideosTable extends Migration
{
/**
* Run the migrations.
* @return void
*/
public function up()
{
Schema::create('videos', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('category_id')->index();
$table->string('title');
$table->string('cover');
$table->string('url')->nullable();
$table->integer('sort');
$table->timestamps();
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::dropIfExists('videos');
}
}