mmsommer/OGD-Database-Migrator.Net — Issue #2: String literals are passed unquoted to generated sql
Author: Lutger
Created: 2012-03-07 16:21:40+00:00
State: open

For example:

Database.AddColumn("FooTable", new Column("FooColumn", DbType.String, ColumnProperty.NotNull, "FooValue");

will generate something like:

ALTER TABLE FooTable ADD FooClumn VARCHAR(255) NOT NULL DEFAULT FooValue

while it should generate:

ALTER TABLE FooTable ADD FooClumn VARCHAR(255) NOT NULL DEFAULT 'FooValue'