Hey there,
I have a problem here. I am trying to create a table with a column id that has autoIncrement enabled. But even this little code segment doesn't create the desired sql code:
<createTable tableName="a_table"> <column name="id" type="int" autoIncrement="true"> <constraints primaryKey="true" nullable="false" /> </column> <column name="name" type="nvarchar(255)"> <constraints nullable="false" /> </column> <column name="value" type="nvarchar(255)"> <constraints nullable="false" /> </column> </createTable>
What's created is:
[INFO ] 2020-02-03 12:12:11.650 [localhost-startStop-1] l.e.j.JdbcExecutor:42 - CREATE TABLE XXX.a_table (id INTEGER NOT NULL, name NVARCHAR2(255) NOT NULL, value NVARCHAR2(255) NOT NULL, CONSTRAINT PK_A_TABLE PRIMARY KEY (id))
The autoIncrement gets ignored. Using "SELECT * FROM V$VERSION" on the server via SQL Developer gives:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
PL/SQL Release 12.2.0.1.0 - Production
CORE 12.2.0.1.0 Production
TNS for Linux: Version 12.2.0.1.0 - Production
NLSRTL Version 12.2.0.1.0 - Production
Liquibase version is 3.8.5
What am I doing wrong?