/// <summary> /// Will be called just after the Schema is created<br/> /// Can be used to execute custom grants or other database operations. /// </summary> /// <param name="expression"></param> public virtual void ProcessAfter(ICreateSchemaWithPrefixExpression expression) { if (!Enabled) { return; } if (!Processor.SchemaExists(CommonSchemaName)) { return; } Logger.LogInformation($"ProcessAfter Schema:{expression.SchemaName} SchemaPrefix:{expression.SchemaPrefixId}"); var sqlAll = MigrationConfig .PrepareSql(SqlResources.SchemaPrefixSql) .ReplaceIgnoreCase("{CommonSchemaName}", CommonSchemaName) .ReplaceIgnoreCase("{AuthCodeSchemaName}", AuthCodeSchemaName); Execute(sqlAll); }
/// <inheritdoc /> public virtual string GenerateSql(ICreateSchemaWithPrefixExpression expression) { return(null); }