diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-07-29 16:46:33 +0200 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-10-13 14:55:59 +0800 |
commit | 4d7fcc9062659aa74377b39dd87de35c07973ec2 (patch) | |
tree | f4756fe6ff68dd92f3d39ea51345e9c78af87e4c /lib | |
parent | 6ea54166123c6f839af02bd8efb16b33e78acd3c (diff) | |
download | patchwork-4d7fcc9062659aa74377b39dd87de35c07973ec2.tar patchwork-4d7fcc9062659aa74377b39dd87de35c07973ec2.tar.gz |
lib/sql/migration: Fix column names for MySQL/MariaDB
The first issue is that patchwork was no longer accepting new patches via
the apps/patchwork/bin/parsemail.sh script. When I was trying to invoke
it manually, it only printed "no project found". I was able to figure
out that this was caused by changes to the database scheme which are taken
care of by the two SQL scripts:
lib/sql/migration/012-project-add-columns.sql
lib/sql/migration/013-bundle-names.sql
The catch - these first script don't run with MySQL - or rather MariaDB that
Fedora has switched to. MariaDB doesn't like the quotes around the table
and column names. Patch below.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sql/migration/012-project-add-columns.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sql/migration/012-project-add-columns.sql b/lib/sql/migration/012-project-add-columns.sql index d984ad2..ecade28 100644 --- a/lib/sql/migration/012-project-add-columns.sql +++ b/lib/sql/migration/012-project-add-columns.sql @@ -1,5 +1,5 @@ BEGIN; -ALTER TABLE "patchwork_project" ADD COLUMN "web_url" varchar(2000); -ALTER TABLE "patchwork_project" ADD COLUMN "scm_url" varchar(2000); -ALTER TABLE "patchwork_project" ADD COLUMN "webscm_url" varchar(2000); +ALTER TABLE patchwork_project ADD COLUMN web_url varchar(2000); +ALTER TABLE patchwork_project ADD COLUMN scm_url varchar(2000); +ALTER TABLE patchwork_project ADD COLUMN webscm_url varchar(2000); COMMIT; |