We aim to make upgrading between versions as smooth as possible, but sometimes it involves specific steps to be taken. This document will outline those steps. And as much as we try to cover all cases, we might miss some. If you come across such a case, please let us know by opening an issue, or by adding it yourself and creating a pull request.
-
The
db_no_lock_strategyconfiguration option was added. This allows for applying a lock-avoidance strategy when dumping the remote MySQL/MariaDB database to prevent metadata locks from blocking writes on the remote server during the dump. This flag is only supported by MySQL/MariaDB.Valid values for the option are:
single_transaction(default): Wraps entire dump in aREPEATABLE READtransaction — no locks, consistent snapshot. InnoDB only.skip_lock_tables: Dumps each table independently without locking. Works for all engines but dump is not transactionally consistent.null: Disables the feature entirely. Preserves old behavior — no flag passed to dumper.
-
The
skip_ssl_localconfiguration option was renamed todb_skip_ssl_localto be more consistent with thedb_skip_ssloption.
-
Functionality was added that allows running commands after the import process is finished. To use this functionality, use the
post_import_commandskey to your config file, and add the commands you want to run as an array of strings:'post_import_commands' => [ 'php artisan db:seed --force', ],
- The
skip_ssl_localconfiguration option was added. This allows for skipping SSL when connecting to the local database. This flag is only supported by MySQL/MariaDB.
- The
db_skip_sslconfiguration option was added toenvironments.*. This allows for skipping SSL when connecting to the remote database. This flag is only supported by MySQL.
-
The namespace for the
AnonymizeUsersprocessor was changed. Make sure to update your config file accordingly:- \VanOns\LaravelEnvironmentImporter\Processors\AnonymizeUsers::class + \VanOns\LaravelEnvironmentImporter\Processors\Data\AnonymizeUsers::class
-
The
db_timeoutconfiguration option was added (default:60, same as the default shell command timeout). Set the option tonullto disable the timeout. -
The
db_ssh_tunnel_timeoutconfiguration option was added (default:30seconds). This sets the timeout for establishing an SSH tunnel to the remote database server. Set the option tonullto disable the timeout. -
The
db_typeconfiguration option was added toenvironments.*. This allows specifying the database type of the remote environment (mysql(default),mariadb,mongodb,pgsqlorsqlite).
-
The configuration for the
AnonymizeUsersprocessor was changed. Make sure to update your config file accordingly, so that it follows the following format:\VanOns\LaravelEnvironmentImporter\Processors\Data\AnonymizeUsers::class => [ 'preserve_emails' => ['@example.com', 'john@doe.com'], 'email_domain' => 'example.com', 'password_override' => 'password', ]
- The
sensitive_tablesconfig key was renamed toempty_tables. A fallback has been put in place that will use the old key, in case the new key is empty, but it is recommended to update your config.