Skip to content

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

  • name
    The name of the migration which Fluent uses to track the state of.

Instance Methods

  • prepare(on:)
    Called when a migration is executed.
  • revert(on:)
    Called when the changes from a migration are reverted.

Relationships

Inherits From

  • Swift.Sendable
  • Swift.SendableMetatype

Inherited By