Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9122693
2019_09_23_071701_create_domains_table.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
828 B
Referenced Files
None
Subscribers
None
2019_09_23_071701_create_domains_table.php
View Options
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
// phpcs:ignore
class
CreateDomainsTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'domains'
,
function
(
Blueprint
$table
)
{
$table
->
bigInteger
(
'id'
);
$table
->
string
(
'namespace'
)->
unique
();
$table
->
smallinteger
(
'status'
);
$table
->
tinyinteger
(
'type'
);
$table
->
timestamp
(
'created_at'
)->
useCurrent
();
$table
->
timestamp
(
'updated_at'
)->
useCurrent
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'domains'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 30, 10:14 AM (9 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1179976
Default Alt Text
2019_09_23_071701_create_domains_table.php (828 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment