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

Enable Joomla 4 to be installed #126

Merged
merged 7 commits into from
Sep 8, 2020
Merged

Enable Joomla 4 to be installed #126

merged 7 commits into from
Sep 8, 2020

Conversation

github-actions[bot]
Copy link

Closes #125

@github-actions github-actions bot added this to the 1.6 milestone Jul 10, 2020
@yiendos yiendos changed the title Make database installs a little bit smarter Enable Joomla 4 to be installed Jul 10, 2020
@yiendos
Copy link
Member

yiendos commented Jul 10, 2020

@stevenrombauts I think this should enable us to install Joomla 4 by the console. Would you mind giving this a test please?

@yiendos yiendos requested a review from stevenrombauts July 10, 2020 13:21
@alexandreelise
Copy link
Contributor

Hi guys! Keep up the good job! I can't wait to see this feature coming in jt console. Tried today and had a db error kinda know where it comes from but you are the experts. Still learning from Timblians.

@yiendos
Copy link
Member

yiendos commented Aug 10, 2020

hey @alexandreelise thanks for testing, could you try again and post any error messages (copy/ paste/ screenshot) here? Keen to test this out on as many different systems as possible.

@alexandreelise
Copy link
Contributor

Did a composer global update but your changes are not there yet. How to test before official release?

@alexandreelise
Copy link
Contributor

It works as expected with Tony tweaks on m machine

@yiendos
Copy link
Member

yiendos commented Aug 11, 2020

@alexandreelise hi thanks for this and sorry for not getting back sooner. I guess the quickest way I can think of testing this branch would have been:

  1. Clone the repo locally
  2. Install the composer dependencies
  3. Make the joomla console command executable chmod u+x <repo>/bin/joomla
  4. Then from within the cloned repo php bin/joomla to see the list of the commands available to you

@alexandreelise
Copy link
Contributor

hi @yiendos i was scared for nothing. it was a piece of cake. thanks for your help anyway.

Copy link
Member

@stevenrombauts stevenrombauts left a comment

Choose a reason for hiding this comment

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

@yiendos Had another go with this one and working like a charm on my end. Anything else needed here? If not this can be merged.

Copy link
Member

@stevenrombauts stevenrombauts left a comment

Choose a reason for hiding this comment

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

@yiendos Found one more issue.

$files[] = $path.'joomla.sql';
$version = Util::getJoomlaVersion($this->target_dir);

if (version_compare($version->release, '3.9', '>'))
Copy link
Member

Choose a reason for hiding this comment

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

@yiendos This should be greater or equal than 4.0, because now it's also using these SQL files for 3.9.x versions, which breaks installation.

Copy link
Member

Choose a reason for hiding this comment

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

@stevenrombauts great catch that was complete fubar... I've just run over the alpha => beta installs again today and turns out that only the beta versions have the new sql files... and no doubt in the future the dev team will roll back to the single joomla.sql file. So I've put a catch in for this as well. Let me know what you think

Copy link
Member

@stevenrombauts stevenrombauts left a comment

Choose a reason for hiding this comment

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

@yiendos Makes sense :) I think this is ready to go then and can be merged into master. You'll also need to update the CHANGELOG though and tag a new v1.5.9 version, so Composer will pick it up.

@yiendos yiendos merged commit fc5c5f3 into master Sep 8, 2020
@yiendos yiendos deleted the feature/125-dbInstalls branch September 8, 2020 10:15
@johanjanssens johanjanssens modified the milestones: 1.6, 1.6.0 Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable Joomla 4 to be installed
4 participants