swarm/storage: rename schema to purity

This commit is contained in:
Anton Evangelatov 2018-09-28 17:09:48 +02:00
parent aacbec8a99
commit bf193d8b61
2 changed files with 4 additions and 4 deletions

View file

@ -211,7 +211,7 @@ func (ls *LocalStore) Migrate() error {
ls.DbStore.Cleanup(cleanupFunc) ls.DbStore.Cleanup(cleanupFunc)
err := ls.DbStore.PutSchema(DbSchemaHive) err := ls.DbStore.PutSchema(DbSchemaPurity)
if err != nil { if err != nil {
log.Error(err.Error()) log.Error(err.Error())
return err return err

View file

@ -1,6 +1,6 @@
package storage package storage
// "hive" is the first formal schema of LevelDB we release together with Swarm 0.3.4 // "purity" is the first formal schema of LevelDB we release together with Swarm 0.3.5
const DbSchemaHive = "hive" const DbSchemaPurity = "purity"
const CurrentDbSchema = DbSchemaHive const CurrentDbSchema = DbSchemaPurity