AddGatheringIdToRecommendationsEvents
extends BaseMigration
in package
Table of Contents
Methods
- change() : void
- Apply schema changes to awards_recommendations_events: add a nullable integer `gathering_id` column, an index, and a foreign key constraint.
Methods
change()
Apply schema changes to awards_recommendations_events: add a nullable integer `gathering_id` column, an index, and a foreign key constraint.
public
change() : void
Adds column gathering_id (integer, nullable) positioned after event_id, creates non-unique index BY_GATHERING_ID on gathering_id, and adds foreign key fk_recommendations_events_gathering_id referencing gatherings.id with delete=SET_NULL and update=CASCADE.