tests/database/migrations/2019_09_15_100001_create_users_table.php 1 location
|
@@ 6-18 (lines=13) @@
|
| 3 |
|
use Illuminate\Database\Schema\Blueprint; |
| 4 |
|
use Illuminate\Database\Migrations\Migration; |
| 5 |
|
|
| 6 |
|
class CreateUsersTable extends Migration |
| 7 |
|
{ |
| 8 |
|
public function up() |
| 9 |
|
{ |
| 10 |
|
Schema::create('users', function (Blueprint $table) { |
| 11 |
|
$table->bigIncrements('id'); |
| 12 |
|
$table->unsignedBigInteger("supplier_id"); |
| 13 |
|
$table->timestamps(); |
| 14 |
|
|
| 15 |
|
$table->string("name"); |
| 16 |
|
}); |
| 17 |
|
} |
| 18 |
|
} |
| 19 |
|
|
tests/database/migrations/2019_09_15_100002_create_histories_table.php 1 location
|
@@ 6-18 (lines=13) @@
|
| 3 |
|
use Illuminate\Database\Schema\Blueprint; |
| 4 |
|
use Illuminate\Database\Migrations\Migration; |
| 5 |
|
|
| 6 |
|
class CreateHistoriesTable extends Migration |
| 7 |
|
{ |
| 8 |
|
public function up() |
| 9 |
|
{ |
| 10 |
|
Schema::create('histories', function (Blueprint $table) { |
| 11 |
|
$table->bigIncrements('id'); |
| 12 |
|
$table->unsignedBigInteger("user_id"); |
| 13 |
|
$table->timestamps(); |
| 14 |
|
|
| 15 |
|
$table->string("name"); |
| 16 |
|
}); |
| 17 |
|
} |
| 18 |
|
} |
| 19 |
|
|
tests/database/migrations/2019_09_15_100005_create_taggables_table.php 1 location
|
@@ 6-17 (lines=12) @@
|
| 3 |
|
use Illuminate\Database\Schema\Blueprint; |
| 4 |
|
use Illuminate\Database\Migrations\Migration; |
| 5 |
|
|
| 6 |
|
class CreateTaggablesTable extends Migration |
| 7 |
|
{ |
| 8 |
|
public function up() |
| 9 |
|
{ |
| 10 |
|
Schema::create('taggables', function (Blueprint $table) { |
| 11 |
|
$table->unsignedBigInteger('tag_id'); |
| 12 |
|
$table->unsignedBigInteger('taggable_id'); |
| 13 |
|
$table->string("taggable_type"); |
| 14 |
|
$table->timestamps(); |
| 15 |
|
}); |
| 16 |
|
} |
| 17 |
|
} |
| 18 |
|
|