Skip to content

Commit

Permalink
tested different order
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jan 2, 2024
1 parent 91d3471 commit 27abf0e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions server/backend/migration/20240102000000.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ func migrate20240102000000() *gormigrate.Migration {
if err := tx.Exec("DROP table card_comment").Error; err != nil {
return err
}
// tags
if err := tx.Exec("DROP table card2tag").Error; err != nil {
return err
}
if err := tx.Exec("DROP table tag").Error; err != nil {
return err
}
//cards
if err := tx.Exec("DROP table card_option").Error; err != nil {
return err
Expand All @@ -38,13 +45,6 @@ func migrate20240102000000() *gormigrate.Migration {
if err := tx.Exec("DROP table card_type").Error; err != nil {
return err
}
// tags
if err := tx.Exec("DROP table tag").Error; err != nil {
return err
}
if err := tx.Exec("DROP table card2tag").Error; err != nil {
return err
}
return nil
},
Rollback: func(tx *gorm.DB) error {
Expand Down

0 comments on commit 27abf0e

Please sign in to comment.