set default string length for migrations
This commit is contained in:
parent
6c860691d6
commit
49c08ec1f1
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
|
||||||
|
|
||||||
@ -12,6 +13,8 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
|
Schema::defaultStringLength(191);
|
||||||
|
|
||||||
# if there's a local.conf.php in the root, then merge that in
|
# if there's a local.conf.php in the root, then merge that in
|
||||||
if(file_exists(base_path('local.conf.php'))) {
|
if(file_exists(base_path('local.conf.php'))) {
|
||||||
$local_conf = include(base_path('local.conf.php'));
|
$local_conf = include(base_path('local.conf.php'));
|
||||||
|
Loading…
Reference in New Issue
Block a user