-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 数据库升级报错IF NOT EXISTS gateway
varchar(255) NOT NULL DEFAULT '''
#1834
Comments
BLOB, TEXT, GEOMETRY or JSON column 'remark' can't have a default value |
PHP Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS |
这个不修修吗 |
關閉嚴格模式。 |
已解决。宝塔用户修改mysql配置文件参数:sql_mode=NO_ENGINE_SUBSTITUTION |
Environment 环境
OS: centos7.9
PHP version: 8.2
DB version: 8.0
Commit:
Bug Info
Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS
gateway
varchar(255) NOT NULL DEFAULT ''' at line 1 in /www/wwwroot/sspanel/db/migrations/2023031701-add_paylist_gateway.php:11The text was updated successfully, but these errors were encountered: