Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12946001
2016_06_28_034600_create_users_external_sources_table.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
719 B
Referenced Files
None
Subscribers
None
2016_06_28_034600_create_users_external_sources_table.php
View Options
<?php
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateUsersExternalSourcesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'users_external_sources'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
);
$table
->
string
(
'source_name'
);
$table
->
string
(
'source_user_id'
);
$table
->
integer
(
'user_id'
)->
unsigned
();
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
foreign
(
'user_id'
)->
references
(
'id'
)->
on
(
'users'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
drop
(
'users_external_sources'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Nov 18, 18:04 (28 m, 19 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3160022
Default Alt Text
2016_06_28_034600_create_users_external_sources_table.php (719 B)
Attached To
Mode
rGROVE Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment