0
Alustatud

Wrong add column command generation for Oracle databases

Mateusz Kamiński 7 aastat tagasi uuendaja Rafał Strzaliński (Senior Engineer) 7 aastat tagasi 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.

Alustatud

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?