Skip to content

Add migration for AccountDepositWebhookRegistrations table#40

Closed
justinbarry wants to merge 2 commits intonoahsaso:mainfrom
burnt-labs:add-deposit-webhook-migration
Closed

Add migration for AccountDepositWebhookRegistrations table#40
justinbarry wants to merge 2 commits intonoahsaso:mainfrom
burnt-labs:add-deposit-webhook-migration

Conversation

@justinbarry
Copy link
Copy Markdown
Contributor

Summary

  • The AccountDepositWebhookRegistration model was added in the deposit-webhook work without a corresponding Sequelize migration, so fresh databases have no way to create the table.
  • This adds a create-table migration mirroring the model (FK to Accounts.publicKey with cascade, string/array columns with [] defaults, enabled default true, timestamps, and indexes on accountPublicKey and enabled).

Test plan

  • MIGRATING_DB=true npx sequelize-cli db:migrate applies cleanly on a fresh DB
  • db:migrate:undo rolls back cleanly
  • Existing AccountDepositWebhookRegistration tests still pass against the migrated schema

* add self-registered deposit webhooks

* add validator-backed deposit webhook CI test

* Fix deposit webhook cache invalidation

* Fix lint import order
The AccountDepositWebhookRegistration model was added without a
corresponding migration, so fresh databases have no way to create
the table. This adds the create-table migration matching the model.
@justinbarry justinbarry requested a review from noahsaso as a code owner April 11, 2026 13:23
@justinbarry
Copy link
Copy Markdown
Contributor Author

Wrong repo — reopening against burnt-labs/dao-dao-indexer.

@justinbarry justinbarry deleted the add-deposit-webhook-migration branch April 11, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant