diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-08-30 00:22:47 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-08-30 00:22:47 +0200 |
commit | ea946eb23e405553861997b9158847dee59dd722 (patch) | |
tree | 314fb014925c65f769e237ed58b6860f978df3aa /Bugzilla/DB/Schema | |
parent | 8e5e72fccecb5ad778188d0d3a807cc5c0c0ac7c (diff) | |
download | bugzilla-ea946eb23e405553861997b9158847dee59dd722.tar.gz bugzilla-ea946eb23e405553861997b9158847dee59dd722.tar.xz |
Bug 629529: Make SQLite installs able to use jobqueue.pl
r=glob, a=mkanat
Diffstat (limited to 'Bugzilla/DB/Schema')
-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]); |