Skip to content

Commit

Permalink
[DOCS] Add upgrade guide (#8)
Browse files Browse the repository at this point in the history
* [BUGFIX] Fix installation with existing files

* [DOCS] Add upgrade guide

* [DOCS] Make upgrades easier

* Move "deleted db" scenario to "trouble shooting"

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: Simon Gilli <[email protected]>
  • Loading branch information
rowild and gilbertsoft committed Oct 16, 2021
1 parent dad1504 commit 9190380
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
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
* Deactivate all third-party extensions
* ⚠️ 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"
* Switch to the backend
* Update extension list in "Admin Tools -> Extensions -> [dropdown] Get
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
* If you have developed your own custom extensions, make sure to adjust the
version dependencies in `ext_emconf.php` in case you have defined any
* 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"

## 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

0 comments on commit 9190380

Please sign in to comment.