-
Notifications
You must be signed in to change notification settings - Fork 66
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
upgrade.php and create.sql different #681
Comments
|
Ah, I see. That wasn't clear to me. Makes a lot more sense now. |
I think its not realy intuitive that you have to run upgrade.php on a fresh install to be able to use utf8mb4. |
I agree with @Skywalker-11 . If you do an initial install, it should be the best experience you can get. Everyone expects to run a 'creation' tool so that the proper database structure is created. You would not expect to instantly upgrade (that suggests upgrade.php) the structure to get some additional features. If the database supports utf8mb4, then we should create those tables. Else it should fallback to regular utf8. |
A suggestion. You can replace create.sql by a small install_database.php script. You test if utf8mb4 is possible and load the right database version. |
Or via a general install.php file which writes conf.php and installs the db etc. |
@Skywalker-11 is working on this but its not yet ready. https://github.com/mailwatch/mailwatch-install-script |
We need some people to test the script on different OS. Especially sendmail as MTA is still missing. Heres a list what we have to do : mailwatch/mailwatch-install-script#2 I only have experience with debian/ubuntu and postfix 😞 |
And this one? |
I think this one should remain open for further consideration. I think the create.sql and upgrade.php logic could be combined into a unified database preparation script. Not really necessary right now, but perhaps down the road. |
The simple fix is for upgrade.php to run create.sql if the database doesn't exist or is empty. |
Does this still active or can be closed ? |
Still not done |
It appears that the initial setup of the databases with create.sql are not the same as those resulting from running upgrade.php.
Should create.sql be brought up to the same level as upgrade.php?
create.sql
upgrade.php result
The text was updated successfully, but these errors were encountered: