0
Started

Wrong add column command generation for Oracle databases

Mateusz Kamiński 7 years ago updated by Rafał Strzaliński (Senior Engineer) 7 years ago 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.

Started

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?