status-im / status-protocol-go

Status Protocol implementation in Go
Mozilla Public License 2.0
0 stars 1 forks source link

SQL DB migrations fail #65

Closed jakubgs closed 5 years ago

jakubgs commented 5 years ago

When I try to create a new Messenger I get this:

failed to apply mvds migrations: failed to migrate: no such table: mvds_schema_migrations in line 0: DELETE FROM mvds_schema_migrations

I used an in-memory SQLite database:

db, _ := sql.Open("sqlite3", "file:mem?mode=memory&cache=shared")
options := []status.Option{
status.WithDatabase(db),
}

So it's always a fully clean database, but it fails when trying to delete mvds_schema_migrations table which doesn't exist.

Also, is this database even necessary? If I just want to send a single message using the library why should I have to create an SQL database to do that?

jakubgs commented 5 years ago

Looks like this was fixed here: https://github.com/status-im/migrate/commit/a9d340ec8fb76af4afda06acf01740d45d2661ed