Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3311397
2019_12_20_130000_create_verification_codes_table.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
2019_12_20_130000_create_verification_codes_table.php
View Options
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
// phpcs:ignore
class
CreateVerificationCodesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'verification_codes'
,
function
(
Blueprint
$table
)
{
$table
->
bigInteger
(
'user_id'
);
$table
->
string
(
'code'
,
32
);
$table
->
string
(
'short_code'
,
16
);
$table
->
string
(
'mode'
);
$table
->
timestamp
(
'expires_at'
);
$table
->
primary
(
'code'
);
$table
->
foreign
(
'user_id'
)->
references
(
'id'
)->
on
(
'users'
)->
onDelete
(
'cascade'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
drop
(
'verification_codes'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Apr 9, 1:07 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
536120
Default Alt Text
2019_12_20_130000_create_verification_codes_table.php (862 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment