Blame view
database/migrations/2023_05_16_062924_alter_users_table2.php
1.34 KB
2dde15d57 Утверждение переноса |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<?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('users', function (Blueprint $table) { $table->string('telephone', 50)->nullable(true); $table->string('surname', 255)->nullable(true); $table->string('name_man', 255)->nullable(true); $table->string('surname2', 255)->nullable(true); $table->boolean('is_worker')->default(false); $table->boolean('is_lookin')->default(true); $table->boolean('is_message')->default(true); $table->boolean('is_public')->default(true); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { $table->dropColumn('telephone'); $table->dropColumn('surname'); $table->dropColumn('name_man'); $table->dropColumn('surname2'); $table->dropColumn('is_worker'); $table->dropColumn('is_message'); $table->dropColumn('is_lookin'); $table->dropColumn('is_public'); }); } }; |