-
Notifications
You must be signed in to change notification settings - Fork 168
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
db:create is failed #61
Comments
Thank you for reporting. I will try to look at it over the weekend. |
Thanks for your reply. My default: &default
adapter: <%= ENV.fetch('DB_ADAPTER', 'mysql2') %>
encoding: utf8mb4
charset: utf8mb4
collation: utf8mb4_general_ci
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
username: root
password: <%= ENV['DB_PASSWORD'] %>
host: <%= ENV.fetch('DB_HOST', 'localhost') %>
port: <%= ENV.fetch('DB_PORT', '3306') %>
development:
<<: *default
database: iroha_development
test:
<<: *default
database: iroha_test
staging:
<<: *default
database: iroha_staging
username: iroha
production:
<<: *default
database: iroha_production
username: iroha db:create is succeeded because
{:adapter=>"mysql2",
:encoding=>"utf8mb4",
:charset=>"utf8mb4",
:collation=>"utf8mb4_general_ci",
:pool=>5,
:username=>"root",
:password=>"iroha",
:host=>"db",
:port=>3306,
:database=>nil} I'm not sure why |
Just a status update, I am able to reproduce the issue locally. I should be able to fix it and release a new version still over the weekend |
@fsateler this bug seems to have been introduced when we merged the Apartment initializer changes. Do you mind helping me taking a look at it? |
Sure, I'll take a look. |
…s unless there is a default tenant
…s unless there is a default tenant
Prepare Release - 2.7.0 # Enhancements - [Resolves #70] Rake tasks define methods on main - #75 - Add database and schema to active record log. Configurable, defaults to false to keep current behavior - #55 # Bugfixes - [Fixes #61] Fix database create in mysql - #76 # Chores - Remove depracated tld_length config option: tld_length was removed in influitive#309, this configuration option doesn't have any effect now. - #72 - Using [diffend.io proxy](https://diffend.io) to safely check required gems - Added [story branch](https://github.com/story-branch/story_branch) to the configuration - Using travis-ci to run rubocop as well, replacing github actions: github actions do not work in fork's PRs
Steps to reproduce
./bin/rails db:create
Expected behavior
db:create is succeeded
Actual behavior
System configuration
Database: (Tell us what database and its version you use.) MySQL 5.6.21
Apartment version: 2.6.1
Apartment config (in
config/initializers/apartment.rb
or so):use_schemas
:true
Rails (or ActiveRecord) version: 6.0.2.2
Ruby version: 2.6.6
The text was updated successfully, but these errors were encountered: