Files
izyim-api/database/migrations/2018_04_27_083152_create_warehouses_table.php
2018-04-27 17:38:02 +08:00

42 lines
965 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWarehousesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('warehouses', function (Blueprint $table) {
$table->increments('id');
$table->string('address');
$table->string('city');
$table->integer('zip');
$table->string('state');
$table->string('contact_person');
$table->integer('contact_person_no');
$table->string('branch');
$table->string('country');
$table->string('company_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('warehouses');
}
}