Package org.opencms.setup.db.update6to7
Class CmsUpdateDBAlterTables
java.lang.Object
org.opencms.setup.db.A_CmsUpdateDBPart
org.opencms.setup.db.update6to7.CmsUpdateDBAlterTables
- All Implemented Interfaces:
I_CmsUpdateDBPart
- Direct Known Subclasses:
CmsUpdateDBAlterTables
,CmsUpdateDBAlterTables
,CmsUpdateDBAlterTables
This class makes the remaining changes to some tables in order to update them.
The following tables will be altered CMS_ONLINE/OFFLINE_PROPERTYDEF Add the TYPE column CMS_ONLINE/OFFLINE_RESOURCES Add the columns DATE_CONTENT and RESOURCE_VERSION CMS_ONLINE/OFFLINE_STRUCTURE Add the column STRUCTURE_VERSION CMS_PROJECTS Drop the column TASK_ID and change the size for the project name
- Since:
- 7.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String[]
Constant array with the queries for the CMS_ONLINE_CONTENTS table.Constant ArrayList of the queries of the CMS_OFFLINE table.protected static final String[]
Constant array with the ONLINE and OFFLINE PROPERTYDEF tables.Constant ArrayList of the two PROPERTYDEF tables.protected static final String[]
Constant array with the ONLINE and OFFLINE RESOURCES tables.Constant ArrayList of the two RESOURCES tables.protected static final String[]
Constant array with the ONLINE and OFFLINE STRUCTURE tables.Constant ArrayList of the two PROPERTYDEF tables.protected static final String
Constant for the column CONTENT_ID of the table CMS_OFFLINE_CONTENTS.protected static final String
Constant for the column PROPERTYDEF_TYPE of the PROPERTYDEF tables.protected static final String
Constant for the column STRUCTURE_VERSION in the STRUCTURE tables.protected static final String
Constant for the column PROJECT_NAME of the CMS_PROJECTS table.protected static final String
Constant for the column TASK_ID of the CMS_PROJECTS table.protected static final String
Constant for the new column DATE_CONTENT of the CMS_RESOURCES tables.protected static final String
Constant for the new column RESOURCE_VERSION of the CMS_RESOURCES tables.protected static final String
Constant for the sql replacement of the tablename.protected static final String
Constant for the table name CMS_OFFLINE_CONTENTS.protected static final String
Constant for the table name CMS_PROJECTS.Fields inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
m_poolData, m_queries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
internalExecute
(CmsSetupDb dbCon) Does the hard work.Methods inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
-
Field Details
-
CMS_OFFLINE_CONTENTS_QUERIES
Constant array with the queries for the CMS_ONLINE_CONTENTS table. -
CMS_OFFLINE_CONTENTS_QUERIES_LIST
Constant ArrayList of the queries of the CMS_OFFLINE table. -
CMS_PROPERTYDEF
Constant array with the ONLINE and OFFLINE PROPERTYDEF tables. -
CMS_PROPERTYDEF_LIST
Constant ArrayList of the two PROPERTYDEF tables. -
CMS_RESOURCES
Constant array with the ONLINE and OFFLINE RESOURCES tables. -
CMS_RESOURCES_LIST
Constant ArrayList of the two RESOURCES tables. -
CMS_STRUCTURE
Constant array with the ONLINE and OFFLINE STRUCTURE tables. -
CMS_STRUCTURE_LIST
Constant ArrayList of the two PROPERTYDEF tables. -
COLUMN_CMS_OFFLINE_CONTENTS_CONTENT_ID
Constant for the column CONTENT_ID of the table CMS_OFFLINE_CONTENTS.- See Also:
-
COLUMN_CMS_PROPERTYDEF_TYPE
Constant for the column PROPERTYDEF_TYPE of the PROPERTYDEF tables.- See Also:
-
COLUMN_CMS_STRUCTURE_STRUCTURE_VERSION
Constant for the column STRUCTURE_VERSION in the STRUCTURE tables.- See Also:
-
COLUMN_PROJECTS_PROJECT_NAME
Constant for the column PROJECT_NAME of the CMS_PROJECTS table.- See Also:
-
COLUMN_PROJECTS_TASK_ID
Constant for the column TASK_ID of the CMS_PROJECTS table.- See Also:
-
COLUMN_RESOURCES_DATE_CONTENT
Constant for the new column DATE_CONTENT of the CMS_RESOURCES tables.- See Also:
-
COLUMN_RESOURCES_RESOURCE_VERSION
Constant for the new column RESOURCE_VERSION of the CMS_RESOURCES tables.- See Also:
-
REPLACEMENT_TABLENAME
Constant for the sql replacement of the tablename.- See Also:
-
TABLE_CMS_OFFLINE_CONTENTS
Constant for the table name CMS_OFFLINE_CONTENTS.- See Also:
-
TABLE_CMS_PROJECTS
Constant for the table name CMS_PROJECTS.- See Also:
-
-
Constructor Details
-
CmsUpdateDBAlterTables
Default constructor.- Throws:
IOException
- if the default sql queries property file could not be read
-
-
Method Details
-
internalExecute
Description copied from class:A_CmsUpdateDBPart
Does the hard work.- Specified by:
internalExecute
in classA_CmsUpdateDBPart
- Parameters:
dbCon
- the db connection interface- Throws:
SQLException
- if something goes wrong- See Also:
-