index of the same field on the Media table.
Add an index to on VolumeName to the Media table for mysql.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7544
91ce42f0-d328-0410-95d8-
f526ca767f89
RecyclePoolId INTEGER UNSIGNED DEFAULT 0 REFERENCES Pool,
Comment BLOB,
PRIMARY KEY(MediaId),
+ UNIQUE (VolumeName(128)),
INDEX (PoolId)
);
-CREATE INDEX inx8 ON Media (PoolId);
-
-
-
CREATE TABLE Pool (
PoolId INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
Name TINYBLOB NOT NULL,
-- Create a table like Job for long term statistics
CREATE TABLE JobStat (LIKE Job);
+-- Fix bad index on Media table
+DROP INDEX inx8;
+CREATE UNIQUE INDEX inx8 ON Media (VolumeName(128));
+
DELETE FROM Version;
INSERT INTO Version (VersionId) VALUES (11);
General:
+01Sep08
+ebl Fix the mysql creation script that double-created an
+ index of the same field on the Media table.
+ Add an index to on VolumeName to the Media table for mysql.
30Aug08
kes Another try at fixing Vbackup. It looks much better this time.
Disable file index sanity check in FD with value stored in