diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-09-23 10:35:02 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-09-23 10:38:00 +0200 |
commit | 553c0fcbd6433eed0e6e9f94e6e0c057a0de0b7c (patch) | |
tree | 5b7daa0a4f583c4f7250ddf31f89dd6d243b696c | |
parent | d599f9513e119de581b778d49f5e92c1e6b0008f (diff) | |
download | sonarqube-553c0fcbd6433eed0e6e9f94e6e0c057a0de0b7c.tar.gz sonarqube-553c0fcbd6433eed0e6e9f94e6e0c057a0de0b7c.zip |
Force creation of MySQL tables with UTF8 character set and utf8_bin collation
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/mysql/adapter.rb | 5 |
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) |