diff options
author | redmatrix <git@macgirvin.com> | 2016-07-07 16:44:58 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-07 16:44:58 -0700 |
commit | e11330a5c8e5111d08d6aee1f4dc6dda6f7c7f2a (patch) | |
tree | 5550a81eee45c59574d94fbac9176449aa69b0e7 /install/update.php | |
parent | 08a4763bfff2becc750185f99a99919e2425ab5f (diff) | |
download | volse-hubzilla-e11330a5c8e5111d08d6aee1f4dc6dda6f7c7f2a.tar.gz volse-hubzilla-e11330a5c8e5111d08d6aee1f4dc6dda6f7c7f2a.tar.bz2 volse-hubzilla-e11330a5c8e5111d08d6aee1f4dc6dda6f7c7f2a.zip |
revise how we store perm_limits
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/install/update.php b/install/update.php index c87971913..f1d9adbd7 100644 --- a/install/update.php +++ b/install/update.php @@ -2366,36 +2366,6 @@ function update_r1179() { require_once('install/perm_upgrade.php'); - if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { - $r1 = q("create table perm_limits ( - id serial NOT NULL, - perm varchar(64) not null default '', - channel_id int(10) unsigned not null default 0, - perm_limit int(10) unsigned not null default 0 - primary_key id )"); - $r2 = q("create index \"idx_perm\" on perm_limits (\"perm\") "); - $r3 = q("create index \"idx_channel_id\" on perm_limits (\"channel_id\") "); - $r4 = q("create index \"idx_perm_limit\" on perm_limits (\"perm_limit\") "); - - - $r = $r1 && $r2 && $r3 && $r4; - } - - else { - $r1 = q("create table if not exists perm_limits { - id int(10) not null AUTO_INCREMENT, - perm varchar(64) not null default '', - channel_id int(10) unsigned not null default 0, - perm_limit int(10) unsigned not null default 0, - PRIMARY KEY (`id`), - KEY `perm` (`perm`), - KEY `channel_id` (`channel_id`), - KEY `perm_limit` (`perm_limit`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 "); - - $r = $r1; - } - $r1 = q("select * from channel where true"); if($r1) { foreach($r1 as $rr) { @@ -2410,7 +2380,7 @@ function update_r1179() { } } - $r = $r && $r1 && $r2; + $r = $r1 && $r2; if($r) return UPDATE_SUCCESS; return UPDATE_FAILED; |