sqldb: ensure schema definitions are fully SQLite compatible

Previously, we applied replacements to our schema definitions
to make them compatible with both SQLite and Postgres backends,
as the files were not fully compatible with either.

With this change, the only replacement required for SQLite has
been moved to the generator script. This adjustment ensures
compatibility by enabling auto-incrementing primary keys that
are treated as 64-bit integers by sqlc.
This commit is contained in:
Andras Banki-Horvath committed 2025-01-23 09:11:02 +01:00
1 parent ea98933317
commit 84598b6dc1
8 files changed
+44 -20

No files matched your search

+2 -2
View File
@@ -58,7 +58,7 @@ type InvoiceEvent struct {
}
type InvoiceEventType struct {
ID int32
ID int64
Description string
}
@@ -88,7 +88,7 @@ type InvoiceHtlcCustomRecord struct {
}
type InvoicePaymentHash struct {
ID int32
ID int64
AddIndex int64
Hash []byte
}