|
|
|
@@ -0,0 +1,48 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
use App\Models\ColumnName; |
|
|
|
use App\Util\MigrationHelper; |
|
|
|
use Illuminate\Database\Migrations\Migration; |
|
|
|
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('receipt_issuing_orders', function (Blueprint $table) { |
|
|
|
$table->boolean("accept_privacy_policy")->nullable()->comment("個人情報保護方針への同意"); |
|
|
|
$table->boolean("accept_correct_entry")->nullable()->comment("虚偽の申請でないことへの同意"); |
|
|
|
$table->boolean("accept_site_policy")->nullable()->comment("運営ポリシーへの同意"); |
|
|
|
}); |
|
|
|
Schema::table('receipt_issuing_order_histories', function (Blueprint $table) { |
|
|
|
$table->boolean("accept_privacy_policy")->nullable()->comment("個人情報保護方針への同意"); |
|
|
|
$table->boolean("accept_correct_entry")->nullable()->comment("虚偽の申請でないことへの同意"); |
|
|
|
$table->boolean("accept_site_policy")->nullable()->comment("運営ポリシーへの同意"); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Reverse the migrations. |
|
|
|
* |
|
|
|
* @return void |
|
|
|
*/ |
|
|
|
public function down() |
|
|
|
{ |
|
|
|
Schema::table('receipt_issuing_orders', function (Blueprint $table) { |
|
|
|
$table->dropColumn("accept_privacy_policy"); |
|
|
|
$table->dropColumn("accept_correct_entry"); |
|
|
|
$table->dropColumn("accept_site_policy"); |
|
|
|
}); |
|
|
|
Schema::table('receipt_issuing_order_histories', function (Blueprint $table) { |
|
|
|
$table->dropColumn("accept_privacy_policy"); |
|
|
|
$table->dropColumn("accept_correct_entry"); |
|
|
|
$table->dropColumn("accept_site_policy"); |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |