nodal
nodal copied to clipboard
addColumn in a migration does not take "unique" into account
Hi,
I created a table thanks to a first migration.
up() {
return [
this.createTable('tags', []),
];
}
Then I tried to add a unique field to that table thanks to a second migration.
up() {
return [
this.addColumn('tags', 'text', 'string', { nullable: false, unique: true }),
];
}
However, after the nodal db:migrate
, the UNIQUE constraint is not present in my table.
Thanks for bringing this to my attention. I'll look into this for 0.13.