mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-12 18:26:36 +08:00
refactor(push): clean up legacy push_config and w_push_events hardcoded insertions
- Remove ConfigKeyPushConfig and delete legacy push_config query logic from EventTrigger.Trigger. - Simplify the push event notification dispatching engine to rely purely on database custom channels. - Remove w_push_events hardcoded INSERT statement from migration files, letting SyncEvents handle default event registration. - Rewrite unit tests to use model.PushChannel instead of push_config.
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const expectedMigratedSystemConfigCount = 32
|
||||
const expectedMigratedSystemConfigCount = 31
|
||||
|
||||
func TestMigrateInitializesSQLiteDatabase(t *testing.T) {
|
||||
sqliteDB, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{
|
||||
|
||||
Reference in New Issue
Block a user