ImportEvents
struct ImportEvents : AsyncMigrationA Migration that imports the event schedule from a schedule.ics file
located in the seeds/ subdirectory of the project.
- 
                  prepare(on:Asynchronous) Required by Migrationprotocol. Reads either a test or production.icsfile in theseeds/subdirectory, converts the lines into elements of an array, hands that off to a parser and populates theEventdatabase with the[Event]array returned.Requires schedule.icsfile in seeds subdirectory.DeclarationSwift func prepare(on database: Database) async throwsParametersdatabaseA connection to the database, provided automatically. Return ValueVoid. 
- 
                  revert(on:Asynchronous) Required by Migrationprotocol. Deletes all schedule events in the database. Running this migration revert should delete allEventFavorites, but won’t delete EventForums.DeclarationSwift func revert(on database: Database) async throwsParametersdatabaseA connection to the database, provided automatically. Return ValueVoid. 
 View on GitHub
            View on GitHub
           ImportEvents Structure Reference
      ImportEvents Structure Reference