aboutsummaryrefslogtreecommitdiffstats
path: root/install/database.sql
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-03 17:22:35 -0800
committerfriendica <info@friendica.com>2013-02-03 17:22:35 -0800
commit4ae5445e032aadd918dc75ca71bc6819f05bb2f4 (patch)
tree79d3c259b04fa336ac512cf85c9f1e056e21f899 /install/database.sql
parentb41106f2fbebfd0bbc2bfc70efd3421073469f44 (diff)
downloadvolse-hubzilla-4ae5445e032aadd918dc75ca71bc6819f05bb2f4.tar.gz
volse-hubzilla-4ae5445e032aadd918dc75ca71bc6819f05bb2f4.tar.bz2
volse-hubzilla-4ae5445e032aadd918dc75ca71bc6819f05bb2f4.zip
support for OS files and add directory support to file/attach object
Diffstat (limited to 'install/database.sql')
-rw-r--r--install/database.sql15
1 files changed, 7 insertions, 8 deletions
diff --git a/install/database.sql b/install/database.sql
index a16979757..6f70438f3 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -74,7 +74,7 @@ CREATE TABLE IF NOT EXISTS `addon` (
KEY `hidden` (`hidden`),
KEY `name` (`name`),
KEY `installed` (`installed`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `attach` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
@@ -85,6 +85,8 @@ CREATE TABLE IF NOT EXISTS `attach` (
`filetype` char(64) NOT NULL DEFAULT '',
`filesize` int(10) unsigned NOT NULL DEFAULT '0',
`revision` int(10) unsigned NOT NULL DEFAULT '0',
+ `folder` char(64) NOT NULL DEFAULT '',
+ `flags` int(10) unsigned NOT NULL DEFAULT '0',
`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',
@@ -101,12 +103,9 @@ CREATE TABLE IF NOT EXISTS `attach` (
KEY `filesize` (`filesize`),
KEY `created` (`created`),
KEY `edited` (`edited`),
- KEY `filename_2` (`filename`),
- KEY `filetype_2` (`filetype`),
- KEY `filesize_2` (`filesize`),
- KEY `created_2` (`created`),
- KEY `edited_2` (`edited`),
- KEY `revision` (`revision`)
+ KEY `revision` (`revision`),
+ KEY `folder` (`folder`),
+ KEY `flags` (`flags`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `auth_codes` (
@@ -391,7 +390,7 @@ CREATE TABLE IF NOT EXISTS `hook` (
`priority` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `hook` (`hook`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `hubloc` (
`hubloc_id` int(10) unsigned NOT NULL AUTO_INCREMENT,