提交代码
This commit is contained in:
51
database/migrations/2019_11_05_111227_create_areas_table.php
Normal file
51
database/migrations/2019_11_05_111227_create_areas_table.php
Normal 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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user