CreateCorvusUser

public struct CreateCorvusUser : Migration

Provides a migration structure for databases with schemas.

  • An empty initializer without args.

    Declaration

    Swift

    public init()
  • Prepares database fields and their value types.

    Declaration

    Swift

    public func prepare(on database: Database) -> EventLoopFuture<Void>

    Parameters

    database

    The database to authenticate.

    Return Value

    An empty EventLoopFuture.

  • Implements functionality to delete schema when database is reverted.

    Declaration

    Swift

    public func revert(on database: Database) -> EventLoopFuture<Void>

    Parameters

    database

    The database to authenticate.

    Return Value

    An empty EventLoopFuture.