Files
exchange-2.0/database/migrations/2020_08_04_043647_create_addresses_table.php
T
2020-10-16 11:30:19 +08:00

44 lines
945 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAddressesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('addresses', function (Blueprint $table) {
$table->id();
$table->string('street_one');
$table->string('street_two')->nullable();
$table->string('city');
$table->string('state');
$table->string('post_code');
$table->string('country');
$table->integer('default');
$table->integer('billing');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('addresses');
}
}