2020-04-18 21:51:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
class AddS3SignedUrlsColumnToStoragesTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table('storages', function (Blueprint $table) {
|
2020-04-27 17:35:26 +01:00
|
|
|
$table->boolean('s3_signed_urls')->default(false);
|
2020-04-18 21:51:28 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::table('storages', function (Blueprint $table) {
|
|
|
|
$table->dropColumn('s3_signed_urls');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|