From 121b2d59c9ba59506d4c2162e9d69940fa750d82 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 13 Mar 2024 21:59:50 +0100 Subject: [PATCH] fixed the typo in the `20240312000000` name --- server/backend/migration/20240312000000.go | 6 +++--- server/backend/migration/migration.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/backend/migration/20240312000000.go b/server/backend/migration/20240312000000.go index 2148d684..80a8d70e 100644 --- a/server/backend/migration/20240312000000.go +++ b/server/backend/migration/20240312000000.go @@ -5,11 +5,11 @@ import ( "gorm.io/gorm" ) -// migrate20240212000000 +// migrate20240312000000 // implemented a basic variant of spam protection -func migrate20240212000000() *gormigrate.Migration { +func migrate20240312000000() *gormigrate.Migration { return &gormigrate.Migration{ - ID: "20240212000000", + ID: "20240312000000", Migrate: func(tx *gorm.DB) error { if err := tx.Exec("alter table feedback modify email_id text charset utf8mb3 not null").Error; err != nil { return err diff --git a/server/backend/migration/migration.go b/server/backend/migration/migration.go index 3ed32523..5fbf5291 100644 --- a/server/backend/migration/migration.go +++ b/server/backend/migration/migration.go @@ -71,8 +71,8 @@ func manualMigrate(db *gorm.DB) error { migrate20240102000000(), migrate20240103000000(), migrate20240207000000(), - migrate20240212000000(), migrate20240311000000(), + migrate20240312000000(), } return gormigrate.New(db, gormigrateOptions, migrations).Migrate() }