update
parent
912640dfde
commit
ebd56dc4e8
|
|
@ -9,7 +9,8 @@
|
|||
"php": ">=7.1.0",
|
||||
"laravel/framework": "~5.5|~6.0|~7.0|~8.0|~9.0",
|
||||
"spatie/eloquent-sortable": "3.*|4.*",
|
||||
"doctrine/dbal": "^2.6|^3.0"
|
||||
"doctrine/dbal": "^2.6|^3.0",
|
||||
"tucker-eric/eloquentfilter": "^3.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"laravel/dusk": "~5.9|~6",
|
||||
|
|
|
|||
|
|
@ -13,14 +13,16 @@ class CreateAdminSettingsTable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('admin_settings', function (Blueprint $table) {
|
||||
$table->string('slug', 100)->primary();
|
||||
$table->longText('value');
|
||||
$table->string('name')->nullable();
|
||||
$table->timestamps();
|
||||
if (!Schema::hasTable('admin_settings')) {
|
||||
Schema::create('admin_settings', function (Blueprint $table) {
|
||||
$table->string('slug', 100)->primary();
|
||||
$table->longText('value');
|
||||
$table->string('name')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->comment('配置表');
|
||||
});
|
||||
$table->comment('配置表');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'1.0.0' => [
|
||||
'Initialize extension.',
|
||||
],
|
||||
];
|
||||
<?php
|
||||
|
||||
return [
|
||||
'1.0.0' => [
|
||||
'CreateAdminSettingsTable.php',
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue