Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OD-1724 Remove Chapters.AuthorID from Rails Schema #211

Merged
merged 5 commits into from
Oct 22, 2023
Merged

Conversation

brianna-dardin
Copy link
Member

These changes (except for structure.sql, which was manual) are the result of running the following commands:

docker-compose exec web bundle exec rails generate migration RemoveAuthorIDFromChapters authorID:integer
docker-compose run --rm web bundle exec rake db:migrate

db/schema.rb Outdated

create_table "archive_configs", id: :integer, options: "ENGINE=MyISAM DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "archive_configs", id: :integer, options: "ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci", force: :cascade do |t|
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realise utf8 is an alias for ut8mb3 so this is correct, and all that gets overridden anyway when an ODAP-produced database is loaded into the db. But since the Rails app is configured for utf8mb4 it might be less confusing if schema.rb was too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just did a migration to update this accordingly, also manually updated structure.sql

@brianna-dardin brianna-dardin marked this pull request as ready for review October 22, 2023 17:31
@ariana-paris ariana-paris merged commit e3c7da7 into master Oct 22, 2023
@ariana-paris ariana-paris deleted the od1724 branch October 22, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants