imapsql: NewBackend (initSchema): create table users: SQL logic error: AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY (1)
Describe the bug
Something bad with my build.
imapsql: using transpiled SQLite (modernc.org/sqlite), this is experimental imapsql: NewBackend (initSchema): create table users: SQL logic error: AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY (1)
build from master
Steps to reproduce
- Build with GOOS=linux GOARCH=arm64 ./build.sh --static`
- Deploy as systemd service on Debian 12 arm64
- Edit /ettc/maddy/maddy.conf
- Try to start
Log files
go env GOOS=linux GOARCH=arm64 ./build.sh maddy.log
Configuration file
Environment information
- maddy version: 0.7.1+f3a6f32
I figured out that this db-hack doesn't work on my deployment. I didn't find how to force maddy to run that hack on init db. Also I didn't find how to force maddy to use sqlite3 driver. I think that modernc.org/sqlite also requires dbhack run?
Pushed cbeadf1 that should fix the issue.
Ok. Thank you. Previous error has gone. I suppose your commit fixed that issue.
@foxcpp not related directly to the issue, but I noticed in linked code that you have strings.HasPrefix(res, "ALERT TABLE"). I don't know of the ALERT statement in any DBMSes, maybe you mistaken for ALTER?
Typo fixed in https://github.com/foxcpp/go-imap-sql/commit/8da5567429d5050a302362112770c4a135110f6a (maddy commit a8d639d).