github.com/status-im/status-go@v1.1.0/protocol/migrations/sqlite/doc.go (about)

     1  // This file is necessary because "github.com/status-im/migrate/v4"
     2  // can't handle files starting with a prefix. At least that's the case
     3  // for go-bindata.
     4  // If go-bindata is called from the same directory, asset names
     5  // have no prefix and "github.com/status-im/migrate/v4" works as expected.
     6  
     7  // NOTE: The naming of the file needs to follow the unix timestamp convention
     8  // unlike the two initial files.
     9  // That's because currently the encryption migrations and protocol migrations
    10  // share the same table, which means that the latest migration in terms of filename
    11  // is from the encryption namespace files, which uses a unix timestamp.
    12  // If we add 00003_... for example, this will be ignored in existing clients as
    13  // older than the latest encryption migration.
    14  
    15  package sqlite
    16  
    17  //go:generate go-bindata -modtime=1700000000 -pkg migrations -o ../migrations.go .