Commit 9f1b8d362e8a6b340cfb0beb62c863a686c57da9

Authored by nbm
1 parent 052e8bf7

Add storage_path to documents, which is managed by the storage manager

to uniquely identify the contents of the document.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3581 c91229c3-7414-0410-bfa2-8a42b809f60b
sql/mysql/upgrade/2.0.9/storagemanager.sql 0 → 100644
  1 +ALTER TABLE `documents` ADD `storage_path` VARCHAR( 250 ) ;
  2 +ALTER TABLE `documents` ADD INDEX ( `storage_path` ) ;
  3 +UPDATE `documents` SET storage_path = CONCAT(full_path, "/", filename) WHERE storage_path IS NULL;
... ...