0
Gestartet

Wrong add column command generation for Oracle databases

Mateusz Kamiński vor 7 Jahren aktualisiert von Rafał Strzaliński (Senior Engineer) vor 7 Jahren 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.

Gestartet

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?