verbb / hyper

A Craft CMS plugin for managing links, focusing on user experience.
Other
21 stars 9 forks source link

Make database backups optional on migrations #134

Closed jrrdnx closed 2 months ago

jrrdnx commented 2 months ago

What are you trying to do?

I'm attempting to run a migration from another existing plugin, in this case Typed Link field. Step 1 Migrate Fields will attempt to automatically run a database backup, but mysqldump is not currently installed/setup properly. Database backups can be performed manually and do not need to be performed during this migration.

What's your proposed solution?

Include a checkbox to allow this option to be turned off/on when migrating fields.

Additional context

No response

engram-design commented 2 months ago

Take a look at the backupOnMigrate configuration option for this! It's on by default because it's a really really good idea to take a backup of fields and field content beforehand. Particularly as this is run on every environment, including production.

jrrdnx commented 2 months ago

Gotcha, thanks. Didn't see a default config.php file and hadn't gotten into the docs yet. My bad!