cineflex/database/migrations/2011_11_22_000000_create_addresses_table.php

37 lines
925 B
PHP
Raw Normal View History

2022-11-23 09:32:34 +01:00
<?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();
2022-11-23 09:32:34 +01:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('addresses');
}
};