-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Essi-1402 Convert bulkrax text columns to mediumtext (#328)
* Convert bulkrax text columns to mediumtext * Update to mysql 8 in docker and circle and specify charset
- Loading branch information
Showing
5 changed files
with
134 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Databases to create in docker-compose mysql service | ||
# Only runs once on clean startup | ||
|
||
CREATE DATABASE IF NOT EXISTS `essi_dev`; | ||
CREATE USER 'essi'@'%' IDENTIFIED WITH mysql_native_password BY 'essi'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `essi_dev` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; | ||
GRANT ALL ON `essi_dev`.* TO 'essi'@'%'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `essi_test`; | ||
CREATE DATABASE IF NOT EXISTS `essi_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; | ||
GRANT ALL ON `essi_test`.* TO 'essi'@'%'; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class ChangeTextToMediumText < ActiveRecord::Migration[5.1] | ||
def change | ||
change_column :bulkrax_entries, :raw_metadata, :text, limit: 16777215 | ||
change_column :bulkrax_entries, :parsed_metadata, :text, limit: 16777215 | ||
change_column :bulkrax_entries, :last_error, :text, limit: 16777215 | ||
change_column :bulkrax_exporters, :last_error, :text, limit: 16777215 | ||
change_column :bulkrax_exporters, :parser_fields, :text, limit: 16777215 | ||
change_column :bulkrax_exporters, :field_mapping, :text, limit: 16777215 | ||
change_column :bulkrax_importer_runs, :invalid_records, :text, limit: 16777215 | ||
change_column :bulkrax_importers, :last_error, :text, limit: 16777215 | ||
change_column :bulkrax_importers, :parser_fields, :text, limit: 16777215 | ||
change_column :bulkrax_importers, :field_mapping, :text, limit: 16777215 | ||
change_column :bulkrax_statuses, :error_backtrace, :text, limit: 16777215 | ||
end | ||
end |
Oops, something went wrong.