storage: test sqlite in-memory
This commit is contained in:
@@ -5,11 +5,10 @@ import "database/sql"
|
||||
func createBlockTable(conn *sql.DB) error {
|
||||
tableCreation := `
|
||||
CREATE TABLE IF NOT EXISTS blocks (
|
||||
height INTEGER,
|
||||
height INTEGER PRIMARY KEY,
|
||||
hash TEXT,
|
||||
has_sapling_tx BOOL,
|
||||
compact_encoding BLOB,
|
||||
PRIMARY KEY (height, hash)
|
||||
compact_encoding BLOB
|
||||
);
|
||||
`
|
||||
_, err := conn.Exec(tableCreation)
|
||||
|
||||
Reference in New Issue
Block a user