filmov
tv
laravel 6 7 8 php artisan migrate error SQLSTATE[42S01] migration error solved
Показать описание
php artisan migrate
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Illuminate\Database\QueryException
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too
long; max key length is 767 bytes (SQL: alter table `users` add unique `users_em
ail_unique`(`email`))
Desktop\blog\vendor\laravel\framework\src\Illuminate\Database
problem solved and here is the solution
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' alre
ady exists
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
run this command line in your terminal or git-bash if you are in windows
php artisan migrate:fresh
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Illuminate\Database\QueryException
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too
long; max key length is 767 bytes (SQL: alter table `users` add unique `users_em
ail_unique`(`email`))
Desktop\blog\vendor\laravel\framework\src\Illuminate\Database
problem solved and here is the solution
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' alre
ady exists
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
run this command line in your terminal or git-bash if you are in windows
php artisan migrate:fresh
49 Laravel 6:7:8 PHP | Project RESTful API
16 Laravel 6:7:8 PHP | Build a CRUD App with MySQL
48 Laravel 6:7:8 PHP | Project RESTful API
6 Laravel 6:7:8 PHP install on Linux
50 Laravel 6:7:8 PHP | Project RESTful API
42 Laravel 6:7:8 PHP | Build and Test a RESTful API
46 Laravel 6:7:8 PHP | Project RESTful API
21 Laravel 6:7:8 PHP | authentication
Laravel 11 Full Course | #58 Order Multiple arrays in foreach loop Edit Value in Laravel 11
45 Laravel 6:7:8 PHP | Project RESTful API
20 Laravel 6:7:8 PHP | Soft Deleted Models
51 Laravel 6:7:8 PHP | One to Many RESTful API
3 Laravel 6:7:8 PHP Framework install tools on Windows
37 Laravel 6:7:8 PHP | Manage Users
laravel 6 7 8 php artisan migrate error SQLSTATE[42S01] migration error solved
47 Laravel 6:7:8 PHP | Project RESTful API
32 Laravel 6:7:8 PHP | Authorization
34 Laravel 6:7:8 PHP | Login page
9 Laravel 6:7:8 PHP | Laravel routes accept a URI and a Closure
17 Laravel 6:7:8 PHP | Build a CRUD App with MySQL
27 Laravel 6:7:8 PHP | Eloquent ORM One to Many relationship
7 Laravel 6:7:8 PHP Structure & directory
35 Laravel 6:7:8 PHP | Google ReCAPTCHA security service
19 Laravel 6:7:8 PHP | Build a Edit & Delete with Views
Комментарии