diff options
author | friendica <info@friendica.com> | 2014-05-19 16:49:11 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-19 16:49:11 -0700 |
commit | 6d01707a724504a34b8e84e87c6601a046de9739 (patch) | |
tree | f062ebc7ef703402ca74a83b4aca8877f3e86aa0 /install | |
parent | ea67b9bda895d30d3115b04ba78db35e6a8b0a74 (diff) | |
download | volse-hubzilla-6d01707a724504a34b8e84e87c6601a046de9739.tar.gz volse-hubzilla-6d01707a724504a34b8e84e87c6601a046de9739.tar.bz2 volse-hubzilla-6d01707a724504a34b8e84e87c6601a046de9739.zip |
more app backend work
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 2 | ||||
-rw-r--r-- | install/update.php | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/install/database.sql b/install/database.sql index 0de5879a2..d03cebd4b 100644 --- a/install/database.sql +++ b/install/database.sql @@ -85,7 +85,7 @@ CREATE TABLE IF NOT EXISTS `addon` ( CREATE TABLE IF NOT EXISTS `app` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `app_id` char(64) NOT NULL DEFAULT '', + `app_id` char(255) NOT NULL DEFAULT '', `app_sig` char(255) NOT NULL DEFAULT '', `app_author` char(255) NOT NULL DEFAULT '', `app_name` char(255) NOT NULL DEFAULT '', diff --git a/install/update.php b/install/update.php index 561070ba4..b91589c28 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1109 ); +define( 'UPDATE_VERSION' , 1110 ); /** * @@ -1216,7 +1216,7 @@ function update_r1107() { } -function update_r11108() { +function update_r1108() { $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 '', @@ -1225,3 +1225,10 @@ ADD INDEX ( `app_price` )"); return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1109() { + $r = q("ALTER TABLE `app` CHANGE `app_id` `app_id` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |