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 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

Mime Type
text/x-php
Expires
Tue, Nov 18, 17:58 (6 h, 41 m)
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)

Event Timeline