diff options
author | friendica <info@friendica.com> | 2013-12-22 13:51:08 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-22 13:51:08 -0800 |
commit | 42361588e9f8ad5a110406a11fd23e7a719c5bd4 (patch) | |
tree | 8b0ada0fe0b3a165547dc9efe6ae8116ecd244e8 /install | |
parent | 77fdb4a1eee6d7e2d3b0d3d50896a0100eccf373 (diff) | |
parent | 30219b5bda724375c10006c33e5754d3f5d1d044 (diff) | |
download | volse-hubzilla-42361588e9f8ad5a110406a11fd23e7a719c5bd4.tar.gz volse-hubzilla-42361588e9f8ad5a110406a11fd23e7a719c5bd4.tar.bz2 volse-hubzilla-42361588e9f8ad5a110406a11fd23e7a719c5bd4.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 8 | ||||
-rw-r--r-- | install/update.php | 18 |
2 files changed, 25 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql index ef79862c3..915cecdba 100644 --- a/install/database.sql +++ b/install/database.sql @@ -1029,3 +1029,11 @@ CREATE TABLE IF NOT EXISTS `xtag` ( KEY `xtag_hash` (`xtag_hash`), KEY `xtag_flags` (`xtag_flags`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +CREATE TABLE if not exists `sys_perms` ( + `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , + `cat` CHAR( 255 ) NOT NULL , + `k` CHAR( 255 ) NOT NULL , + `v` MEDIUMTEXT NOT NULL, + `public_perm` TINYINT( 1 ) UNSIGNED NOT NULL +) ENGINE = MYISAM DEFAULT CHARSET = utf8"); diff --git a/install/update.php b/install/update.php index f498ec042..05bddba42 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1084 ); +define( 'UPDATE_VERSION' , 1085 ); /** * @@ -919,3 +919,19 @@ ADD INDEX ( `aid` )"); return UPDATE_FAILED; } +function update_r1084() { + + + $r = q("CREATE TABLE if not exists `sys_perms` ( + `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , + `cat` CHAR( 255 ) NOT NULL , + `k` CHAR( 255 ) NOT NULL , + `v` MEDIUMTEXT NOT NULL, + `public_perm` TINYINT( 1 ) UNSIGNED NOT NULL +) ENGINE = MYISAM DEFAULT CHARSET = utf8"); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + +} |