UpdateForumLastPostIDMigration
struct UpdateForumLastPostIDMigration : AsyncMigration
This migration used to include populating the last_post_id for all existing rows. Except that acting on Forum before all future migrations have executed (as listed in configure.swift) fails because all of the other fields don’t exist yet. So that functionality has been moved to PopulateForumLastPostIDMigration below and that migration runs later on after all schema modifications have been populated.
-
prepare(on:
Asynchronous) Declaration
Swift
func prepare(on database: Database) async throws
-
revert(on:
Asynchronous) Declaration
Swift
func revert(on database: Database) async throws