Class CreateVersionHistory


  • public class CreateVersionHistory
    extends java.lang.Object
    We don't add the version_history to the PhysicalDataModel because it's a schema management table, and the model shouldn't really care about it.
    • Constructor Detail

      • CreateVersionHistory

        public CreateVersionHistory()
    • Method Detail

      • generateTable

        public static Table generateTable​(PhysicalDataModel dataModel,
                                          java.lang.String adminSchemaName,
                                          boolean addTags)
        Generates the Table
        Parameters:
        dataModel -
        adminSchemaName -
        addTags -
        Returns:
      • createTableIfNeeded

        public static void createTableIfNeeded​(java.lang.String adminSchemaName,
                                               IDatabaseAdapter target)
        Create the version history table in the given (admin) schema. This table is used to determine the current version of the schema, and hence which changes should be applied in order to migrate the schema to the latest version.
        As this is the version table itself, it is assigned a version id of 0 which is used to indicate that versioning doesn't apply.
        Parameters:
        adminSchemaName -
        target -