aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/database.sql1
-rw-r--r--install/update.php9
2 files changed, 9 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql
index d03cebd4b..82c96019e 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -97,6 +97,7 @@ CREATE TABLE IF NOT EXISTS `app` (
`app_addr` char(255) NOT NULL DEFAULT '',
`app_price` char(255) NOT NULL DEFAULT '',
`app_page` char(255) NOT NULL DEFAULT '',
+ `app_requires` char(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `app_id` (`app_id`),
KEY `app_name` (`app_name`),
diff --git a/install/update.php b/install/update.php
index cc755c8c2..0d5d26237 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1111 );
+define( 'UPDATE_VERSION' , 1112 );
/**
*
@@ -1244,3 +1244,10 @@ ADD INDEX ( `app_price` )");
return UPDATE_SUCCESS;
}
+
+function update_r1111() {
+ $r = q("ALTER TABLE `app` ADD `app_requires` CHAR( 255 ) NOT NULL DEFAULT '' ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}