aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-13 01:18:15 -0700
committerFriendika <info@friendika.com>2011-04-13 01:18:15 -0700
commit84b2d5a25ba3fee692f688a208a65533f53c3ffa (patch)
treea1b4ba3d0206b5a44038f1c70efe9c48759d8425 /update.php
parentd4bb560e7f6daae70cb13b7904cef189598d5f54 (diff)
downloadvolse-hubzilla-84b2d5a25ba3fee692f688a208a65533f53c3ffa.tar.gz
volse-hubzilla-84b2d5a25ba3fee692f688a208a65533f53c3ffa.tar.bz2
volse-hubzilla-84b2d5a25ba3fee692f688a208a65533f53c3ffa.zip
local attachment storage
Diffstat (limited to 'update.php')
-rw-r--r--update.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/update.php b/update.php
index bb4536ae9..763b8f267 100644
--- a/update.php
+++ b/update.php
@@ -444,3 +444,19 @@ function update_1049() {
) ENGINE = MYISAM ");
}
+function update_1050() {
+ q("CREATE TABLE `attach` (
+ `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+ `uid` INT NOT NULL ,
+ `filetype` CHAR( 64 ) NOT NULL ,
+ `filesize` INT NOT NULL ,
+ `data` LONGBLOB NOT NULL ,
+ `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `edited` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `allow_cid` MEDIUMTEXT NOT NULL ,
+ `allow_gid` MEDIUMTEXT NOT NULL ,
+ `deny_cid` MEDIUMTEXT NOT NULL ,
+ `deny_gid` MEDIUMTEXT NOT NULL
+ ) ENGINE = MYISAM ");
+
+}