Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117877682
2020_11_20_130000_create_domain_settings_table.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
2020_11_20_130000_create_domain_settings_table.php
View Options
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateDomainSettingsTable
extends
Migration
{
/**
* Run the migrations.
*/
public
function
up
()
{
Schema
::
create
(
'domain_settings'
,
static
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
bigInteger
(
'domain_id'
);
$table
->
string
(
'key'
);
$table
->
text
(
'value'
);
$table
->
timestamp
(
'created_at'
)->
useCurrent
();
$table
->
timestamp
(
'updated_at'
)->
useCurrent
();
$table
->
foreign
(
'domain_id'
)->
references
(
'id'
)->
on
(
'domains'
)
->
onDelete
(
'cascade'
)->
onUpdate
(
'cascade'
);
$table
->
unique
([
'domain_id'
,
'key'
]);
}
);
}
/**
* Reverse the migrations.
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'domain_settings'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Apr 5, 9:37 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831271
Default Alt Text
2020_11_20_130000_create_domain_settings_table.php (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline