Files
newznab-tmux/database/migrations/2018_01_20_200046_create_releaseextrafull_table.php
T
2019-05-07 20:56:19 +02:00

35 lines
922 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateReleaseextrafullTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('releaseextrafull', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->charset = 'utf8';
$table->collation = 'utf8_unicode_ci';
$table->integer('releases_id')->unsigned()->primary()->comment('FK to releases.id');
$table->text('mediainfo', 65535)->nullable();
$table->foreign('releases_id', 'FK_ref_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('releaseextrafull');
}
}