Skip to content

Add helpers for plugin install migrations with existing database tables #10827

Closed Answered by brandonkelly
engram-design asked this question in Ideas
Discussion options

You must be logged in to vote

Just added a new Migration::archiveTableIfExists() method, for the next release. This will need to be called in addition to createTable() (9a30d8b).

I’ve also drafted a PR for Commerce to start taking advantage of this, once Craft 4 Beta 4 goes out. (craftcms/commerce#2765)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@engram-design
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants