mirror of
https://github.com/cjango/dcat-vue.git
synced 2025-12-06 22:40:03 +08:00
一些优化,新增行政区划
This commit is contained in:
25546
updates/ChinaAreaTableSeeder.php
Normal file
25546
updates/ChinaAreaTableSeeder.php
Normal file
File diff suppressed because it is too large
Load Diff
34
updates/create_china_areas_table.php
Normal file
34
updates/create_china_areas_table.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateChinaArea extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('china_areas', function (Blueprint $table) {
|
||||
$table->id('code');
|
||||
$table->string('name')->comment('地区');
|
||||
$table->unsignedTinyInteger('level')->index();
|
||||
$table->unsignedBigInteger('pcode')->index()->comment('上级区划');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('china_areas');
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFielsystemConfigTable extends Migration
|
||||
class CreateFielsystemConfig extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
|
||||
@@ -13,14 +13,12 @@ class CreateWeiwaitUpload extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('weiwait_uploads')) {
|
||||
Schema::create('weiwait_uploads', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name')->comment('文件');
|
||||
$table->string('disk')->nullable()->comment('磁盘');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
Schema::create('weiwait_uploads', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name')->comment('文件');
|
||||
$table->string('disk')->nullable()->comment('磁盘');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user