Identity column with seed in Oracle
See original GitHub issueI’m getting “Specified cast is not valid.” when trying to use
FluentMigrator.Oracle.OracleExtensions.Identity(syntax, FluentMigrator.OracleGenerationType.ByDefault, 1, 1)
This works fine:
FluentMigrator.Oracle.OracleExtensions.Identity(syntax, FluentMigrator.OracleGenerationType.ByDefault)
Exception details:
System.InvalidCastException: Specified cast is not valid. at FluentMigrator.Infrastructure.Extensions.AdditionalFeaturesExtensions.GetAdditionalFeature[T](ISupportAdditionalFeatures additionalFeatures, String key, T defaultValue) at FluentMigrator.Runner.Generators.Oracle.Oracle12CColumn.GetIdentityString(ColumnDefinition column) at FluentMigrator.Runner.Generators.Oracle.Oracle12CColumn.FormatIdentity(ColumnDefinition column) at FluentMigrator.Runner.Generators.Base.ColumnBase.Generate(ColumnDefinition column) at FluentMigrator.Runner.Generators.Generic.GenericGenerator.Generate(CreateColumnExpression expression) at FluentMigrator.Runner.Generators.Oracle.OracleGenerator.Generate(CreateColumnExpression expression) at FluentMigrator.Runner.Processors.ProcessorBase.Process(CreateColumnExpression expression) at FluentMigrator.Expressions.CreateColumnExpression.ExecuteWith(IMigrationProcessor processor) at FluentMigrator.Runner.MigrationRunner.<>c__DisplayClass79_0.<ExecuteExpressions>b__1() at FluentMigrator.Runner.StopWatch.Time(Action action) at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions(ICollection
1 expressions)`
Please advise how to get it working.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
I believe this bug can be closed
Thanks for catching that.