Class CreateVersionHistory


  • public class CreateVersionHistory
    extends 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

      • createTableIfNeeded

        public static void createTableIfNeeded​(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 -