diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-03-15 13:50:28 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-03-15 13:50:28 +0100 |
commit | 2ccf81dec1fbe4e215ea47700a4e006420318621 (patch) | |
tree | 128e4d699b1018d629caf000b164a3b7f843af46 /Bugzilla/DB/Schema/Pg.pm | |
parent | 1d96fa1689470945545ac8e0f239357185e832a7 (diff) | |
download | bugzilla-2ccf81dec1fbe4e215ea47700a4e006420318621.tar.gz bugzilla-2ccf81dec1fbe4e215ea47700a4e006420318621.tar.xz |
Bug 902395: Enforce utf8 = true for all installations and remove the utf8 parameter
r=dkl a=sgreen
Diffstat (limited to 'Bugzilla/DB/Schema/Pg.pm')
-rw-r--r-- | Bugzilla/DB/Schema/Pg.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Bugzilla/DB/Schema/Pg.pm b/Bugzilla/DB/Schema/Pg.pm index 03a3b0a48..dd8531927 100644 --- a/Bugzilla/DB/Schema/Pg.pm +++ b/Bugzilla/DB/Schema/Pg.pm @@ -79,12 +79,7 @@ sub _initialize { sub get_create_database_sql { my ($self, $name) = @_; - # We only create as utf8 if we have no params (meaning we're doing - # a new installation) or if the utf8 param is on. - my $create_utf8 = Bugzilla->params->{'utf8'} - || !defined Bugzilla->params->{'utf8'}; - my $charset = $create_utf8 ? "ENCODING 'UTF8' TEMPLATE template0" : ''; - return ("CREATE DATABASE \"$name\" $charset"); + return ("CREATE DATABASE \"$name\" ENCODING 'UTF8' TEMPLATE template0"); } sub get_rename_column_ddl { |