Skip to content

Hube2/wp-update-prevent-db-changes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

WP Update Prevent DB Changes

Use this to manage db schema changes at your own risk! Before applying DB changes, always back up your database!

Prevent WP from reseting db schema changes

Have you had to modify one of the standard WordPress DB columns?

Like for example changing option_name from varchar(64) to varchar(255) so that you can use a plugin that may create long option_name values?

Then you updated WP to a new version only to find that your site has crahsed and burned becuase the column was reset to what WP thinks it should be?

Add this file to the mu-plugins (wp-content/mu-plugins) folder on your site and modify the dbdelta_queries method to change the default WP DB schema so that your changes are not reset to the WP defaults.

About

Prevent WP from reseting db schema changes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages