Add migration for lifecycle events