Skip to content

Commit

Permalink
stores: drop owner column from ephemeral accounts table (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jun 20, 2023
1 parent 5cf5f0a commit 14d8eac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stores/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ func performMigrations(db *gorm.DB, logger glogger.Interface) error {
}
fillSlabContractSetID := !m.HasColumn(&dbSlab{}, "db_contract_set_id")

// Drop owner column from accounts table.
if m.HasColumn(&dbAccount{}, "owner") {
if err := m.DropColumn(&dbAccount{}, "owner"); err != nil {
return err
}
}

// Perform auto migrations.
tables := []interface{}{
// bus.MetadataStore tables
Expand Down

0 comments on commit 14d8eac

Please sign in to comment.