forked from mirror/pixelfed
Add new migration
This commit is contained in:
parent
d90cfffa3f
commit
16399e93fb
1 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,33 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class UpdateImportDatasTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('import_datas', function (Blueprint $table) {
|
||||||
|
$table->bigInteger('job_id')->unsigned()->nullable()->after('profile_id');
|
||||||
|
$table->string('original_name')->nullable()->after('stage');
|
||||||
|
$table->boolean('import_accepted')->default(false)->nullable()->after('original_name');
|
||||||
|
$table->unique(['job_id', 'original_name']);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue