-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
130 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
class MakeColumnsMb4Compatible < ActiveRecord::Migration | ||
def up | ||
execute "alter table groups modify name varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
execute "alter table users modify email varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
execute "alter table users modify reset_password_token varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
execute "alter table users modify name varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
execute "alter table users modify nickname varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
execute "alter table users modify logs_tf_api_key varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
# execute "alter table groups modify name varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
# execute "alter table users modify email varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
# execute "alter table users modify reset_password_token varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
# execute "alter table users modify name varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
# execute "alter table users modify nickname varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
# execute "alter table users modify logs_tf_api_key varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" | ||
end | ||
|
||
def down | ||
execute "alter table groups modify name varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
execute "alter table users modify email varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
execute "alter table users modify reset_password_token varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
execute "alter table users modify name varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
execute "alter table users modify nickname varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
execute "alter table users modify logs_tf_api_key varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
# execute "alter table groups modify name varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
# execute "alter table users modify email varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
# execute "alter table users modify reset_password_token varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
# execute "alter table users modify name varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
# execute "alter table users modify nickname varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
# execute "alter table users modify logs_tf_api_key varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ||
end | ||
end |
Oops, something went wrong.