oauth2 db
This commit is contained in:
parent
890b77a547
commit
552c56102e
2
boot.php
2
boot.php
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
define ( 'BUILD_ID', 1017 );
|
define ( 'BUILD_ID', 1018 );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
|
||||||
|
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
|
|
26
database.sql
26
database.sql
|
@ -382,3 +382,29 @@ CREATE TABLE IF NOT EXISTS `register` (
|
||||||
`password` CHAR(255) NOT NULL,
|
`password` CHAR(255) NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `clients` (
|
||||||
|
`client_id` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`pw` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`redirect_uri` VARCHAR( 200 ) NOT NULL ,
|
||||||
|
PRIMARY KEY ( `client_id` )
|
||||||
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `tokens` (
|
||||||
|
`id` VARCHAR( 40 ) NOT NULL ,
|
||||||
|
`client_id` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`expires` INT NOT NULL ,
|
||||||
|
`scope` VARCHAR( 200 ) NOT NULL ,
|
||||||
|
PRIMARY KEY ( `id` )
|
||||||
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `auth_codes` (
|
||||||
|
`id` VARCHAR( 40 ) NOT NULL ,
|
||||||
|
`client_id` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`redirect_uri` VARCHAR( 200 ) NOT NULL ,
|
||||||
|
`expires` INT NOT NULL ,
|
||||||
|
`scope` VARCHAR( 250 ) NOT NULL ,
|
||||||
|
PRIMARY KEY ( `id` )
|
||||||
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
28
update.php
28
update.php
|
@ -139,3 +139,31 @@ function update_1016() {
|
||||||
q("ALTER TABLE `user` ADD `openid` CHAR( 255 ) NOT NULL AFTER `email` ");
|
q("ALTER TABLE `user` ADD `openid` CHAR( 255 ) NOT NULL AFTER `email` ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1017() {
|
||||||
|
|
||||||
|
q(" CREATE TABLE IF NOT EXISTS `clients` (
|
||||||
|
`client_id` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`pw` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`redirect_uri` VARCHAR( 200 ) NOT NULL ,
|
||||||
|
PRIMARY KEY ( `client_id` )
|
||||||
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8 ");
|
||||||
|
|
||||||
|
q(" CREATE TABLE IF NOT EXISTS `tokens` (
|
||||||
|
`id` VARCHAR( 40 ) NOT NULL ,
|
||||||
|
`client_id` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`expires` INT NOT NULL ,
|
||||||
|
`scope` VARCHAR( 200 ) NOT NULL ,
|
||||||
|
PRIMARY KEY ( `id` )
|
||||||
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8 ");
|
||||||
|
|
||||||
|
q("CREATE TABLE IF NOT EXISTS `auth_codes` (
|
||||||
|
`id` VARCHAR( 40 ) NOT NULL ,
|
||||||
|
`client_id` VARCHAR( 20 ) NOT NULL ,
|
||||||
|
`redirect_uri` VARCHAR( 200 ) NOT NULL ,
|
||||||
|
`expires` INT NOT NULL ,
|
||||||
|
`scope` VARCHAR( 250 ) NOT NULL ,
|
||||||
|
PRIMARY KEY ( `id` )
|
||||||
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8 ");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user