Page MenuHomePhorge

2020_03_27_134609_user_table_add_role_column.php
No OneTemporary

Authored By
Unknown
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
Sat, Apr 4, 1:29 AM (1 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d1/8a/481a072b8d8bfb0d4d5d8fcfa234
Default Alt Text
2020_03_27_134609_user_table_add_role_column.php (741 B)

Event Timeline