Navigation Menu

Skip to content

Commit

Permalink
数据库微调
Browse files Browse the repository at this point in the history
  • Loading branch information
WangNingkai committed Jun 22, 2019
1 parent 1ee5928 commit cc10b22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/Providers/AppServiceProvider.php
Expand Up @@ -3,6 +3,7 @@
namespace App\Providers; namespace App\Providers;


use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use Schema;


class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
{ {
Expand All @@ -14,6 +15,7 @@ class AppServiceProvider extends ServiceProvider
public function boot() public function boot()
{ {
// //
Schema::defaultStringLength(191);
} }


/** /**
Expand Down
Expand Up @@ -16,7 +16,7 @@ public function up()
Schema::create('settings', function (Blueprint $table) { Schema::create('settings', function (Blueprint $table) {
$table->integerIncrements('id'); $table->integerIncrements('id');
$table->string('name'); $table->string('name');
$table->mediumText('value')->default(''); $table->mediumText('value');
}); });
} }


Expand Down

0 comments on commit cc10b22

Please sign in to comment.