Protocol
Migration
Fluent’s
Migration can handle database migrations, which can include adding new table, changing existing tables or adding seed data. These actions are executed only once.protocol Migration : Sendable
Topics
Instance Properties
var name: StringThe name of the migration which Fluent uses to track the state of.
Instance Methods
func prepare(on: any Database) -> EventLoopFuture<Void>Called when a migration is executed.func revert(on: any Database) -> EventLoopFuture<Void>Called when the changes from a migration are reverted.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype