Commit a57a1ff
committed
fix: rename 'commit' column to 'commit_hash' in federation schema
'commit' is a SQLite reserved keyword (COMMIT TRANSACTION).
The modernc.org/sqlite driver enforces this strictly, causing
'ckb federation create' to fail with:
SQL logic error: near "commit": syntax error (1)
This blocks all federation functionality on affected platforms.
Fix: rename the column to 'commit_hash' in:
- remote_repos table schema (line 252)
- remote_repos migration (line 382)
- UpsertRemoteRepo INSERT (line 670)
- GetRemoteRepos SELECT (line 681)
- GetAllRemoteRepos SELECT (line 712)
The Go struct field 'Commit' is unchanged — Scan() uses
positional binding, not column name mapping.
Fixes #2011 parent 47da5b3 commit a57a1ff
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
| 670 | + | |
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
| 712 | + | |
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| |||
0 commit comments