2 -- Replace slot_inherited with slot_origin.
4 -- NOTE: There is no release that has slot_inherited. This is only needed to transition between
5 -- snapshot versions of 1.30.
7 -- NOTE: No code that writes to the slots table was merged yet, the table is assumed to be empty.
9 DROP INDEX /*i*/slot_role_inherited
ON /*_*/slots
;
11 ALTER TABLE /*_*/slots
12 DROP COLUMN slot_inherited
,
13 ADD COLUMN slot_origin
bigint unsigned
NOT NULL;
15 CREATE INDEX /*i*/slot_revision_origin_role
ON /*_*/slots (slot_revision_id
, slot_origin
, slot_role_id
);