Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9891531
2020_03_27_134609_user_table_add_role_column.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
2020_03_27_134609_user_table_add_role_column.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment