Skip to content

Loading…

DBAL-633: MSSQL False #1851

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user smasala:

Hi there,

Migrations with MSSQL

protected $myfield = false;

DIFF ->

$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.

@doctrinebot

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.

@doctrinebot

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.