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

Detect old database setup #285

Closed
leofeyer opened this issue Jan 17, 2019 · 9 comments
Closed

Detect old database setup #285

leofeyer opened this issue Jan 17, 2019 · 9 comments
Assignees
Labels
Milestone

Comments

@leofeyer
Copy link
Member

leofeyer commented Jan 17, 2019

The changes from 51134b5 need to be re-added (and adjusted) to prevent the issue from #282. If the MySQL version is lower than 5.7.7, there are only two options to run Contao:

  • Enable large prefixes
  • Use MyISAM and utf8
@leofeyer leofeyer added the bug label Jan 17, 2019
@leofeyer leofeyer added this to the 4.6.14 milestone Jan 17, 2019
@fritzmg
Copy link
Contributor

fritzmg commented Jan 17, 2019

Agreed. Why was it removed in the first place?

@leofeyer
Copy link
Member Author

Silly me…

@leofeyer
Copy link
Member Author

Re-added in e8d6349. I have also extended the unit tests to check different database versions.

@fritzmg
Copy link
Contributor

fritzmg commented Jan 18, 2019

Since you re-added the variable index length depending on the database configuration, is the message in the install tool still strictly necessary?

@leofeyer
Copy link
Member Author

What exactly do you mean?

@fritzmg
Copy link
Contributor

fritzmg commented Jan 18, 2019

May be I am misunderstanding this, but the main problem of #282 was the too long index length, that Contao wanted to create. In e8d6349 you have made some changes to getDefaultIndexLength - I am assuming this would actually fix it, without setting

innodb_large_prefix = 1
innodb_file_format = Barracuda
innodb_file_per_table = 1

or

doctrine:
    dbal:
        connections:
            default:
                default_table_options:
                    charset: utf8
                    collate: utf8_unicode_ci
                    engine: MyISAM

?

@leofeyer
Copy link
Member Author

I am assuming this would actually fix it, without setting

Nope, it does not.

@ausi
Copy link
Member

ausi commented Jan 18, 2019

@fritzmg getDefaultIndexLength() can only be used for regular indexes. The issue stays for UNIQUE indexes because they cannot have a length limit.

@fritzmg
Copy link
Contributor

fritzmg commented Jan 18, 2019

I see, thank you for the explanation :)

@leofeyer leofeyer modified the milestones: 4.6.14, 4.6 May 14, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants