1
0

提交代码

This commit is contained in:
2020-08-06 14:45:56 +08:00
commit 9d0d5f4be9
361 changed files with 36445 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
<?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');
}
}