add country code

This commit is contained in:
Fayyazi
2019-08-21 13:40:32 +04:30
parent 1be1afab12
commit 807e638a3b
16 changed files with 2 additions and 0 deletions
@@ -1,35 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateItemPackageTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('item_package', function (Blueprint $table) {
$table->bigIncrements('id');
$table->integer('item_id')->unsigned();
$table->integer('package_id')->unsigned();
$table->foreign('item_id')->references('id')->on('items');
$table->foreign('package_id')->references('id')->on('packages');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('item_package');
}
}