The top-level entity that groups entrypoints and targets is now called Webhook (was Processor). The inbound URL endpoint entity is now called Entrypoint (was Webhook). This rename affects database models, handler comments, routes, and README documentation. closes #12
16 lines
253 B
Go
16 lines
253 B
Go
package database
|
|
|
|
// Migrate runs database migrations for all models
|
|
func (d *Database) Migrate() error {
|
|
return d.db.AutoMigrate(
|
|
&User{},
|
|
&APIKey{},
|
|
&Webhook{},
|
|
&Entrypoint{},
|
|
&Target{},
|
|
&Event{},
|
|
&Delivery{},
|
|
&DeliveryResult{},
|
|
)
|
|
}
|