SAAS-596: Store file size and hash in database

Updated schema and added filesize and md5_hash columns.
Changed getFileSize functions to return the value stored in the
database.
Removed getFileSize from the cloud storage classes.
This commit is contained in:
drigato 2015-02-17 14:51:51 -05:00
parent a1436bfebb
commit 6ccc634782
12 changed files with 238 additions and 53 deletions

View file

@ -94,6 +94,8 @@ CREATE TABLE "cc_files"
"hidden" BOOLEAN DEFAULT 'f',
"is_scheduled" BOOLEAN DEFAULT 'f',
"is_playlist" BOOLEAN DEFAULT 'f',
"filesize" INTEGER DEFAULT 0 NOT NULL,
"md5_hash" VARCHAR(512) DEFAULT '' NOT NULL,
PRIMARY KEY ("id")
);
@ -185,11 +187,7 @@ CREATE TABLE "cc_show_instances"
PRIMARY KEY ("id")
);
COMMENT ON TABLE "cc_show_instances" IS '';
SET search_path TO public;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------
-- cc_show_days
-----------------------------------------------------------------------