diff --git a/migration/v10/model/application.go b/migration/v10/model/application.go index 1194ae229..64e1e52a2 100644 --- a/migration/v10/model/application.go +++ b/migration/v10/model/application.go @@ -183,15 +183,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model UUID *string `gorm:"uniqueIndex"` diff --git a/migration/v3/migrate.go b/migration/v3/migrate.go index 758be4e64..deed54cb4 100644 --- a/migration/v3/migrate.go +++ b/migration/v3/migrate.go @@ -17,7 +17,7 @@ type Migration struct{} func (r Migration) Apply(db *gorm.DB) (err error) { // // Tags/Categories. - err = db.Migrator().RenameTable(model.TagType{}, model.TagCategory{}) + err = db.Migrator().RenameTable(v2.TagType{}, model.TagCategory{}) if err != nil { err = liberr.Wrap(err) return diff --git a/migration/v3/model/application.go b/migration/v3/model/application.go index e72f97225..9c5db0f16 100644 --- a/migration/v3/model/application.go +++ b/migration/v3/model/application.go @@ -141,15 +141,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model Name string `gorm:"index;unique;not null"` diff --git a/migration/v4/model/application.go b/migration/v4/model/application.go index 4f903aeda..071a68440 100644 --- a/migration/v4/model/application.go +++ b/migration/v4/model/application.go @@ -160,15 +160,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model Name string `gorm:"index;unique;not null"` diff --git a/migration/v5/model/application.go b/migration/v5/model/application.go index cfa469c43..aae434219 100644 --- a/migration/v5/model/application.go +++ b/migration/v5/model/application.go @@ -163,15 +163,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model Name string `gorm:"index;unique;not null"` diff --git a/migration/v6/model/application.go b/migration/v6/model/application.go index cfa469c43..aae434219 100644 --- a/migration/v6/model/application.go +++ b/migration/v6/model/application.go @@ -163,15 +163,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model Name string `gorm:"index;unique;not null"` diff --git a/migration/v7/model/application.go b/migration/v7/model/application.go index f717abaaa..f604ccfe0 100644 --- a/migration/v7/model/application.go +++ b/migration/v7/model/application.go @@ -165,15 +165,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model UUID *string `gorm:"uniqueIndex"` diff --git a/migration/v8/model/application.go b/migration/v8/model/application.go index f717abaaa..f604ccfe0 100644 --- a/migration/v8/model/application.go +++ b/migration/v8/model/application.go @@ -165,15 +165,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model UUID *string `gorm:"uniqueIndex"` diff --git a/migration/v9/model/application.go b/migration/v9/model/application.go index 1194ae229..64e1e52a2 100644 --- a/migration/v9/model/application.go +++ b/migration/v9/model/application.go @@ -183,15 +183,6 @@ type Tag struct { Category TagCategory } -type TagType struct { - Model - Name string `gorm:"index;unique;not null"` - Username string - Rank uint - Color string - Tags []Tag `gorm:"constraint:OnDelete:CASCADE"` -} - type TagCategory struct { Model UUID *string `gorm:"uniqueIndex"`