Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2485203
2020_12_28_140000_create_groups_table.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
883 B
Referenced Files
None
Subscribers
None
2020_12_28_140000_create_groups_table.php
View Options
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
// phpcs:ignore
class
CreateGroupsTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'groups'
,
function
(
Blueprint
$table
)
{
$table
->
bigInteger
(
'id'
);
$table
->
string
(
'email'
)->
unique
();
$table
->
text
(
'members'
)->
nullable
();
$table
->
smallInteger
(
'status'
);
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
primary
(
'id'
);
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'groups'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 21, 7:13 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387418
Default Alt Text
2020_12_28_140000_create_groups_table.php (883 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment