-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Solve #245 without new command-line parameter * Ignore the standard tables casing issue for Oracle, as it has never been case sensitive * Fixed casing of INFORMATION_SCHEMA in unit tests
- Loading branch information
Showing
14 changed files
with
210 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using grate.Configuration; | ||
using grate.unittests.TestInfrastructure; | ||
using NUnit.Framework; | ||
|
||
namespace grate.unittests.Oracle; | ||
|
||
[TestFixture] | ||
[Category("Oracle")] | ||
public class MigrationTables: Generic.GenericMigrationTables | ||
public class MigrationTables : Generic.GenericMigrationTables | ||
{ | ||
protected override IGrateTestContext Context => GrateTestContext.Oracle; | ||
} | ||
|
||
protected override Task CheckTableCasing(string tableName, string funnyCasing, Action<GrateConfiguration, string> setTableName) | ||
{ | ||
Assert.Ignore("Oracle has never been case-sensitive for grate. No need to introduce that now."); | ||
return Task.CompletedTask; | ||
} | ||
|
||
protected override string CountTableSql(string schemaName, string tableName) | ||
{ | ||
return $@" | ||
SELECT COUNT(table_name) FROM user_tables | ||
WHERE | ||
lower(table_name) = '{tableName.ToLowerInvariant()}'"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.