aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-18 02:21:06 -0700
committerfriendica <info@friendica.com>2014-05-18 02:21:06 -0700
commit68ca4ef19e0617904d8557e95ec74d09af833d00 (patch)
tree8f53dcc8b957c1a032fe2cfd91b089a273aa8f75 /install
parent2b44af445515a5e1beea14d3d47025a411d39e7b (diff)
downloadvolse-hubzilla-68ca4ef19e0617904d8557e95ec74d09af833d00.tar.gz
volse-hubzilla-68ca4ef19e0617904d8557e95ec74d09af833d00.tar.bz2
volse-hubzilla-68ca4ef19e0617904d8557e95ec74d09af833d00.zip
support commerical apps
Diffstat (limited to 'install')
-rw-r--r--install/database.sql6
-rw-r--r--install/update.php13
2 files changed, 17 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql
index 31fa68e9d..0de5879a2 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -94,13 +94,17 @@ CREATE TABLE IF NOT EXISTS `app` (
`app_photo` char(255) NOT NULL DEFAULT '',
`app_version` char(255) NOT NULL DEFAULT '',
`app_channel` int(11) NOT NULL DEFAULT '0',
+ `app_addr` char(255) NOT NULL DEFAULT '',
+ `app_price` char(255) NOT NULL DEFAULT '',
+ `app_page` char(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `app_id` (`app_id`),
KEY `app_name` (`app_name`),
KEY `app_url` (`app_url`),
KEY `app_photo` (`app_photo`),
KEY `app_version` (`app_version`),
- KEY `app_channel` (`app_channel`)
+ KEY `app_channel` (`app_channel`),
+ KEY `app_price` (`app_price`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
diff --git a/install/update.php b/install/update.php
index 92a4d6ef2..561070ba4 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1108 );
+define( 'UPDATE_VERSION' , 1109 );
/**
*
@@ -1214,3 +1214,14 @@ function update_r1107() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+
+function update_r11108() {
+ $r = q("ALTER TABLE `app` ADD `app_addr` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD `app_price` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD `app_page` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD INDEX ( `app_price` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}