tesbot/ddl: Allow up to 128 characters for the job titles (aka Remarks).
Francois Gouget
fgouget at codeweavers.com
Thu Nov 1 18:08:35 CDT 2012
With 50 characters the wine-patches subject lines were being truncated way too short.
---
testbot/ddl/update19.sql | 4 ++++
testbot/ddl/winetestbot.sql | 2 +-
testbot/lib/WineTestBot/Jobs.pm | 2 +-
testbot/web/Submit.pl | 2 +-
4 files changed, 7 insertions(+), 3 deletions(-)
create mode 100644 testbot/ddl/update19.sql
diff --git a/testbot/ddl/update19.sql b/testbot/ddl/update19.sql
new file mode 100644
index 0000000..ca2d462
--- /dev/null
+++ b/testbot/ddl/update19.sql
@@ -0,0 +1,4 @@
+USE winetestbot;
+
+ALTER TABLE Jobs
+ MODIFY Remarks VARCHAR(128) NULL;
diff --git a/testbot/ddl/winetestbot.sql b/testbot/ddl/winetestbot.sql
index 75e3318..bd06ec8 100644
--- a/testbot/ddl/winetestbot.sql
+++ b/testbot/ddl/winetestbot.sql
@@ -110,7 +110,7 @@ CREATE TABLE Jobs
UserName VARCHAR(40) NOT NULL,
Priority INT(1) NOT NULL,
Status ENUM('queued', 'running', 'completed', 'failed') NOT NULL,
- Remarks VARCHAR(50) NULL,
+ Remarks VARCHAR(128) NULL,
Submitted DATETIME NULL,
Ended DATETIME NULL,
PatchId INT(7) NULL,
diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index f4be9dc..e1401be 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -325,7 +325,7 @@ BEGIN
CreateItemrefPropertyDescriptor("User", "Author", !1, 1, \&WineTestBot::Users::CreateUsers, ["UserName"]),
CreateBasicPropertyDescriptor("Priority", "Priority", !1, 1, "N", 1),
CreateEnumPropertyDescriptor("Status", "Status", !1, 1, ['queued', 'running', 'completed', 'failed']),
- CreateBasicPropertyDescriptor("Remarks", "Remarks", !1, !1, "A", 50),
+ CreateBasicPropertyDescriptor("Remarks", "Remarks", !1, !1, "A", 128),
CreateBasicPropertyDescriptor("Submitted", "Submitted", !1, !1, "DT", 19),
CreateBasicPropertyDescriptor("Ended", "Ended", !1, !1, "DT", 19),
CreateItemrefPropertyDescriptor("Patch", "Submitted from patch", !1, !1, \&WineTestBot::Patches::CreatePatches, ["PatchId"]),
diff --git a/testbot/web/Submit.pl b/testbot/web/Submit.pl
index d774b9a..56e542d 100644
--- a/testbot/web/Submit.pl
+++ b/testbot/web/Submit.pl
@@ -42,7 +42,7 @@ sub _initialize
$self->{Page} = $self->GetParam("Page") || 1;
my @PropertyDescriptors1 = (
- CreateBasicPropertyDescriptor("Remarks", "Remarks", !1, !1, "A", 50),
+ CreateBasicPropertyDescriptor("Remarks", "Remarks", !1, !1, "A", 128),
);
$self->{PropertyDescriptors1} = \@PropertyDescriptors1;
--
1.7.10.4
More information about the wine-patches
mailing list