Skip to content

Commit fa4eed1

Browse files
committed
fix(test): add mailbox_tags and webhook_delivery_logs to table reset
Ensures persistence integration tests properly clean up all tables including recently added mailbox_tags, mailbox_tag_bindings, and webhook_delivery_logs before re-running schema migrations.
1 parent 3b11518 commit fa4eed1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/tests/persistence_integration_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ func mustResetPersistenceTables(t *testing.T, db *gorm.DB) {
445445
"DROP TABLE IF EXISTS provider_accounts",
446446
"DROP TABLE IF EXISTS message_attachments",
447447
"DROP TABLE IF EXISTS messages",
448+
"DROP TABLE IF EXISTS mailbox_tag_bindings",
449+
"DROP TABLE IF EXISTS mailbox_tags",
448450
"DROP TABLE IF EXISTS mailboxes",
449451
"DROP TABLE IF EXISTS user_webhooks",
450452
"DROP TABLE IF EXISTS user_api_keys",
@@ -461,6 +463,7 @@ func mustResetPersistenceTables(t *testing.T, db *gorm.DB) {
461463
"DROP TABLE IF EXISTS mailbox_rules",
462464
"DROP TABLE IF EXISTS rules",
463465
"DROP TABLE IF EXISTS system_configs",
466+
"DROP TABLE IF EXISTS webhook_delivery_logs",
464467
"DROP TABLE IF EXISTS jobs",
465468
"DROP TABLE IF EXISTS audit_logs",
466469
"SET FOREIGN_KEY_CHECKS = 1",

0 commit comments

Comments
 (0)