We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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中,修改model中的任意一个字段,sync方法无法成功删除旧的字段:
如图所示,在执行删除的过程中提示语法错误,但是该条语句复制到命令行是可以正确执行的:
The text was updated successfully, but these errors were encountered:
leoric [query] [1.144] DROP TABLE IF EXISTS "role" +1ms leoric [query] [0.461] CREATE TABLE "role" ("authorities" VARCHAR(255), "name" VARCHAR(255), "created_at" DATETIME, "updated_at" DATETIME, "id" INTEGER PRIMARY KEY) +0ms leoric [query] [0.17] PRAGMA table_info("role") +1ms leoric [load] Role `role` out of sync ["authorities"] +5ms leoric [query] [0.622] ALTER TABLE "role" DROP COLUMN "authorities" +1ms leoric [query] [0.07] PRAGMA table_info("role") +0ms leoric [query] [0.121] PRAGMA table_info("role") +0ms ․ 1 passing (54ms)
有点奇怪,似乎无法复现你说的这个问题
Sorry, something went wrong.
这个是必现的,我稍晚些看看能不能提供一个demo出来,流程如下:
No branches or pull requests
在SQLite中,修改model中的任意一个字段,sync方法无法成功删除旧的字段:
如图所示,在执行删除的过程中提示语法错误,但是该条语句复制到命令行是可以正确执行的:
The text was updated successfully, but these errors were encountered: