2023-03-15 17:11:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2023-11-15 09:55:31 +00:00
|
|
|
use Illuminate\Database\Query\Expression;
|
2023-03-15 17:11:38 +00:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
return new class extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table('forms', function (Blueprint $table) {
|
2023-11-15 09:55:31 +00:00
|
|
|
$table->text('editable_submissions_button_text')->default(new Expression("('Edit submission')"));
|
2023-03-15 17:11:38 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::table('forms', function (Blueprint $table) {
|
|
|
|
$table->dropColumn('editable_submissions_button_text');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|