sourcefabric/Airtime — pull request #11 by rgrinberg (2012-11-05 16:21:29+00:00)
Title: Cc 4585

This branch separates splits file_exists into 2 columns:

- file_exists -> marks whether the file exists on the FS as told by media monitor
- hidden -> marks whether the user "deleted" a file.

Before this change. file_exists was overloaded to mean both of these things which caused many problems with files showing up in the library when they shouldn't have.

After this change, MM can safely bootstrap from all the files in the DB since w/e updates MM has will be shadowed by the hidden field.

From now on devs should use ```$file->visible()``` (defined in CcFiles.php) to check whether the file should be shown in different parts of the UI. This is so that we can customize this behaviour easily later on instead of search and replacing through the codebase.

NOTE: the upgrade script for the database has not been written yet.