Commit 0cb8376d authored by frankie's avatar frankie
Browse files

fix(install): create some tables forcing utf8

fixes issue #1104
parent bc31ed21
......@@ -1093,8 +1093,8 @@ sub _upgrade_table {
&& $new_size
&& $new_size != $row->{COLUMN_SIZE}) {
$dbh->do("alter table $table change $field $field $definition");
warn "INFO: changing $field $row->{COLUMN_SIZE} to $new_size in $table\n" if $0 !~ /\.t$/;
$dbh->do("alter table $table change $field $field $definition");
return;
}
......
......@@ -6,4 +6,4 @@ CREATE TABLE `grant_types` (
UNIQUE(`name`),
UNIQUE(`description`),
PRIMARY KEY (`id`)
);
) CHARACTER SET 'utf8';
......@@ -9,5 +9,6 @@ CREATE TABLE `users` (
`language` char(3) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
);
)
CHARACTER SET 'utf8';
......@@ -8,4 +8,4 @@ create table volumes (
PRIMARY KEY (`id`),
UNIQUE (`id_domain`,`name`),
UNIQUE (`id_domain`,`n_order`)
);
)CHARACTER SET 'utf8';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment