Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7057517
2022_10_10_100000_signup_codes_user_id.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
2022_10_10_100000_signup_codes_user_id.php
View Options
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Schema
;
return
new
class
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'signup_codes'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'verify_ip_address'
)->
index
()->
nullable
();
$table
->
string
(
'submit_ip_address'
)->
index
()->
nullable
();
$table
->
bigInteger
(
'user_id'
)->
index
()->
nullable
();
$table
->
foreign
(
'user_id'
)->
references
(
'id'
)->
on
(
'users'
)
->
onUpdate
(
'cascade'
)->
onDelete
(
'cascade'
);
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'signup_codes'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
([
'user_id'
]);
$table
->
dropColumn
(
'user_id'
);
$table
->
dropColumn
(
'verify_ip_address'
);
$table
->
dropColumn
(
'submit_ip_address'
);
}
);
}
};
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 12, 4:00 AM (17 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914755
Default Alt Text
2022_10_10_100000_signup_codes_user_id.php (1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment