CreateForums

struct CreateForums : AsyncMigration

A Migration that creates an initial set of Twit-arr official Forums.

  • prepare(on:) Asynchronous

    Creates an initial set of forum threads in “Twitarr Support”.

    Declaration

    Swift

    func prepare(on database: Database) async throws

    Parameters

    database

    A connection to the database, provided automatically.

    Return Value

    Void.

  • revert(on:) Asynchronous

    Required by Migration protocol, but this isn’t a model update, so just return a pre-completed Future.

    Declaration

    Swift

    func revert(on database: Database) async throws

    Parameters

    conn

    The database connection.

    Return Value

    Void.

  • Declaration

    Swift

    func getAdminForums() -> [String]