UpdateEventFavoriteSchema_Photographer
struct UpdateEventFavoriteSchema_Photographer : AsyncMigration
Migration to add the favorite
and photographer
fields to EventFavorite
Previously the existence of the record meant ‘favorite’, so that field defaults to true in the migration.
-
prepare(on:
Asynchronous) Declaration
Swift
func prepare(on database: Database) async throws
-
revert(on:
Asynchronous) Declaration
Swift
func revert(on database: Database) async throws