cineflex/database/migrations/2011_11_22_000000_create_addresses_table.php

36 lines
925 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('addresses', function (Blueprint $table) {
$table->id('address_id');
$table->timestamps();
$table->string('address_street', 255);
$table->string('address_city', 255);
$table->string('address_state', 255);
$table->string('address_zip', 255);
$table->string('address_country', 255)->default('Netherlands');
$table->string('address_phone', 255)->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('addresses');
}
};