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

31 lines
584 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateBinariesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('binaries', function (Blueprint $table) {
$table->unique(['collections_id', 'filenumber'], 'ux_collection_id_filenumber');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}