aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-19 18:06:14 -0700
committerfriendica <info@friendica.com>2013-06-19 18:06:14 -0700
commit4f06905a186252327e7446b8767889dc37aff9fc (patch)
treeb2bd48b4c45d2e540ac51a846aab5f3d2813197b /install
parent9d03da134807a55c74a5b15895356dc8990f01db (diff)
downloadvolse-hubzilla-4f06905a186252327e7446b8767889dc37aff9fc.tar.gz
volse-hubzilla-4f06905a186252327e7446b8767889dc37aff9fc.tar.bz2
volse-hubzilla-4f06905a186252327e7446b8767889dc37aff9fc.zip
infrastructure for future stuff
Diffstat (limited to 'install')
-rw-r--r--install/database.sql4
-rw-r--r--install/update.php10
2 files changed, 12 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql
index 07f797dc4..9964e98ea 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -826,13 +826,15 @@ CREATE TABLE IF NOT EXISTS `term` (
`type` tinyint(3) unsigned NOT NULL,
`term` char(255) NOT NULL,
`url` char(255) NOT NULL,
+ `imgurl` char(255) NOT NULL,
PRIMARY KEY (`tid`),
KEY `oid` (`oid`),
KEY `otype` (`otype`),
KEY `type` (`type`),
KEY `term` (`term`),
KEY `uid` (`uid`),
- KEY `aid` (`aid`)
+ KEY `aid` (`aid`),
+ KEY `imgurl` (`imgurl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `tokens` (
diff --git a/install/update.php b/install/update.php
index 787c1d542..ba5ec0262 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1044 );
+define( 'UPDATE_VERSION' , 1045 );
/**
*
@@ -548,3 +548,11 @@ ADD INDEX ( `comment_policy` ) ");
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1044() {
+ $r = q("ALTER TABLE `term` ADD `imgurl` CHAR( 255 ) NOT NULL ,
+ADD INDEX ( `imgurl` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}