From 3767bba3c3669b6e882139abfaa3553db61d1474 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 30 Jan 2013 17:27:32 -0800 Subject: beginning of backend file/attachment api --- install/database.sql | 7 ++++++- install/update.php | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/database.sql b/install/database.sql index aee87c119..ba063bfa4 100644 --- a/install/database.sql +++ b/install/database.sql @@ -94,7 +94,12 @@ CREATE TABLE IF NOT EXISTS `attach` ( PRIMARY KEY (`id`), KEY `aid` (`aid`), KEY `uid` (`uid`), - KEY `hash` (`hash`) + KEY `hash` (`hash`), + KEY `filename` (`filename`), + KEY `filetype` (`filetype`), + KEY `filesize` (`filesize`), + KEY `created` (`created`), + KEY `edited` (`edited`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `auth_codes` ( diff --git a/install/update.php b/install/update.php index 41c6a7565..b0eed4818 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@