Add private columns
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-05-27 18:53:44 +02:00
parent 0c49166392
commit 35a8c59055
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?php
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('forms', function (Blueprint $table) {
$table->boolean('is_active')->default(true)->after('name');
$table->boolean('is_private')->default(false)->after('name');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('forms', function (Blueprint $table) {
$table->dropColumn('is_active');
$table->dropColumn('is_private');
});
}
};