|
@ -0,0 +1,31 @@ |
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint; |
|
|
|
|
|
use Illuminate\Database\Migrations\Migration; |
|
|
|
|
|
|
|
|
|
|
|
class AddMediaEndpointToDatabasesTable extends Migration |
|
|
|
|
|
{ |
|
|
|
|
|
/** |
|
|
|
|
|
* Run the migrations. |
|
|
|
|
|
* |
|
|
|
|
|
* @return void |
|
|
|
|
|
*/ |
|
|
|
|
|
public function up() |
|
|
|
|
|
{ |
|
|
|
|
|
Schema::table('databases', function (Blueprint $table) { |
|
|
|
|
|
$table->string('micropub_media_endpoint', 255); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Reverse the migrations. |
|
|
|
|
|
* |
|
|
|
|
|
* @return void |
|
|
|
|
|
*/ |
|
|
|
|
|
public function down() |
|
|
|
|
|
{ |
|
|
|
|
|
Schema::table('databases', function (Blueprint $table) { |
|
|
|
|
|
$table->dropColumn('micropub_media_endpoint'); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |