diff --git a/OutOfSchool/OutOfSchool.Common/Config/MySqlGuidConnectionOptions.cs b/OutOfSchool/OutOfSchool.Common/Config/MySqlGuidConnectionOptions.cs new file mode 100644 index 0000000000..8b8a9f1444 --- /dev/null +++ b/OutOfSchool/OutOfSchool.Common/Config/MySqlGuidConnectionOptions.cs @@ -0,0 +1,17 @@ +namespace OutOfSchool.Common.Config; +public class MySqlGuidConnectionOptions : IMySqlGuidConnectionOptions +{ + public bool UseOverride { get; set; } + + public string Server { get; set; } + + public uint Port { get; set; } + + public string Database { get; set; } + + public string UserId { get; set; } + + public string Password { get; set; } + + public string GuidFormat { get; set; } +} diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Extensions/ConfigureIdentityExtensions.cs b/OutOfSchool/OutOfSchool.IdentityServer/Extensions/ConfigureIdentityExtensions.cs new file mode 100644 index 0000000000..f746e8ce02 --- /dev/null +++ b/OutOfSchool/OutOfSchool.IdentityServer/Extensions/ConfigureIdentityExtensions.cs @@ -0,0 +1,48 @@ +namespace OutOfSchool.IdentityServer.Extensions; +public static class ConfigureIdentityExtensions +{ + public static void ConfigureIdentity( + this IServiceCollection services, + string connectionString, + string issuerUri, + MySqlServerVersion serverVersion, + string migrationsAssembly) + { + services.AddIdentity(options => + { + options.Password.RequireDigit = true; + options.Password.RequireLowercase = true; + options.Password.RequireNonAlphanumeric = true; + options.Password.RequireUppercase = true; + options.Password.RequiredLength = 8; + }) + .AddEntityFrameworkStores(); + + services.AddIdentityServer(options => { options.IssuerUri = issuerUri; }) + .AddConfigurationStore(options => + { + options.ConfigureDbContext = builder => + builder.UseMySql( + connectionString, + serverVersion, + sql => sql.MigrationsAssembly(migrationsAssembly)); + }) + .AddOperationalStore(options => + { + options.ConfigureDbContext = builder => + builder.UseMySql( + connectionString, + serverVersion, + sql => sql.MigrationsAssembly(migrationsAssembly)); + options.EnableTokenCleanup = true; + options.TokenCleanupInterval = 3600; + }) + .AddAspNetIdentity() + .AddProfileService() + .AddCustomKeyManagement(builder => + builder.UseMySql( + connectionString, + serverVersion, + sql => sql.MigrationsAssembly(migrationsAssembly))); + } +} diff --git a/OutOfSchool/OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj b/OutOfSchool/OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj index 4399160bee..bb2efcf25e 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj +++ b/OutOfSchool/OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj @@ -8,71 +8,58 @@ enable - - - - - - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + + - + true PreserveNewest PreserveNewest - - - - - - + - + \ No newline at end of file diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Startup.cs b/OutOfSchool/OutOfSchool.IdentityServer/Startup.cs index e7dca85e9d..3a040c2d7b 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Startup.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Startup.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Diagnostics.HealthChecks; using OutOfSchool.Common.Models; using OutOfSchool.IdentityServer.Config.ExternalUriModels; -using OutOfSchool.IdentityServer.Services.Interfaces; +using OutOfSchool.IdentityServer.Extensions; using OutOfSchool.IdentityServer.Validators; using OutOfSchool.IdentityServer.ViewModels; @@ -17,7 +17,7 @@ public static void AddApplicationServices(this WebApplicationBuilder builder) var config = builder.Configuration; services.Configure(config.GetSection(IdentityServerConfig.Name)); - var migrationsAssembly = typeof(Startup).GetTypeInfo().Assembly.GetName().Name; + var migrationsAssembly = config["MigrationsAssembly"]; // TODO: Move version check into an extension to reuse code across apps var mySQLServerVersion = config["MySQLServerVersion"]; @@ -46,7 +46,7 @@ public static void AddApplicationServices(this WebApplicationBuilder builder) optionsBuilder => optionsBuilder .EnableRetryOnFailure(3, TimeSpan.FromSeconds(5), null) - .MigrationsAssembly("OutOfSchool.IdentityServer"))); + .MigrationsAssembly(migrationsAssembly))); services.AddCustomDataProtection("IdentityServer"); @@ -61,16 +61,6 @@ public static void AddApplicationServices(this WebApplicationBuilder builder) options.RequireHttpsMetadata = false; }); - services.AddIdentity(options => - { - options.Password.RequireDigit = true; - options.Password.RequireLowercase = true; - options.Password.RequireNonAlphanumeric = true; - options.Password.RequireUppercase = true; - options.Password.RequiredLength = 8; - }) - .AddEntityFrameworkStores() - .AddDefaultTokenProviders(); services.ConfigureApplicationCookie(c => { c.Cookie.Name = "IdentityServer.Cookie"; @@ -87,32 +77,7 @@ public static void AddApplicationServices(this WebApplicationBuilder builder) // ExternalUris options services.Configure(config.GetSection(AngularClientScopeExternalUrisConfig.Name)); - services.AddIdentityServer(options => { options.IssuerUri = issuerSection["Uri"]; }) - .AddConfigurationStore(options => - { - options.ConfigureDbContext = builder => - builder.UseMySql( - connectionString, - serverVersion, - sql => sql.MigrationsAssembly(migrationsAssembly)); - }) - .AddOperationalStore(options => - { - options.ConfigureDbContext = builder => - builder.UseMySql( - connectionString, - serverVersion, - sql => sql.MigrationsAssembly(migrationsAssembly)); - options.EnableTokenCleanup = true; - options.TokenCleanupInterval = 3600; - }) - .AddAspNetIdentity() - .AddProfileService() - .AddCustomKeyManagement(builder => - builder.UseMySql( - connectionString, - serverVersion, - sql => sql.MigrationsAssembly(migrationsAssembly))); + services.ConfigureIdentity(connectionString, issuerSection["Uri"], serverVersion, migrationsAssembly); var mailConfig = config .GetSection(EmailOptions.SectionName) diff --git a/OutOfSchool/OutOfSchool.IdentityServer/appsettings.json b/OutOfSchool/OutOfSchool.IdentityServer/appsettings.json index 3fcc0f0047..de367cd439 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/appsettings.json +++ b/OutOfSchool/OutOfSchool.IdentityServer/appsettings.json @@ -93,5 +93,6 @@ } }, "MySQLServerVersion": "8.0.32", + "MigrationsAssembly": "OutOfSchool.Migrations", "CheckConnectivityDelay": 5000 } \ No newline at end of file diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/CertificateDb/20211120170001_InitialIdentityServerCertificateDbMigration.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/CertificateDb/CertificateDbContextModelSnapshot.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/CertificateDb/CertificateDbContextModelSnapshot.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/CertificateDb/CertificateDbContextModelSnapshot.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/CertificateDb/CertificateDbContextModelSnapshot.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/ConfigurationDb/20211120165940_InitialIdentityServerConfigurationDbMigration.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/PersistedGrantDb/20211120165920_InitialIdentitySeverPersistedGrantDbMigration.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211120165900_InitialMigration.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211125122831_RejectionMigration.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211203123643_AddedWorkshopImages.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211215133101_ApprovedTime.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211216114834_InformationAboutPortal.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20211222095318_ElasticsearchSyncRecords.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220119195115_WorkshopImages.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120153319_AddSupportInformation.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220120175442_AddColumnProviderOwnership.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220124084302_AboutPortal.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220205085829_TeacherAvatar.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220206100309_ChangeTitleSizes.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220207131559_WorkshopCoverImages.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220208141627_ProviderAdmins.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220209115652_IsBlockedInsteadEnabled.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210132531_WorkshopStatus.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220210190135_Notifications.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220405194116_NotificationsChanges.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220413183628_NotificationsAddGroupedData.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220502174154_ProviderParentBlocked.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220513150320_UpdatePermissions.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220514093020_CompanyInformation.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220523184345_Quartz.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220524122239_ChangeAvatarImageIntoCoverImage.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220525090250_AddColumnProviderInstitutionType.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527131408_InstitutionHierarchyAndProviderImages.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220527154117_AddProviderSectionItem.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220530131457_RemoveWorkshopHeadFields.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220606102535_WorkshopProviderInstitutionHierarchy.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610100800_AddChildSocialGroups.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220610151703_ChangesLog.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616150520_AddCodeficator.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220616154207_UserTeacherGender.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220620185326_AddressH3Add.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621091438_Achievements.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220621143646_AddPayRate.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220622143956_RemoveProviderDescription.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220627182839_ProviderApproval.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220707134329_AddNewInstitutionStatus.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220710064104_SoftDelete.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220714135440_InstitutionAdmin.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220717193835_AddAvailableSeatsToWorkshop.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220720094332_AddressAddCodeficatorId.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220722082116_AddedTechAdminRoleWithMustChangePassword.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220723174259_ChangeTypeOfEDRPOU.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220727142219_InstitutionAdminAddFKToUser.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220728144041_AddIsParentPropertyToChild.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220804202107_ChangeCodeficatorName.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220808151517_AddCodeficatorOrder.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220810122205_RemoveClassDepartment.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220811233732_DeleteCityDistrictRegionFromAddress.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220816120814_ChildSocialGroupTable.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220823155241_BirthDay_Gender_Changes.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825120224_ChangePermissions.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220825163252_ChangeDateTime.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220902100459_RemoveCity.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20220908104745_RemoveInstitutionAdminId.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221006134754_UpdateNameValidation.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221018081520_ProviderStatusReason.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221106204302_AddFiledsToProvider.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221114231452_AddGeoHashToAddress.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221124171147_IsTopToCodeficator.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215075157_AddTitleEnColumnToAchievementTypeModel.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221215144631_UpdateProviderType.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221222175259_UpdatePersonalInfoPermissions.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20221230131540_StatisticReports.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230112225128_UpdateAdminAndMinistryAdminPermissions.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230114192426_AddNameEnColumnToSocialGroupModel.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230127121701_AddCodeficatorParentsTable.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230129114041_AddRegionAdmin.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230203165048_AddIsBlockedColumnToWorkshop.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230217224301_AddIndexesToRatingAndNotification.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230224220512_AddIndexesToSoftDelete.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230303121821_AddAverageRatingsTable.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230307201444_AddIsGovernmentToInstitution.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230315225321_AddOperationsWithObjects.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230418194045_AddKeysToEntities.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.Designer.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.Designer.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.Designer.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.Designer.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/20230426204718_AddEdrpouIpnIndexToProvidersTable.cs diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/OutOfSchoolDbContextModelSnapshot.cs b/OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/OutOfSchoolDbContextModelSnapshot.cs similarity index 100% rename from OutOfSchool/OutOfSchool.IdentityServer/Data/Migrations/OutOfSchoolMigrations/OutOfSchoolDbContextModelSnapshot.cs rename to OutOfSchool/OutOfSchool.Migrations/Data/Migrations/OutOfSchoolMigrations/OutOfSchoolDbContextModelSnapshot.cs diff --git a/OutOfSchool/OutOfSchool.Migrations/OutOfSchool.Migrations.csproj b/OutOfSchool/OutOfSchool.Migrations/OutOfSchool.Migrations.csproj new file mode 100644 index 0000000000..adca860875 --- /dev/null +++ b/OutOfSchool/OutOfSchool.Migrations/OutOfSchool.Migrations.csproj @@ -0,0 +1,30 @@ + + + + Exe + net6.0 + enable + enable + f3a869f2-8ab9-41e0-9336-d88036505f44 + + + + + + + + + + + + + + + + + + Always + + + + diff --git a/OutOfSchool/OutOfSchool.Migrations/Program.cs b/OutOfSchool/OutOfSchool.Migrations/Program.cs new file mode 100644 index 0000000000..0f131966f6 --- /dev/null +++ b/OutOfSchool/OutOfSchool.Migrations/Program.cs @@ -0,0 +1,61 @@ +using IdentityServer4.EntityFramework.DbContexts; +using Microsoft.AspNetCore.Identity; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using MySqlConnector; +using OutOfSchool.Common; +using OutOfSchool.Common.Config; +using OutOfSchool.Common.Extensions; +using OutOfSchool.Common.Extensions.Startup; +using OutOfSchool.IdentityServer.Extensions; +using OutOfSchool.IdentityServer.KeyManagement; +using OutOfSchool.Services; +using System.Reflection; + +var host = Host.CreateDefaultBuilder(args) + .ConfigureServices((context, services) => + { + var config = context.Configuration; + // TODO: Move version check into an extension to reuse code across apps + var mySQLServerVersion = config["MySQLServerVersion"]; + var serverVersion = new MySqlServerVersion(new Version(mySQLServerVersion)); + if (serverVersion.Version.Major < Constants.MySQLServerMinimalMajorVersion) + { + throw new Exception("MySQL Server version should be 8 or higher."); + } + + var connectionString = config.GetMySqlConnectionString( + "DefaultConnection", + options => new MySqlConnectionStringBuilder + { + Server = options.Server, + Port = options.Port, + UserID = options.UserId, + Password = options.Password, + Database = options.Database, + GuidFormat = options.GuidFormat.ToEnum(MySqlGuidFormat.Default), + }); + + var migrationsAssembly = typeof(Program).GetTypeInfo().Assembly.GetName().Name; + + services + .AddDbContext(options => options + .UseMySql( + connectionString, + serverVersion, + optionsBuilder => + optionsBuilder + .EnableRetryOnFailure(3, TimeSpan.FromSeconds(5), null) + .MigrationsAssembly(migrationsAssembly))); + + services.ConfigureIdentity(connectionString, config["Uri"], serverVersion, migrationsAssembly); + }) + .Build(); + +using var scope = host.Services.GetRequiredService().CreateScope(); + +scope.ServiceProvider.GetRequiredService().Database.Migrate(); +scope.ServiceProvider.GetRequiredService().Database.Migrate(); +scope.ServiceProvider.GetRequiredService().Database.Migrate(); +scope.ServiceProvider.GetRequiredService().Database.Migrate(); \ No newline at end of file diff --git a/OutOfSchool/OutOfSchool.Migrations/Properties/launchSettings.json b/OutOfSchool/OutOfSchool.Migrations/Properties/launchSettings.json new file mode 100644 index 0000000000..414bba361a --- /dev/null +++ b/OutOfSchool/OutOfSchool.Migrations/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "OutOfSchool.Migrations": { + "commandName": "Project", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} \ No newline at end of file diff --git a/OutOfSchool/OutOfSchool.Migrations/appsettings.json b/OutOfSchool/OutOfSchool.Migrations/appsettings.json new file mode 100644 index 0000000000..ca68cee74b --- /dev/null +++ b/OutOfSchool/OutOfSchool.Migrations/appsettings.json @@ -0,0 +1,16 @@ +{ + "ConnectionStringsOverride": { + "DefaultConnection": { + "UseOverride": true, + "Server": "", + "Port": 3306, + "Database": "", + "UserId": "", + "Password": "", + "GuidFormat": "Binary16" + } + }, + "Uri": "http://localhost:5443", + "MySQLServerVersion": "8.0.32", + "CheckConnectivityDelay": 5000 +} \ No newline at end of file diff --git a/OutOfSchool/OutOfSchool.WebApi.Tests/Services/QuartzTests.cs b/OutOfSchool/OutOfSchool.WebApi.Tests/Services/QuartzTests.cs index 2e397c2d8d..9b4b03bf0d 100644 --- a/OutOfSchool/OutOfSchool.WebApi.Tests/Services/QuartzTests.cs +++ b/OutOfSchool/OutOfSchool.WebApi.Tests/Services/QuartzTests.cs @@ -14,7 +14,7 @@ public void CheckExistingMigrationFile_ReturnsTrueIfExists() { // Arrange DirectoryInfo directory = TryGetSolutionDirectoryInfo(); - string path = @"OutOfSchool.IdentityServer\Data\Migrations\OutOfSchoolMigrations\20220523184345_Quartz.cs"; + string path = @"OutOfSchool.Migrations\Data\Migrations\OutOfSchoolMigrations\20220523184345_Quartz.cs"; var paths = new string[] {directory.FullName}.Concat(path.Split(@"\")); path = Path.Combine(paths.ToArray()); diff --git a/OutOfSchool/OutOfSchool.sln b/OutOfSchool/OutOfSchool.sln index 6181aa55fd..e9eacfd59d 100644 --- a/OutOfSchool/OutOfSchool.sln +++ b/OutOfSchool/OutOfSchool.sln @@ -13,9 +13,9 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4354D271-F117-47CD-BFDD-9785F584D833}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig - StyleCopAnalyzersRules.ruleset = StyleCopAnalyzersRules.ruleset - Directory.Packages.props = Directory.Packages.props Directory.Build.props = Directory.Build.props + Directory.Packages.props = Directory.Packages.props + StyleCopAnalyzersRules.ruleset = StyleCopAnalyzersRules.ruleset EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OutOfSchool.IdentityServer.Tests", "OutOfSchool.IdentityServer.Tests\OutOfSchool.IdentityServer.Tests.csproj", "{5C959505-9BD1-4829-80CC-5C6392E364EA}" @@ -38,11 +38,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OutOfSchool.WebApi.Integrat EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OutOfSchool.Redis", "OutOfSchool.Redis\OutOfSchool.Redis.csproj", "{ED7E72ED-6A6C-4C49-BC59-4B3FEF9E503C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutOfSchool.RazorTemplatesData", "OutOfSchool.RazorTemplatesData\OutOfSchool.RazorTemplatesData.csproj", "{8B05B816-EAB3-40FA-B549-3072F933F759}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OutOfSchool.RazorTemplatesData", "OutOfSchool.RazorTemplatesData\OutOfSchool.RazorTemplatesData.csproj", "{8B05B816-EAB3-40FA-B549-3072F933F759}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OutOfSchool.GRPC", "OutOfSchool.GRPC\OutOfSchool.GRPC.csproj", "{FDDEE291-850B-4CB7-A5D6-4A3854C24EF8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutOfSchool.AdminInitializer", "OutOfSchool.AdminInitializer\OutOfSchool.AdminInitializer.csproj", "{3F5B71B9-F9A6-4FA9-AB7F-789C10DD48A3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OutOfSchool.AdminInitializer", "OutOfSchool.AdminInitializer\OutOfSchool.AdminInitializer.csproj", "{3F5B71B9-F9A6-4FA9-AB7F-789C10DD48A3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutOfSchool.Migrations", "OutOfSchool.Migrations\OutOfSchool.Migrations.csproj", "{DEC6938D-5197-4AC2-A2D1-379C40FB0899}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -106,6 +108,10 @@ Global {3F5B71B9-F9A6-4FA9-AB7F-789C10DD48A3}.Debug|Any CPU.Build.0 = Debug|Any CPU {3F5B71B9-F9A6-4FA9-AB7F-789C10DD48A3}.Release|Any CPU.ActiveCfg = Release|Any CPU {3F5B71B9-F9A6-4FA9-AB7F-789C10DD48A3}.Release|Any CPU.Build.0 = Release|Any CPU + {DEC6938D-5197-4AC2-A2D1-379C40FB0899}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DEC6938D-5197-4AC2-A2D1-379C40FB0899}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DEC6938D-5197-4AC2-A2D1-379C40FB0899}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DEC6938D-5197-4AC2-A2D1-379C40FB0899}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE