Page MenuHomePhorge

2020_03_27_134609_user_table_add_role_column.php
No OneTemporary

Size
741 B
Referenced Files
None
Subscribers
None

2020_03_27_134609_user_table_add_role_column.php

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// phpcs:ignore
class UserTableAddRoleColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'users',
function (Blueprint $table) {
$table->string('role')->nullable();
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table(
'users',
function (Blueprint $table) {
$table->dropColumn('role');
}
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Aug 21, 2:30 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1184270
Default Alt Text
2020_03_27_134609_user_table_add_role_column.php (741 B)

Event Timeline