راکت

migration

1 پاسخ

zamani ke
php artisan migrate
miznana in khata ro mideh

In Connection.php line 664:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near
'json null, method varchar(191) not null default 'get', is_api tinyint(1) not' at line 1 (SQL: create table routes (id int unsigned not null auto_increment primary key, name varcha
r(191) not null, url varchar(191) not null, handler varchar(191) null, parameters json null, method varchar(191) not null default 'get', is_api tinyint(1) not null default '1', mid dlewares varchar(191) null, parent_id int unsigned null) default character set utf8mb4 collate utf8mb4_unicode_ci)

In Connection.php line 452:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near
'json null, method varchar(191) not null default 'get', is_api tinyint(1) not' at line 1

ثبت پرسش جدید

پاسخ‌ها

1
Alimotreb
Alimotreb
@Alimotreb

تخصص: کانفیگ سرور و برنامه نویس

سلام
@maryamazad68

توی متد بوت لاراول در مسیر

\app\Providers

در فایل
AppServiceProvider.php

public function boot()
    {
        //
        Schema::defaultStringLength(191);
    }

این کد رو قرار بدید
بعد مایگریت کنید

شاید پاسخ شما همین‌جا باشد

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام