ImmortalFan commented on issue #5961: URL: https://github.com/apache/shenyu/issues/5961#issuecomment-2727483032
你好: 2.5.1-2.6.0 的升级sql存在问题: ALTER TABLE selector ADD COLUMN match_restful TINYINT(0) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)'; COMMIT; ALTER TABLE rule ADD COLUMN match_restful TINYINT(0) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)'; COMMIT; 如果是已经使用一段时间的数据库,selector和rule是存在数据的,这时候这个sql就会报错。当然如果是一个空库应该是没问题的。  这个表discovery_upstream这个两个int2类型的sql是正确的吗?我查了一些资料,反馈的信息是int2类型不能使用COLLATE 2.6.1-2.7.0的sql升级脚本问题:  这个和2.5.1-2.6.0的脚本反馈的第一个问题一样,已经有历史数据了,增加字段的时候 使用NOT NULL是会报错的 > 2025年3月16日 21:09,aias00 ***@***.***> 写道: > > > Aias00 > left a comment > (apache/shenyu#5961) > Hi, can you point out where the problem is? Or perhaps submit a PR with the SQL modification? > > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you authored the thread. > > <https://github.com/apache/shenyu/issues/5961#issuecomment-2727391878> <https://github.com/notifications/unsubscribe-auth/AEAFHRDAUV32SGOIR5GESNT2UVZW5AVCNFSM6AAAAABZDM2Q2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRXGM4TCOBXHA> > > Aias00 > left a comment > (apache/shenyu#5961) > <https://github.com/apache/shenyu/issues/5961#issuecomment-2727391878> > Hi, can you point out where the problem is? Or perhaps submit a PR with the SQL modification? > > — > Reply to this email directly, view it on GitHub <https://github.com/apache/shenyu/issues/5961#issuecomment-2727391878>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEAFHRDAUV32SGOIR5GESNT2UVZW5AVCNFSM6AAAAABZDM2Q2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRXGM4TCOBXHA>. > You are receiving this because you authored the thread. > -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@shenyu.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org