Author: billyxie Date: 2009-07-14 10:46:24 +0200 (Tue, 14 Jul 2009) New Revision: 36911
Modified: CMSContainer/branches/b1_6/CMSContainer/migration/migration_1.6.1_to_1.6.2.txt Log: CMSC-1272 - Dynamic form uses description field, but should have its own intro field Modified: CMSContainer/branches/b1_6/CMSContainer/migration/migration_1.6.1_to_1.6.2.txt =================================================================== --- CMSContainer/branches/b1_6/CMSContainer/migration/migration_1.6.1_to_1.6.2.txt 2009-07-14 08:33:35 UTC (rev 36910) +++ CMSContainer/branches/b1_6/CMSContainer/migration/migration_1.6.1_to_1.6.2.txt 2009-07-14 08:46:24 UTC (rev 36911) @@ -50,3 +50,56 @@ * * * + + +Name: Add a intro column and a body column in <prefix>_responseform table +Goal: add intro field and body field in dynamic form & copy description field to intro field & after copying, clean the description field, CMSC-1272 +Type: sql-script +--- Start script --- +ALTER TABLE mm_responseform ADD intro text; +ALTER TABLE mm_responseform ADD body mediumtext; +UPDATE mm_responseform SET intro = description; +UPDATE mm_responseform SET description = NULL; + +ALTER TABLE live_responseform ADD intro text; +ALTER TABLE live_responseform ADD body mediumtext; +UPDATE live_responseform SET intro = description; +UPDATE live_responseform SET description = NULL; +--- End script --- +Exceptions/errors/other problems and what to do: +* +* +* + +Name: update the templete jsp +Goal: change templates jsp to use intro & body field + fixed the styling, CMSC-1272 +Type: manual action +Steps: +1. update the following +<div class="kolombestel"> +to +<div class="responseform"> + +2. update the following + <mm:field name="description"> + <mm:isnotempty><p><mm:write escape="none"/></p></mm:isnotempty> + </mm:field> +to + <mm:field name="intro"> + <mm:isnotempty><div class="intro"><mm:write escape="none"/></div></mm:isnotempty> + </mm:field> + + <mm:field name="body"> + <mm:isnotempty><div class="body"><mm:write escape="none"/></div></mm:isnotempty> + </mm:field> + +3. update the following +<mm:isnotempty><p class="body"><mm:write escape="none"/></p></mm:isnotempty></mm:field> +to +<mm:isnotempty><div class="confirmation"><mm:write escape="none"/></div></mm:isnotempty></mm:field> + +Exceptions/errors/other problems and what to do: +* +* +* _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs