Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration Sql generate for AddColumn operation for non nullable Guid field is wrong [DNET700] #651

Closed
firebird-automations opened this issue Sep 26, 2016 · 1 comment

Comments

@firebird-automations
Copy link

Submitted by: Fabiano Rezende (fabiano.rezende)

The Migration below

public partial class MyMigration : DbMigration
{
public override void Up()
{
AddColumn("dbo.TableName", "Id", c => c.Guid(nullable: false));
}
}

Generats the Sql:
ALTER TABLE "TableName" ADD "Id" CHAR(16) CHARACTER SET OCTETS DEFAULT CHAR_TO_UUID('00000000-0000-0000-0000-000000000000') NOT NULL

Firebird does not recognize DEFAULT CHAR_TO_UUID('00000000-0000-0000-0000-000000000000')

@cincuranet
Copy link
Member

EF6 provider here is in maintenance/legacy mode here (see https://groups.google.com/g/firebird-net-provider/c/_0Hwoh5XG_I). If somebody feels like tackling this with good PR, it will be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants