mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
Merged 5.0.N (5.0.3) to 5.1.N (5.1.1)
116309 adavis: Merged 5.0.2-CLOUD (Cloud ) to 5.0.N (5.0.3) 116304 adavis: Merged 5.0.2-PLUS (5.0.2-PLUS) to 5.0.2-CLOUD (Cloud ) 116108 rneamtu: Merged NESS/5.0.2-PLUS-2015-10-28/ (5.0.2.-PLUS) to 5.0.2-PLUS (5.0.2.-PLUS) 116088: MNT-15062 : [Cloud 40] Unexpected differences are returned after schema bootstrap (clean start) - Set timestamp default null for columns of this type, for mysql dialect git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@116392 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -981,7 +981,7 @@
|
||||
</column>
|
||||
<column name="DEPLOY_TIME_" order="5">
|
||||
<type>timestamp</type>
|
||||
<nullable>false</nullable>
|
||||
<nullable>true</nullable>
|
||||
<autoincrement>false</autoincrement>
|
||||
</column>
|
||||
</columns>
|
||||
@@ -1676,7 +1676,7 @@
|
||||
</column>
|
||||
<column name="CREATE_TIME_" order="14">
|
||||
<type>timestamp</type>
|
||||
<nullable>false</nullable>
|
||||
<nullable>true</nullable>
|
||||
<autoincrement>false</autoincrement>
|
||||
</column>
|
||||
<column name="DUE_DATE_" order="15">
|
||||
|
@@ -87,6 +87,7 @@
|
||||
<ref bean="patch.db-V5.0-upgrade-to-activiti-5.16.2" />
|
||||
<ref bean="patch.db-V5.0-upgrade-to-activiti-5.16.4" />
|
||||
<ref bean="patch.db-V5.0-remove-columns-after-upgrade-to-activiti-5.16.2" />
|
||||
<ref bean="patch.db-V5.0-update-activiti-default-timestamp-column" />
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
@@ -0,0 +1,19 @@
|
||||
--
|
||||
-- Title: Update Activiti tables ACT_RE_DEPLOYMENT and ACT_RU_TASK with default timestamp value with NULL
|
||||
-- Database: Generic
|
||||
-- Since: V5.0 Schema 8034
|
||||
-- Author: Ramona Popa
|
||||
--
|
||||
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
||||
--
|
||||
|
||||
-- Record script finish
|
||||
--
|
||||
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V5.0-update-activiti-default-timestamp-column';
|
||||
INSERT INTO alf_applied_patch
|
||||
(id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
|
||||
VALUES
|
||||
(
|
||||
'patch.db-V5.0-update-activiti-default-timestamp-column', 'Manually executed script upgrade V5.0: Upgraded Activiti tables ACT_RE_DEPLOYMENT and ACT_RU_TASK for default timestamp value with NULL',
|
||||
0, 8033, -1, 8034, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||
);
|
@@ -0,0 +1,26 @@
|
||||
--
|
||||
-- Title: Update Activiti tables ACT_RE_DEPLOYMENT and ACT_RU_TASK with default timestamp value with NULL
|
||||
-- Database: MySQL InnoDB
|
||||
-- Since: V5.0 Schema 8034
|
||||
-- Author: Ramona Popa
|
||||
--
|
||||
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
||||
--
|
||||
|
||||
alter table ACT_RE_DEPLOYMENT
|
||||
MODIFY DEPLOY_TIME_ timestamp null;
|
||||
|
||||
alter table ACT_RU_TASK
|
||||
MODIFY CREATE_TIME_ timestamp null;
|
||||
|
||||
--
|
||||
-- Record script finish
|
||||
--
|
||||
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V5.0-update-activiti-default-timestamp-column';
|
||||
INSERT INTO alf_applied_patch
|
||||
(id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
|
||||
VALUES
|
||||
(
|
||||
'patch.db-V5.0-update-activiti-default-timestamp-column', 'Manually executed script upgrade V5.0: Upgraded Activiti tables ACT_RE_DEPLOYMENT and ACT_RU_TASK for default timestamp value with NULL',
|
||||
0, 8033, -1, 8034, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||
);
|
@@ -199,9 +199,7 @@ patch.personUsagePatch.description=Add person 'cm:sizeCurrent' property (if miss
|
||||
patch.redeployNominatedInvitationProcessWithPropsForShare.description=Redeploy nominated invitation workflow
|
||||
|
||||
patch.transferDefinitions.description=Add transfer definitions folder to data dictionary.
|
||||
|
||||
patch.redeployNominatedInvitationProcessWithPropsForShare.description=Redeploy nominated invitation workflow
|
||||
|
||||
patch.thumbnailsAssocQName.description=Update the 'cm:thumbnails' association QName to 'rn:rendition'.
|
||||
|
||||
patch.convertContentUrls.description=Converts pre-3.2 content URLs to use the alf_content_data table. The conversion work can also be done on a schedule; please contact Alfresco Support for further details.
|
||||
@@ -367,6 +365,8 @@ patch.db-V5.0-upgrade-to-activiti-5.16.4.description=Update Activiti tables from
|
||||
|
||||
patch.deleteClassifibleAspectForFailedThumbnail.description=Deletes 'cm:generalclassifiable' aspect and associated properties for nodes of 'cm:failedThumbnail' type
|
||||
|
||||
patch.db-V5.0-update-activiti-default-timestamp-column.description=Update Activiti tables ACT_RE_DEPLOYMENT and ACT_RU_TASK with default timestamp value with NULL
|
||||
|
||||
patch.downloadsFolder=Adds the System Downloads folder
|
||||
patch.downloadsFolder.description=Ensures the Syste Downloads folder exists.
|
||||
patch.downloadsFolder.result.exists=The System Downloads folder already exists.
|
||||
|
@@ -1259,4 +1259,15 @@
|
||||
</props>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="patch.db-V5.0-update-activiti-default-timestamp-column" class="org.alfresco.repo.admin.patch.impl.SchemaUpgradeScriptPatch" parent="basePatch">
|
||||
<property name="id" value="patch.db-V5.0-update-activiti-default-timestamp-column" />
|
||||
<property name="description" value="patch.db-V5.0-update-activiti-default-timestamp-column.description" />
|
||||
<property name="fixesFromSchema" value="0" />
|
||||
<property name="fixesToSchema" value="9022" />
|
||||
<property name="targetSchema" value="9023" />
|
||||
<property name="scriptUrl">
|
||||
<value>classpath:alfresco/dbscripts/upgrade/5.0/${db.script.dialect}/update-activiti-default-timestamp-column.sql</value>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
||||
|
@@ -23,4 +23,4 @@ version.build=r@scm-revision@-b@build-number@
|
||||
|
||||
# Schema number
|
||||
|
||||
version.schema=9022
|
||||
version.schema=9023
|
||||
|
@@ -23,7 +23,7 @@ create table ACT_GE_BYTEARRAY (
|
||||
create table ACT_RE_DEPLOYMENT (
|
||||
ID_ varchar(255),
|
||||
NAME_ varchar(255),
|
||||
DEPLOY_TIME_ timestamp,
|
||||
DEPLOY_TIME_ timestamp NULL,
|
||||
primary key (ID_)
|
||||
) TYPE=InnoDB;
|
||||
|
||||
@@ -104,7 +104,7 @@ create table ACT_RU_TASK (
|
||||
FORM_ varchar(255),
|
||||
ASSIGNEE_ varchar(255),
|
||||
PRIORITY_ integer,
|
||||
CREATE_TIME_ timestamp,
|
||||
CREATE_TIME_ timestamp NULL,
|
||||
START_DEADLINE_ timestamp,
|
||||
COMPLETION_DEADLINE_ timestamp,
|
||||
SKIPPABLE_ TINYINT,
|
||||
|
Reference in New Issue
Block a user