Index: /trunk/dbconfig/changes.txt
===================================================================
--- /trunk/dbconfig/changes.txt	(revision 35155)
+++ /trunk/dbconfig/changes.txt	(revision 35156)
@@ -2320,6 +2320,7 @@
     relstack_id BIGINT AUTO_INCREMENT,
     rel_id      INT(8),
+    stack_id    BIGINT,         -- id of the stackRun
     skycal_id   BIGINT,         -- id of the sky calibration run that supplied the calibration
-                                -- for this release. We get back to stack from here
+                                -- for this release of this skycell.
     skycell_id  varchar(64),
     tess_id     varchar(64),
@@ -2337,8 +2338,9 @@
     KEY (rel_id, tess_id, skycell_id),
     FOREIGN KEY(rel_id) REFERENCES ippRelease(rel_id),
-    FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id)
-) ENGINE=innodb DEFAULT CHARSET=latin1;
-
-ALTER TABLE warpBackgroundRun ADD COLUMN alt_cam_label VARCHAR(255) AFTER reduction;
+    FOREIGN KEY(stack_id) REFERENCES stackRun(stack_id)
+) ENGINE=innodb DEFAULT CHARSET=latin1;
+
+-- Add cam_id to chipBackgroundRun
+ALTER TABLE chipBackgroundRun ADD COLUMN cam_id BIGINT DEFAULT 0 AFTER chip_id;
 
 UPDATE dbversion set schema_version = '1.1.75', updated= CURRENT_TIMESTAMP();
