update
parent
912640dfde
commit
ebd56dc4e8
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -13,14 +13,16 @@ class CreateAdminSettingsTable extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('admin_settings', function (Blueprint $table) {
|
if (!Schema::hasTable('admin_settings')) {
|
||||||
$table->string('slug', 100)->primary();
|
Schema::create('admin_settings', function (Blueprint $table) {
|
||||||
$table->longText('value');
|
$table->string('slug', 100)->primary();
|
||||||
$table->string('name')->nullable();
|
$table->longText('value');
|
||||||
$table->timestamps();
|
$table->string('name')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
|
||||||
$table->comment('配置表');
|
$table->comment('配置表');
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'1.0.0' => [
|
'1.0.0' => [
|
||||||
'Initialize extension.',
|
'CreateAdminSettingsTable.php',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue