Skip to content

Commit dd8db2f

Browse files
fix: downgrading and upgrading multiple times should migrate
1 parent a95eeb8 commit dd8db2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function interact_on_activation() {
3131
// Run migration if version not set or outdated
3232
if ( ! $saved_version || version_compare( $saved_version, INTERACT_VERSION, '<' ) ) {
3333
do_action( 'interact/on_plugin_update', $saved_version, INTERACT_VERSION );
34-
update_option( 'interact_plugin_version', INTERACT_VERSION );
3534
}
35+
update_option( 'interact_plugin_version', INTERACT_VERSION );
3636
}
3737
}
3838
register_activation_hook( __FILE__, 'interact_on_activation' );

0 commit comments

Comments
 (0)