Closed richard-ramos closed 3 weeks ago
You can find the image built from this PR at
quay.io/wakuorg/nwaku-pr:2675-rln-v2
Built from da062be995134efa97b2a889cb51f0660563fa76
You can find the image built from this PR at
quay.io/wakuorg/nwaku-pr:2675-rln-v1
Built from da062be995134efa97b2a889cb51f0660563fa76
@gabrielmer: Probably the table is created differently in the tests? Yeah! probably the tests use createTableQuery() while normal execution use the migration scripts!
Description
While running
./build/waku --store
on latest master, i ran into the following error:When I browsed the db, and executed
.schema message
I saw that the problem was that themeta
column did not exist.Something curious tho, @Ivansete-status and @gabrielmer: when running sqlite, it seems that we use the .sql migration scripts, however we also have this
createTableQuery
proc: https://github.com/waku-org/nwaku/blob/38f8b08c7c818c2d3cb8460e972357e5a373c2b4/waku/waku_archive/driver/sqlite_driver/queries.nim#L86-L92 andcreateOldestMessageTimestampIndexQuery
Should we get rid of both of these so it's the migration scripts the ones responsible for updating the db schema for sqlite? based on the behavior before this fix, i'd say that it is highly likely that
createTableQuery
is not being used at all.