Commit 35d440ca authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Added check constraint on MigrationJob.fileSize > 0

parent 65c1deda
......@@ -686,6 +686,7 @@ ALTER TABLE MigrationJob ADD CONSTRAINT FK_MigrationJob_TapePool
FOREIGN KEY (tapePool) REFERENCES TapePool(id);
ALTER TABLE MigrationJob ADD CONSTRAINT FK_MigrationJob_MigrationMount
FOREIGN KEY (mountTransactionId) REFERENCES MigrationMount(mountTransactionId);
ALTER TABLE MigrationJob ADD CONSTRAINT CK_MigrationJob_FS_Positive CHECK (fileSize > 0);
BEGIN
setObjStatusName('MigrationJob', 'status', 0, 'MIGRATIONJOB_PENDING');
setObjStatusName('MigrationJob', 'status', 1, 'MIGRATIONJOB_SELECTED');
......
......@@ -17,6 +17,9 @@ BEGIN setObjStatusName('DiskCopy', 'status', 0, 'DISKCOPY_VALID'); END;
/
ALTER TABLE MigrationJob ADD CONSTRAINT CK_MigrationJob_FS_Positive CHECK (fileSize > 0);
-- temporary function-based index to speed up the following update
CREATE INDEX I_CF_OpenTimeNull
ON CastorFile(decode(nvl(nsOpenTime, -1), -1, 1, NULL));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment