mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 07:53:00 +02:00
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:
@@ -591,7 +591,7 @@ INSERT INTO invoice_payment_hashes (
|
||||
`
|
||||
|
||||
type InsertKVInvoiceKeyAndAddIndexParams struct {
|
||||
ID int32
|
||||
ID int64
|
||||
AddIndex int64
|
||||
}
|
||||
|
||||
@@ -675,7 +675,7 @@ WHERE id = $1
|
||||
`
|
||||
|
||||
type SetKVInvoicePaymentHashParams struct {
|
||||
ID int32
|
||||
ID int64
|
||||
Hash []byte
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user