feat: add description field to Category model and clean up migration code
This commit is contained in:
@@ -39,10 +39,6 @@ func NewDB(cfg *config.Config) (*DB, error) {
|
||||
func (db *DB) DropTables() error {
|
||||
// Auto Migrate the User model
|
||||
return db.Migrator().DropTable(
|
||||
// &Staff{},
|
||||
// &SubscribePlan{},
|
||||
// &Subscribe{},
|
||||
// &User{},
|
||||
&Tag{},
|
||||
&Category{},
|
||||
&News{},
|
||||
@@ -55,9 +51,6 @@ func (db *DB) Migrate() error {
|
||||
&SubscribePlan{},
|
||||
&Subscribe{},
|
||||
&User{},
|
||||
// &Tag{},
|
||||
// &Category{},
|
||||
// &News{},
|
||||
&News{},
|
||||
&Tag{},
|
||||
&Category{},
|
||||
|
||||
Reference in New Issue
Block a user