Files
newznab-tmux/database/migrations/2019_04_04_130055_update_releases_table.php
T
2020-02-05 17:49:39 +00:00

33 lines
696 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateReleasesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('releases', function (Blueprint $table) {
$table->string('imdbid', 100)->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('releases', function (Blueprint $table) {
$table->unsignedMediumInteger('imdbid')->nullable()->change();
});
}
}