Diff
Not logged in

Differences From:

File src/schema.c part of check-in [e146d800ac] - Add the "mv" and "rename" commands (aliases for the same thing). by drh on 2008-11-09 19:22:06. [view]

To:

File src/schema.c part of check-in [9fd8009007] - Bug fix in the "mv" command. Add filename change tracking to the check-in information screens. You must run rebuild on existing respositories when upgrading to this version of fossil. by drh on 2008-11-09 22:43:04. [view]

@@ -179,9 +179,10 @@
 @ CREATE TABLE mlink(
 @   mid INTEGER REFERENCES blob,        -- Manifest ID where change occurs
 @   pid INTEGER REFERENCES blob,        -- File ID in parent manifest
 @   fid INTEGER REFERENCES blob,        -- Changed file ID in this manifest
-@   fnid INTEGER REFERENCES filename    -- Name of the file
+@   fnid INTEGER REFERENCES filename,   -- Name of the file
+@   pfnid INTEGER REFERENCES filename   -- Previous name. 0 if unchanged
 @ );
 @ CREATE INDEX mlink_i1 ON mlink(mid);
 @ CREATE INDEX mlink_i2 ON mlink(fnid);
 @ CREATE INDEX mlink_i3 ON mlink(fid);