SetEventCategoryDefaultSort

struct SetEventCategoryDefaultSort : AsyncMigration

Advertises event ordering as the default for all event forum categories.

  • prepare(on:) Asynchronous

    Sets the default on existing event categories, including shadow events.

    Declaration

    Swift

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

    Clears the event default without removing other configured sorts.

    Declaration

    Swift

    func revert(on database: Database) async throws