Integer jdbcType = liquibaseColumn.getType().getDataTypeId(); String jdbcTypeName = liquibaseColumn.getType().getTypeName(); if("Oracle".equals(connectionProvider.getDatabaseProductName())) { targetColumn.setLength(liquibaseColumn.getType().getColumnSize()); targetColumn.setNullable(liquibaseColumn.isNullable()); targetColumn.setScale(liquibaseColumn.getType().getDecimalDigits());
Integer jdbcType = liquibaseColumn.getType().getDataTypeId(); String jdbcTypeName = liquibaseColumn.getType().getTypeName(); if("Oracle".equals(connectionProvider.getDatabaseProductName())) { targetColumn.setLength(liquibaseColumn.getType().getColumnSize()); targetColumn.setNullable(liquibaseColumn.isNullable()); targetColumn.setScale(liquibaseColumn.getType().getDecimalDigits());
@Override protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException { Column column = (Column) example; if (column.getType() == null) { //not the actual full version found with the table if (column.getRelation() == null) { throw new InvalidExampleException("No relation set on " + column); } Relation relation = snapshot.get(column.getRelation()); if (relation != null) { for (Column columnSnapshot : relation.getColumns()) { if (columnSnapshot.getName().equalsIgnoreCase(column.getName())) { return columnSnapshot; } } } snapshotColumn((Column) example, snapshot); return example; //did not find it } else { return example; } }
LOG.info("Found column " + column.getName() + " " + column.getType().toString());
LOG.info("Found column " + column.getName() + " " + column.getType().toString());