Skip to content

Commit 3b007d3

Browse files
Catauruscincuranet
authored andcommitted
Fix default value generation (DNET-873)
1 parent 7a17e56 commit 3b007d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Provider/src/FirebirdSql.EntityFrameworkCore.Firebird/Migrations/FbMigrationsSqlGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ protected override void ColumnDefinition(string schema, string table, string nam
311311
builder.Append(" GENERATED BY DEFAULT AS IDENTITY");
312312
}
313313

314+
DefaultValue(defaultValue, defaultValueSql, builder);
315+
314316
if (!nullable)
315317
{
316318
builder.Append(" NOT NULL");
317319
}
318-
319-
DefaultValue(defaultValue, defaultValueSql, builder);
320320
}
321321

322322
protected override void ForeignKeyConstraint(AddForeignKeyOperation operation, IModel model, MigrationCommandListBuilder builder)

0 commit comments

Comments
 (0)