Upgrade from 1.x to 2
This describes a manual way of upgrading from version 1 to 2 and then upgrading to version 3.
During the upgrade process, there is a chance that migrations may fail. Therefore, it is wise to have a backup that you can import to start over at any time. Backup your database! Store a copy somewhere safe.
Set up an additional environment and perform the upgrade there. Keep production running until you confirm the upgrade
Contact support to obtain a 2.x version
Use PHP 8.2 or 8.3 for the best results. This means you need PHP 7.4 and 8.x at the same time. Leave PHP 7.4 as default to not interfere with production when working on the same machine. On a separate machine you don't have to worry about that.
You should be able to connect to the database with a database management tool. One that could work for you is DBeaver.
The upgrade process
Some of the steps will throw an error this is expected. If there is any error that is not described here, feel free to contact support.
Download version 2.x of MailScheduler
Place the extracted files in a folder. This will be the working directory
Run the install.bat script.
Now you should see a .env file. Update the database credentials in the .env file.
Run
php mail-scheduler-2.phar migrate
If you receive the error 'Attempt to read property "session_site" on null', you should add a Tableau Personal Access Token to the tokens table:
id: Note the id, we need it in the next step
label: free field. Your label
pat_name: Personal Access Token name, should be exactly similar to the token you created
pat_secret: Personal Access Secret name, should be exactly similar to the token you created
session_site: Leave empty
session_expires_at: Leave empty
Look into the sites table, for every site you have to add the token id. If you have different site, it is wise to use a different token for every tableau site name.
Run the migration again until it completes without errors. Report any remaining errors to support:
Provide a screenshot of the console
Copy where possible the error message in the ticket.
Add as much relevant data and tables as possible for a quick response
If the migration was successful we can focus on the schedules migration.
Rerun the following command until all schedules are converted: Run:
php mail-scheduler-2.phar migrate-from-v1-to-v2
Known issues and how to fix those
Last updated
Was this helpful?