0
Iniciado

Wrong add column command generation for Oracle databases

Mateusz Kamiński hace 7 años actualizado por Rafał Strzaliński (Senior Engineer) hace 7 años 1

It looks like the term COLUMN is unnecessary in "ALTER TABLE <table_name> ADD COLUMN ..." for Oracle migration scripts and causes error when executed on a database.

Iniciado

Hi,


I've made a test. I've created model, added table, added collumns, and finally generated migration script. I got this query:



ALTER TABLE "Table_1"
    ADD "column_2" int  NOT NULL;


Could you send us an example model to reproduce it? Are you sure your model is an "Oracle" database model?