Instance Method
prepare(on:)
Called when a migration is executed.
func prepare(on database: any Database) -> EventLoopFuture<Void>
Parameters
databaseDatabaseto run the migration on,
Return Value
An asynchronous Void.
Instance Method
func prepare(on database: any Database) -> EventLoopFuture<Void>
databaseDatabase to run the migration on,
An asynchronous Void.