From 45d6746988977befd1016823ae288d0df44001f7 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 26 May 2003 02:08:44 +0000 Subject: [PATCH] fixing upgrade bugs --- docs/upgrades/upgrade_5.2.6-5.3.0.pl | 5 +++-- docs/upgrades/upgrade_5.2.6-5.3.0.sql | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/upgrades/upgrade_5.2.6-5.3.0.pl b/docs/upgrades/upgrade_5.2.6-5.3.0.pl index 548851566..8848b1bbe 100644 --- a/docs/upgrades/upgrade_5.2.6-5.3.0.pl +++ b/docs/upgrades/upgrade_5.2.6-5.3.0.pl @@ -143,12 +143,13 @@ $sth->finish; "alter table DataForm_entryData drop column sequenceNumber", "alter table DataForm add column emailTemplateId int not null default 2", "alter table DataForm add column acknowlegementTemplateId int not null default 3", - "alter table DataForm_field drop column validation" + "alter table DataForm_field drop column validation", + "alter table DataForm add column listTemplateId int not null default 1" ); foreach my $query (@sql) { WebGUI::SQL->write($query); } -my $sth = WebGUI::SQL->read("select DataForm_fieldId,name,wobjectId from DataForm_fieldId"); +my $sth = WebGUI::SQL->read("select DataForm_fieldId,name,wobjectId from DataForm_field"); while (my @data = $sth->array) { my $newname = WebGUI::URL::urlize($data[1]); WebGUI::SQL->write("update DataForm_field set name=".quote($newname)." where DataForm_fieldId=".$data[0]); diff --git a/docs/upgrades/upgrade_5.2.6-5.3.0.sql b/docs/upgrades/upgrade_5.2.6-5.3.0.sql index 8abaf4eec..a210973f6 100644 --- a/docs/upgrades/upgrade_5.2.6-5.3.0.sql +++ b/docs/upgrades/upgrade_5.2.6-5.3.0.sql @@ -394,7 +394,6 @@ delete from international where languageId=1 and namespace='DataForm' and intern insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (72,1,'DataForm','You may add as many additional fields to your Data Form as you like.\r\n

\r\n\r\nLabel
\r\nThis is an informative text label to let the user know what this field represents.\r\n

\r\n\r\nField Name
\r\nThe name of this field. It must be unique among all of the other fields on your form.\r\n

\r\n\r\nSubtext
\r\nAn extension of the label, this is a description of what should go in the field or optional instructions for the field.\r\n

\r\n\r\nStatus
\r\nHidden fields will not be visible to the user, but will be sent in the email.Displayed fields can be seen by the user but not modified. Modifiable fields can be filled in by the user. Required fields must be filled in by the user.\r\nIf you choose Hidden or Displayed, be sure to fill in a Default Value.\r\n

\r\n\r\nType
\r\nChoose the type of form element for this field. \r\n

\r\n\r\nWidth
\r\nSet the number of characters wide this field will be.\r\n

\r\n\r\nHeight
\r\nSet the number of characters tall this field will be. Only used on textarea and HTMLArea.\r\n

\r\n\r\nPossible Values
\r\nThis field is used for the list types (like Checkbox List and Select List). Enter the values you wish to appear, one per line.\r\n

\r\n\r\nDefault Value (optional)
\r\nEnter the default value (if any) for the field. For Yes/No fields, enter "yes" to select "Yes" and "no" to select "No".\r\n

\r\n\r\n', 1053855075,NULL); delete from international where languageId=1 and namespace='DataForm' and internationalId=25; insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (25,1,'DataForm','Default Value(s)', 1053855043,NULL); -alter table DataForm add column listTemplateId int not null default 1; delete from international where languageId=1 and namespace='DataForm' and internationalId=61; insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (61,1,'DataForm','Data Form, Add/Edit', 1053885941,NULL); delete from international where languageId=1 and namespace='DataForm' and internationalId=71;