Migrations
-
A
Migrationthat creates the admin user upon startup. The password and recovery key are read from environment variablesADMIN_PASSWORDandRECOVERY_KEYif present, otherwise defaults are used.The defaults are intended and fine for development and testing, but should never be used in production. If not set to proper values in
See moredocker-compose.yml(or whatever other environment of your choice), reminders are printed to console during startup.Declaration
Swift
struct CreateAdminUsers : AsyncMigration -
Declaration
Swift
struct CreateAlertWordPivotSchema : AsyncMigration -
Declaration
Swift
struct CreateAlertWordSchema : AsyncMigration -
Declaration
Swift
struct CreateAnnouncementSchema : AsyncMigration -
Declaration
Swift
struct CreateBoardgameFavoriteSchema : AsyncMigration -
Declaration
Swift
struct CreateBoardgameSchema : AsyncMigration -
Declaration
Swift
struct CreateCategories : AsyncMigration -
Declaration
Swift
struct CreateCategorySchema : AsyncMigration -
A
Migrationthat creates a set of registered client users during startup, from aregistered-clients.txtfile located in theseeds/subdirectory of the project. The file must be of the format:clientUsername1:password1:recoveryKey1 clientUsername2:password2:recoveryKey2 …
See moreNote
Each API client that wishes to make use ofClientControllerendpoints must provide a clientusername:password:recovery keytriplet prior to production startup.Declaration
Swift
struct CreateClientUsers : AsyncMigration -
Declaration
Swift
struct CreateCustomEnums : AsyncMigration -
Declaration
Swift
struct CreateDailyThemeSchema : AsyncMigration -
Declaration
Swift
struct CreateEventFavoriteSchema : AsyncMigration -
Migration to create the Event table
See moreDeclaration
Swift
struct CreateEventSchema : AsyncMigration -
Declaration
Swift
struct CreateFezParticipantSchema : AsyncMigration -
Declaration
Swift
struct CreateFezPostSchema : AsyncMigration -
Declaration
Swift
struct CreateForumEditSchema : AsyncMigration -
Declaration
Swift
struct CreateForumPostEditSchema : AsyncMigration -
Declaration
Swift
struct CreateForumPostSchema : AsyncMigration -
Declaration
Swift
struct CreateForumReadersSchema : AsyncMigration -
Declaration
Swift
struct CreateForums : AsyncMigration -
Declaration
Swift
struct CreateForumSchema : AsyncMigration -
Declaration
Swift
struct CreateFriendlyFezEditSchema : AsyncMigration -
Declaration
Swift
struct CreateFriendlyFezSchema : AsyncMigration -
Declaration
Swift
struct CreateHuntSchema : AsyncMigration -
Declaration
Swift
struct CreateKaraokeFavoriteSchema : AsyncMigration -
Declaration
Swift
struct CreateKaraokePlayedSongSchema : AsyncMigration -
Declaration
Swift
struct CreateKaraokeSongSchema : AsyncMigration -
Declaration
Swift
struct CreateModeratorActionSchema : AsyncMigration -
Declaration
Swift
struct CreateMuteWordSchema : AsyncMigration -
Declaration
Swift
struct CreatePostLikesSchema : AsyncMigration -
Declaration
Swift
struct CreateProfileEditSchema : AsyncMigration -
Declaration
Swift
struct CreatePuzzleCallInSchema : AsyncMigration -
Declaration
Swift
struct CreatePuzzleSchema : AsyncMigration -
Declaration
Swift
struct CreateRegistrationCodeSchema : AsyncMigration -
Declaration
Swift
struct CreateReportSchema : AsyncMigration -
A
See moreMigrationthat seeds the db with test data. Once we have clients that can post data, we can get rid of this file.Declaration
Swift
struct CreateTestData : AsyncMigration -
A
See moreMigrationthat creates a set of test users during startup, so that there exists one at each.accessLevel. This migration should only be run in non-production environments.Declaration
Swift
struct CreateTestUsers : AsyncMigration -
This is the migration that creates the TimeZoneChange table.
See moreDeclaration
Swift
struct CreateTimeZoneChangeSchema : AsyncMigration -
Declaration
Swift
struct CreateTokenSchema : AsyncMigration -
Declaration
Swift
struct CreateTwarrtEditSchema : AsyncMigration -
Declaration
Swift
struct CreateTwarrtLikesSchema : AsyncMigration -
Declaration
Swift
struct CreateTwarrtSchema : AsyncMigration -
Declaration
Swift
struct CreateUserFavoriteSchema : AsyncMigration -
Declaration
Swift
struct CreateUserNoteSchema : AsyncMigration -
Declaration
Swift
struct CreateUserRoleSchema : AsyncMigration -
Declaration
Swift
struct CreateUserSchema : AsyncMigration -
A
Migrationthat imports the Games Catalog JSON file.This file is located in the
See moreseeds/subdirectory of the project.Declaration
Swift
struct ImportBoardgames : AsyncMigration -
A
See moreMigrationthat imports the event schedule from aschedule.icsfile located in theseeds/subdirectory of the project.Declaration
Swift
struct ImportEvents : AsyncMigration -
A
Migrationthat imports the Karaoke Song Catalog file.This file is located in the
See moreseeds/subdirectory of the project.Declaration
Swift
struct ImportKaraokeSongs : AsyncMigration -
A
See moreMigrationthat populates theRegistrationCodedatabase from aregistration-codes.txtfile located in theseeds/subdirectory of the project.Declaration
Swift
struct ImportRegistrationCodes : AsyncMigration -
A
See moreMigrationthat initializes the ForumCount field in each category. This migration should run after all the migrations that generate forum threads.Declaration
Swift
struct SetInitialCategoryForumCounts : AsyncMigration -
Declaration
Swift
struct SetInitialEventForums : AsyncMigration -
Declaration
Swift
struct UpdateForumReadersLastPostReadSchema : AsyncMigration -
Declaration
Swift
struct UpdateForumReadersMuteSchema : AsyncMigration
View on GitHub
Migrations Reference