35 lines
692 B
PHP
35 lines
692 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class AddBackblazeStorageColumns extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('storages', function (Blueprint $table)
|
|
{
|
|
$table->tinyInteger('b2_bucket_type')->default(0);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('storages', function (Blueprint $table)
|
|
{
|
|
$table->dropColumn('b2_bucket_type');
|
|
});
|
|
}
|
|
}
|