4
0
Fork 0
master
panliang 2022-07-27 16:47:35 +08:00
parent 912640dfde
commit ebd56dc4e8
3 changed files with 18 additions and 15 deletions

View File

@ -9,7 +9,8 @@
"php": ">=7.1.0", "php": ">=7.1.0",
"laravel/framework": "~5.5|~6.0|~7.0|~8.0|~9.0", "laravel/framework": "~5.5|~6.0|~7.0|~8.0|~9.0",
"spatie/eloquent-sortable": "3.*|4.*", "spatie/eloquent-sortable": "3.*|4.*",
"doctrine/dbal": "^2.6|^3.0" "doctrine/dbal": "^2.6|^3.0",
"tucker-eric/eloquentfilter": "^3.1"
}, },
"require-dev": { "require-dev": {
"laravel/dusk": "~5.9|~6", "laravel/dusk": "~5.9|~6",

View File

@ -13,6 +13,7 @@ class CreateAdminSettingsTable extends Migration
*/ */
public function up() public function up()
{ {
if (!Schema::hasTable('admin_settings')) {
Schema::create('admin_settings', function (Blueprint $table) { Schema::create('admin_settings', function (Blueprint $table) {
$table->string('slug', 100)->primary(); $table->string('slug', 100)->primary();
$table->longText('value'); $table->longText('value');
@ -22,6 +23,7 @@ class CreateAdminSettingsTable extends Migration
$table->comment('配置表'); $table->comment('配置表');
}); });
} }
}
/** /**
* Reverse the migrations. * Reverse the migrations.

View File

@ -2,6 +2,6 @@
return [ return [
'1.0.0' => [ '1.0.0' => [
'Initialize extension.', 'CreateAdminSettingsTable.php',
], ],
]; ];