DbUp / dbup-oracle

Oracle provider for DbUp
MIT License
2 stars 5 forks source link

OracleTableJournal ignores schema name #4

Open nvarscar opened 5 years ago

nvarscar commented 5 years ago

Neither OracleTableJournal.CreateSchemaTableSql() https://github.com/DbUp/DbUp/blob/976d91cd5e4bc7c478f172e91b597dd1495274de/src/dbup-oracle/OracleTableJournal.cs#L33 nor OracleTableJournal.DoesTableExistSql() https://github.com/DbUp/DbUp/blob/976d91cd5e4bc7c478f172e91b597dd1495274de/src/dbup-oracle/OracleTableJournal.cs#L77 take SchemaTableSchema (schema name) into account, as compared to TableJournal.DoesTableExistSql(): https://github.com/DbUp/DbUp/blob/976d91cd5e4bc7c478f172e91b597dd1495274de/src/dbup-core/Support/TableJournal.cs#L215

As a result, versions table gets deploy to the current schema regardless of the schema parameter value.