CreateCorvusToken

public struct CreateCorvusToken : Migration

A struct to provide a database migration.

  • An empty initializer to provide public initialization.

    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.