Bläddra i källkod

change string length from 255 to 150/README.md fixes

Carello Qwerty 5 år sedan
förälder
incheckning
5c337ce515

+ 1 - 1
README.md

@@ -3,9 +3,9 @@
 $ cp .env.example .env
 $ chmod -R 777 storage
 $ npm install
-$ php artisan key:generate
 $ php composer install
 $ php artisan vendor:publish
+$ php artisan key:generate
 ````
 
 После этого редактируем .env файл, а именно нужно подключить базу<br/>

+ 3 - 3
database/migrations/2014_10_12_000000_create_users_table.php

@@ -15,11 +15,11 @@ class CreateUsersTable extends Migration
     {
         Schema::create('users', function (Blueprint $table) {
             $table->increments('id');
-            $table->string('name');
-            $table->string('email')->unique();
+            $table->string('name', 150);
+            $table->string('email', 150)->unique();
             $table->integer('telegram_id')->nullable();
             $table->integer('google_id')->nullable();
-            $table->string('password');
+            $table->string('password', 150);
             $table->timestamp('email_verified_at')->nullable();
             $table->rememberToken();
             $table->timestamps();

+ 2 - 2
database/migrations/2014_10_12_100000_create_password_resets_table.php

@@ -14,8 +14,8 @@ class CreatePasswordResetsTable extends Migration
     public function up()
     {
         Schema::create('password_resets', function (Blueprint $table) {
-            $table->string('email')->index();
-            $table->string('token');
+            $table->string('email', 150)->index();
+            $table->string('token', 150);
             $table->timestamp('created_at')->nullable();
         });
     }

+ 1 - 1
database/migrations/2019_02_27_102228_create_locations_table.php

@@ -1,4 +1,4 @@
-<?php
+q<?php
 
 use Illuminate\Support\Facades\Schema;
 use Illuminate\Database\Schema\Blueprint;

+ 1 - 1
database/migrations/2019_02_27_102258_create_groups_table.php

@@ -15,7 +15,7 @@ class CreateGroupsTable extends Migration
     {
         Schema::create('groups', function (Blueprint $table) {
             $table->increments('id');
-            $table->string('name')->unique();
+            $table->string('name', 150)->unique();
             $table->timestamps();
         });
     }

+ 1 - 1
database/migrations/2019_02_27_102330_create_roles_table.php

@@ -15,7 +15,7 @@ class CreateRolesTable extends Migration
     {
         Schema::create('roles', function (Blueprint $table) {
             $table->increments('id');
-            $table->string('name')->unique();
+            $table->string('name', 150)->unique();
             $table->timestamps();
         });
     }