fixing upgrade bugs
This commit is contained in:
parent
5333d96632
commit
45d6746988
2 changed files with 3 additions and 3 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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<br><br>\r\n\r\n<b>Label</b><br>\r\nThis is an informative text label to let the user know what this field represents.\r\n<p>\r\n\r\n<b>Field Name</b><br>\r\nThe name of this field. It must be unique among all of the other fields on your form.\r\n<p>\r\n\r\n<b>Subtext</b><br>\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<p>\r\n\r\n<b>Status</b><br>\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<p>\r\n\r\n<b>Type</b><br>\r\nChoose the type of form element for this field. \r\n<p>\r\n\r\n<b>Width</b><br>\r\nSet the number of characters wide this field will be.\r\n<p>\r\n\r\n<b>Height</b><br>\r\nSet the number of characters tall this field will be. Only used on textarea and HTMLArea.\r\n<p>\r\n\r\n<b>Possible Values</b><br>\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<p>\r\n\r\n<b>Default Value (optional)</b><br>\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<p>\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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue