diff options
author | redmatrix <git@macgirvin.com> | 2016-05-31 17:50:47 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-31 17:50:47 -0700 |
commit | dfb6255f59980835d364402b372dd39f2b41ee7c (patch) | |
tree | f8d97437d713311a9cd3cf13e0e8faa5b617fa8f /install/update.php | |
parent | 00b4843425371e4ff55c82be577a279e248c29fc (diff) | |
download | volse-hubzilla-dfb6255f59980835d364402b372dd39f2b41ee7c.tar.gz volse-hubzilla-dfb6255f59980835d364402b372dd39f2b41ee7c.tar.bz2 volse-hubzilla-dfb6255f59980835d364402b372dd39f2b41ee7c.zip |
more removal of reserved words from DB schemas
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 0bd8d59f9..4883d6561 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1171 ); +define( 'UPDATE_VERSION' , 1172 ); /** * @@ -2146,4 +2146,21 @@ function update_r1170() { return UPDATE_SUCCESS; return UPDATE_FAILED; +} + +function update_r1171() { + + $r1 = q("ALTER TABLE verify CHANGE `type` `vtype` varchar(32) NOT NULL DEFAULT '' "); + $r2 = q("ALTER TABLE tokens CHANGE `scope` `auth_scope` varchar(512) NOT NULL DEFAULT '' "); + $r3 = q("ALTER TABLE auth_codes CHANGE `scope` `auth_scope` varchar(512) NOT NULL DEFAULT '' "); + $r4 = q("ALTER TABLE clients CHANGE `name` `clname` TEXT "); + $r5 = q("ALTER TABLE session CHANGE `data` `sess_data` TEXT NOT NULL "); + $r6 = q("ALTER TABLE register CHANGE `language` `lang` varchar(16) NOT NULL DEFAULT '' "); + + if($r1 && $r2 && $r3 && $r4 && $r5 && $r6) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + + + }
\ No newline at end of file |