Skip to content


DBAL-633: MSSQL False #1851

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user smasala:

Hi there,

Migrations with MSSQL

protected $myfield = false;


$this->addSql("ALTER TABLE decuser ADD completerender BIT NOT NULL");

DEFAULT 0 is missing here

according to stof

The generated statements are coming from the DBAL schema comparator, comparing the DB schema to the schema expected by the ORM.


Comment created by @beberlei:

Doctrine only generates default clauses if you use:

@Column(options={"default": "0"})

Not by looking at the default value of a field.


Issue was closed with resolution "Invalid"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.