diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-08-30 00:23:27 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-08-30 00:23:27 +0200 |
commit | 0a943db6355ef9375db7d567eef52d783df1d68a (patch) | |
tree | 8d2ca49fdb86e5157fadbbc20f16b0bec3c56fe3 /Bugzilla/DB/Schema/Sqlite.pm | |
parent | 2054799e43e2437b94f2d86981d21ec786d12a70 (diff) | |
download | bugzilla-0a943db6355ef9375db7d567eef52d783df1d68a.tar.gz bugzilla-0a943db6355ef9375db7d567eef52d783df1d68a.tar.xz |
Bug 629529: Make SQLite installs able to use jobqueue.pl
r=glob, a=mkanat
Diffstat (limited to 'Bugzilla/DB/Schema/Sqlite.pm')
-rw-r--r-- | Bugzilla/DB/Schema/Sqlite.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema/Sqlite.pm b/Bugzilla/DB/Schema/Sqlite.pm index 4730c4f9f..aad1f17bc 100644 --- a/Bugzilla/DB/Schema/Sqlite.pm +++ b/Bugzilla/DB/Schema/Sqlite.pm @@ -162,6 +162,23 @@ sub get_create_database_sql { die "Reached an unreachable point"; } +sub _get_create_table_ddl { + my $self = shift; + my ($table) = @_; + my $ddl = $self->SUPER::_get_create_table_ddl(@_); + + # TheSchwartz uses its own driver to access its tables, meaning + # that it doesn't understand "COLLATE bugzilla" and in fact + # SQLite throws an error when TheSchwartz tries to access its + # own tables, if COLLATE bugzilla is on them. We don't have + # to fix this elsewhere currently, because we only create + # TheSchwartz's tables, we never modify them. + if ($table =~ /^ts_/) { + $ddl =~ s/ COLLATE bugzilla//g; + } + return $ddl; +} + sub get_type_ddl { my $self = shift; my $def = dclone($_[0]); |