2019-11-21 16:19:22 +00:00
|
|
|
// This file is necessary because "github.com/status-im/migrate/v4"
|
|
|
|
// can't handle files starting with a prefix. At least that's the case
|
|
|
|
// for go-bindata.
|
|
|
|
// If go-bindata is called from the same directory, asset names
|
|
|
|
// have no prefix and "github.com/status-im/migrate/v4" works as expected.
|
|
|
|
|
Add replies to messages
Currently replies to messages are handled in status-react.
This causes some issues with the fact that sometimes replies might come
out of order, they might be offloaded to the database etc.
This commit changes the behavior so that status-go always returns the
replies, and in case a reply comes out of order (first the reply, later
the message being replied to), it will include in the messages the
updated message.
It also adds some fields (RTL,Replace,LineCount) to the database which
were not previously saved, resulting in some potential bugs.
The method that we use to pull replies is currently a bit naive, we just
pull all the message again from the database, but has the advantage of
being simple. It will go through performance testing to make sure
performnace are acceptable, if so I think it's reasonable to avoid some
complexity.
2020-04-08 13:42:02 +00:00
|
|
|
// NOTE: The naming of the file needs to follow the unix timestamp convention
|
|
|
|
// unlike the two initial files.
|
|
|
|
// That's because currently the encryption migrations and protocol migrations
|
|
|
|
// share the same table, which means that the latest migration in terms of filename
|
|
|
|
// is from the encryption namespace files, which uses a unix timestamp.
|
|
|
|
// If we add 00003_... for example, this will be ignored in existing clients as
|
|
|
|
// older than the latest encryption migration.
|
|
|
|
|
2019-11-21 16:19:22 +00:00
|
|
|
package sqlite
|
|
|
|
|
|
|
|
//go:generate go-bindata -pkg migrations -o ../migrations.go .
|