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:
parent
a1436bfebb
commit
6ccc634782
12 changed files with 238 additions and 53 deletions
|
@ -109,6 +109,8 @@ class CcFilesTableMap extends TableMap
|
|||
$this->addColumn('hidden', 'DbHidden', 'BOOLEAN', false, null, false);
|
||||
$this->addColumn('is_scheduled', 'DbIsScheduled', 'BOOLEAN', false, null, false);
|
||||
$this->addColumn('is_playlist', 'DbIsPlaylist', 'BOOLEAN', false, null, false);
|
||||
$this->addColumn('filesize', 'DbFilesize', 'INTEGER', true, null, 0);
|
||||
$this->addColumn('md5_hash', 'DbMd5Hash', 'VARCHAR', true, 512, '');
|
||||
// validators
|
||||
} // initialize()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue