Package io.github.mfvanek.pg.generator
Class ColumnWithSerialTypeMigrationGenerator
java.lang.Object
io.github.mfvanek.pg.generator.ColumnWithSerialTypeMigrationGenerator
- All Implemented Interfaces:
DbMigrationGenerator<ColumnWithSerialType>
Migration generator for removing default value and sequence on columns of serial types.
- Since:
- 0.6.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
generate
(StringBuilder queryBuilder, ColumnWithSerialType column) final String
generate
(List<ColumnWithSerialType> rows) Generates sql migration based on the specified rows.
-
Field Details
-
DELIMITER
- See Also:
-
-
Constructor Details
-
ColumnWithSerialTypeMigrationGenerator
-
-
Method Details
-
generate
-
generate
Generates sql migration based on the specified rows.- Specified by:
generate
in interfaceDbMigrationGenerator<T extends TableNameAware>
- Parameters:
rows
- a set of data on the basis of which the sql migration will be generated- Returns:
- generated sql migration
-