Skip to content
Merged
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ CCF_RISK_CONFIG="risk.yaml"
CCF_SLACK_ENABLED=false
# Slack token generated from https://api.slack.com/apps, with "chat:write" scope.
CCF_SLACK_TOKEN="xxxx"
# Channel name to send digest messages to, e.g. "my_slack_channel". Make sure the app user is added to this channel.
# DEPRECATED:
# Legacy one-time migration source for the initial Slack digest destination row in ccf_system_notification_destinations.
CCF_SLACK_DIGEST_CHANNEL="my_slack_channel"
# Slack OAuth account-linking config.
CCF_SLACK_CLIENT_ID=""
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func migrateUp(cmd *cobra.Command, args []string) {
panic("failed to connect database")
}

err = service.MigrateUp(db)
err = service.MigrateUpWithConfig(db, cfg)
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func RunServer(cmd *cobra.Command, args []string) {
sugar.Fatalw("Failed to connect to SQL database", "error", err)
}

err = service.MigrateUp(db)
err = service.MigrateUpWithConfig(db, cfg)
if err != nil {
sugar.Fatalw("Failed to migrate database", "error", err)
}
Expand Down
Loading
Loading