Skip to content
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

修复脚本自动维护功能无法在sqlite数据库中正确创建ddl_history表 #6153

Merged
merged 1 commit into from
May 12, 2024

Conversation

Lyon1994
Copy link
Contributor

@Lyon1994 Lyon1994 commented May 11, 2024

example:
2024-05-11 12:00:41.301 ERROR 24112 --- [ main] c.b.mybatisplus.extension.ddl.DdlHelper : run script sql:sql/master/datav_t_sys_user/0.sql , error: [SQLITE_ERROR] SQL error or missing database (no such table: ddl_history) , Please check if the table ddl_history exists

该Pull Request关联的Issue

[BUG] 脚本自动维护功能无法在sqlite数据库中正确创建ddl_history表 #6152

修改描述

增加NUM列名

修改前:

sql.append("SELECT count(1) FROM sqlite_master WHERE name='");

修改后:

sql.append("SELECT count(1) NUM FROM sqlite_master WHERE name='");

测试用例

修复效果的截屏

example:
2024-05-11 12:00:41.301 ERROR 24112 --- [           main] c.b.mybatisplus.extension.ddl.DdlHelper  : run script sql:sql/master/datav_t_sys_user/0.sql , error: [SQLITE_ERROR] SQL error or missing database (no such table: ddl_history) , Please check if the table `ddl_history` exists
@nieqiurong nieqiurong merged commit ec6c286 into baomidou:3.0 May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants