Page MenuHomeDevCentral

2016_06_28_034600_create_users_external_sources_table.php
No OneTemporary

2016_06_28_034600_create_users_external_sources_table.php

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersExternalCredentialsTable 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

Mime Type
text/x-php
Expires
Tue, Jun 16, 13:50 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3737769
Default Alt Text
2016_06_28_034600_create_users_external_sources_table.php (723 B)

Event Timeline