oauth: db update
This commit is contained in:
parent
00c342e13d
commit
d7d889bcd0
3 changed files with 16 additions and 4 deletions
11
update.php
11
update.php
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1102 );
|
||||
define( 'UPDATE_VERSION' , 1103 );
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -874,7 +874,14 @@ function update_1101() {
|
|||
q("ALTER TABLE `gcign` ADD INDEX (`uid`), ADD INDEX (`gcid`) ");
|
||||
}
|
||||
|
||||
|
||||
function update_1102() {
|
||||
q("ALTER TABLE `clients` ADD `name` TEXT NULL DEFAULT NULL AFTER `redirect` ");
|
||||
q("ALTER TABLE `clients` ADD `icon` TEXT NULL DEFAULT NULL AFTER `name` ");
|
||||
q("ALTER TABLE `clients` ADD `uid` INT NOT NULL DEFAULT 0 AFTER `icon` ");
|
||||
|
||||
q("ALTER TABLE `tokens` ADD `secret` TEXT NOT NULL AFTER `id` ");
|
||||
q("ALTER TABLE `tokens` ADD `uid` INT NOT NULL AFTER `scope` ");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue