implement 'requires' on personal apps
This commit is contained in:
@@ -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`),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user