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

Add an upgrade guide to the documentation #8

Merged
merged 10 commits into from
Oct 14, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,51 @@ information about the target inside. This does not hurt the functionality,
container but could be a little bit confusing on the host side if you
are not awarae of this behavior.

## Upgrade

If you want to upgrade your TYPO3 version, please take all the information into
consideration that the offical upgrade guide recommends: [Upgrading TYPO3](https://docs.typo3.org/m/typo3/guide-installation/master/en-us/).

Here are all the steps to be considered in a nutshell:

* Update all third-party extensions to their latest possible version.
rowild marked this conversation as resolved.
Show resolved Hide resolved
* Deactivate all third-party extensions.
rowild marked this conversation as resolved.
Show resolved Hide resolved
* ⚠️ Export and backup the current database with: `ddev export --file=db_backup.sql`
* Stop the project with `ddev stop`
* Remove `htdocs/typo3temp`
* Adapt the settings in `.ddev/config.yaml` to your new [requirements](https://get.typo3.org):
* `php_version`
* `mariadb_version` / `mysql_version`
* `TYPO3_MAJOR_VERSION` / `TYPO3_SRC_VERSION`
* Run `ddev start`
* Login to the install tool
* Run TYPO3's `Upgrade Wizard`: "Upgrade -> Upgrade Wizard"

* ⚠️ In case the database has been completely overwritten:
* Check, if database has been completely overwritten by opening the backend
and trying to log in. If you cannot log in, the user has been deleted. (You
can also check the database status with `ddev sequelace`, if you are on a Mac).
* Import your database backup with: `ddev import --src=db_back.sql`
* Run TYPO3's database compare: "Admin Tools -> Maintenance -> Analyze
Database Structure"
rowild marked this conversation as resolved.
Show resolved Hide resolved
* Update extension list in "Admin Tools -> Extensions -> [dropdown] Get
rowild marked this conversation as resolved.
Show resolved Hide resolved
Extensions -> Update now"
* Update third-party extensions
* Activate third-party extensions again

### Upgrade Troubleshooting

In case you experience troubles with the update, you might want to check things
like these:

* Have all third-party etensions been deactivated? If not, check the file
`typo3conf/PackageStates.php` and delete all entries that point to a
third-party extension. (If this was something you had to do, you might also
want to check, if the folder `typo3temp` still exists and, if so, delete it)
* Delete all files in `.ddev` except `config.yaml` and run `ddev start` again.
rowild marked this conversation as resolved.
Show resolved Hide resolved
* If you have developed you own custom extensions, make sure to adjust the
rowild marked this conversation as resolved.
Show resolved Hide resolved
version dependencies in `ext_emconf.php` in case you have defined any

## Links

* [Install Docker](https://docs.docker.com/#docker-products)
Expand Down
13 changes: 12 additions & 1 deletion bin/install-typo3
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,17 @@ else
echo ""
fi

# Create doc root if missing
# Create or clean up doc root
if [[ ! -d "${DDEV_DOCROOT}" ]]; then
echo -e "${COLOR_INFORMATION}Create doc root \"${DDEV_DOCROOT}\"...${COLOR_RESET}"
mkdir -p "${DDEV_DOCROOT}"
echo ""
else
echo -e "${COLOR_INFORMATION}Clean up doc root \"${DDEV_DOCROOT}\"...${COLOR_RESET}"
test -e "${DDEV_DOCROOT}/typo3_src" && rm -rf "${DDEV_DOCROOT}/typo3_src"
test -e "${DDEV_DOCROOT}/index.php" && rm -rf "${DDEV_DOCROOT}/index.php"
test -e "${DDEV_DOCROOT}/typo3" && rm -rf "${DDEV_DOCROOT}/typo3"
echo ""
fi

# Setup links according to the docs see https://docs.typo3.org/m/typo3/guide-installation/master/en-us/QuickInstall/GetAndUnpack/Index.html
Expand All @@ -115,6 +121,11 @@ if [[ ! -f "${DDEV_DOCROOT}/typo3conf/LocalConfiguration.php" ]]; then
echo -e " ${DDEV_DOCROOT}/FIRST_INSTALL"
touch "${DDEV_DOCROOT}/FIRST_INSTALL"
echo ""
else
echo -e "${COLOR_INFORMATION}TYPO3 seems to be setup, creating files...${COLOR_RESET}"
echo -e " ${DDEV_DOCROOT}/typo3conf/ENABLE_INSTALL_TOOL"
touch "${DDEV_DOCROOT}/typo3conf/ENABLE_INSTALL_TOOL"
echo ""
fi

# Show success information
Expand Down