Files
Gw0bm/database/migrations/2015_09_11_071445_create_videos_table.php
2021-06-25 08:25:11 +00:00

38 lines
881 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVideosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('videos', function(Blueprint $table) {
$table->increments('id');
$table->string('file')->unique();
$table->string('interpret')->nullable();
$table->string('songtitle')->nullable();
$table->string('imgsource')->nullable();
$table->unsignedInteger('category_id');
$table->unsignedInteger('user_id');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('videos');
}
}