Migrations
-
A
Migration
that creates the admin user upon startup. The password and recovery key are read from environment variablesADMIN_PASSWORD
andRECOVERY_KEY
if 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
Migration
that creates a set of registered client users during startup, from aregistered-clients.txt
file located in theseeds/
subdirectory of the project. The file must be of the format:clientUsername1:password1:recoveryKey1 clientUsername2:password2:recoveryKey2 …
Note
Each API client that wishes to make use ofClientController
endpoints must provide a clientusername:password:recovery key
triplet prior to production startup.Declaration
Swift
struct CreateClientUsers : AsyncMigration
-
Declaration
Swift
struct CreateCustomEnums : AsyncMigration
-
Declaration
Swift
struct CreateDailyThemeSchema : AsyncMigration
-
Declaration
Swift
struct CreateEventFavoriteSchema : AsyncMigration
-
Declaration
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 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 CreateRegistrationCodeSchema : AsyncMigration
-
Declaration
Swift
struct CreateReportSchema : AsyncMigration
-
A
See moreMigration
that 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 moreMigration
that 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
Migration
that 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 moreMigration
that imports the event schedule from aschedule.ics
file located in theseeds/
subdirectory of the project.Declaration
Swift
struct ImportEvents : AsyncMigration
-
A
Migration
that 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 moreMigration
that populates theRegistrationCode
database from aregistration-codes.txt
file located in theseeds/
subdirectory of the project.Declaration
Swift
struct ImportRegistrationCodes : AsyncMigration
-
A
See moreMigration
that 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