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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ADMIN_GROUP  
      static java.lang.String SCHEMA_GROUP_TAG  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createTableIfNeeded​(java.lang.String adminSchemaName, ISchemaAdapter target)
      Create the version history table in the given (admin) schema.
      static Table generateTable​(PhysicalDataModel dataModel, java.lang.String adminSchemaName, boolean addTags)
      Generates the Table
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                               ISchemaAdapter 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 -