1
0
Files
lkafu/database/migrations/2019_11_05_111227_create_areas_table.php
2020-08-06 14:45:56 +08:00

52 lines
1.1 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAreasTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('areas', function(Blueprint $table)
{
$table->increments('id');
$table->integer('sn')->unsigned();
$table->integer('psn')->unsigned();
$table->string('province');
$table->string('city');
$table->string('area');
$table->string('name');
$table->string('shortname');
$table->string('type', 50);
$table->string('cnname');
$table->string('enname');
$table->string('info');
$table->string('shortinfo');
$table->integer('zone')->unsigned();
$table->integer('zip')->unsigned();
$table->decimal('lng', 10, 7);
$table->decimal('lat', 10, 7);
$table->integer('depth')->nullable();
$table->decimal('freight', 10)->nullable();
$table->dateTime('updated_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('areas');
}
}