address field detailed (city, zip_code, state, country)
This commit is contained in:
35
database/migrations/2021_09_01_000000_core_v2124.php
Normal file
35
database/migrations/2021_09_01_000000_core_v2124.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CoreV2124 extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('contacts', function (Blueprint $table) {
|
||||
$table->string('country')->nullable()->after('address');
|
||||
$table->string('state')->nullable()->after('address');
|
||||
$table->string('zip_code')->nullable()->after('address');
|
||||
$table->string('city')->nullable()->after('address');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('contacts', function (Blueprint $table) {
|
||||
$table->dropColumn(['country','state', 'zip_code', 'city',]);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user