-
Here is a simple https://github.com/beiifeng/umzug-report I want to recored Step1
Step2and the sequelize_meta data was there is no author column. What we want |
Beta Was this translation helpful? Give feedback.
Answered by
mmkal
Mar 28, 2024
Replies: 1 comment 1 reply
-
Could you just use context for this? class YourStorage implements UmzugStorage<{author: string}> {
async logMigration({name, context}: MigrationParams<{author: string}>) {
await this.syncModel()
await this.model.create({
name,
author: context.author,
})
}
async unlogMigration({name, context}: MigrationParams<{author: string}>) {}
async executed() {
return []
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
beiifeng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you just use context for this?