AddCategoryDefaultSortSchema

struct AddCategoryDefaultSortSchema : AsyncMigration
  • prepare(on:) Asynchronous

    Adds the optional default sort value to forum categories.

    Declaration

    Swift

    func prepare(on database: Database) async throws
  • revert(on:) Asynchronous

    Removes the category default sort field.

    Declaration

    Swift

    func revert(on database: Database) async throws