aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-09-23 10:35:02 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-09-23 10:35:02 +0200
commit038a33aa789d06019afa00567ed2730c4467b082 (patch)
treee3e7c4b8c74508238350e76d3c791336daeaa8a8 /sonar-server/src/main
parent7d7ee113f9a91e95760b952130974432e93cd7d7 (diff)
downloadsonarqube-038a33aa789d06019afa00567ed2730c4467b082.tar.gz
sonarqube-038a33aa789d06019afa00567ed2730c4467b082.zip
Force creation of MySQL tables with UTF8 character set and utf8_bin collation
Diffstat (limited to 'sonar-server/src/main')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/mysql/adapter.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/mysql/adapter.rb b/sonar-server/src/main/webapp/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/mysql/adapter.rb
index 79526df1390..891d59ae89d 100644
--- a/sonar-server/src/main/webapp/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/mysql/adapter.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/mysql/adapter.rb
@@ -242,7 +242,10 @@ module ::ArJdbc
end
def create_table(name, options = {}) #:nodoc:
- super(name, {:options => "ENGINE=InnoDB"}.merge(options))
+ #sonar - force UTF8
+ #super(name, {:options => "ENGINE=InnoDB"}.merge(options))
+ super(name, {:options => "ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin"}.merge(options))
+ #/sonar
end
def rename_table(name, new_name)