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:
ryan
2026-06-16 08:54:32 +08:00
parent e50e600bc8
commit ff60f1c699
8 changed files with 37 additions and 217 deletions
+1 -1
View File
@@ -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{