This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from TheFenux/master
Added schema to replace SQL file.
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
/** | ||
* | ||
* @author Jason Burgess <jason@notplugged.in> | ||
* @version 1.1 | ||
* | ||
*/ | ||
class OpenIdSchema extends CakeSchema { | ||
|
||
/** | ||
* | ||
* @var unknown | ||
*/ | ||
public $oid_associations = array( | ||
'server_url' => array( | ||
'type' => 'string', | ||
'null' => false, | ||
'limit' => 2047, | ||
'key' => 'primary', | ||
'collate' => 'utf8_general_ci', | ||
'charset' => 'utf8'), | ||
'handle' => array( | ||
'type' => 'string', | ||
'null' => false, | ||
'limit' => 255, | ||
'key' => 'primary'), | ||
'secret' => array('type' => 'binary', 'null' => false), | ||
'issued' => array('type' => 'integer', 'null' => false), | ||
'lifetime' => array('type' => 'integer', 'null' => false), | ||
'assoc_type' => array('type' => 'string', 'null' => false, 'limit' => 64), | ||
'indexes' => array( | ||
'PRIMARY' => array( | ||
'column' => array('`server_url`(255)', 'handle'), | ||
'unique' => 1)), | ||
'tableParameters' => array( | ||
'charset' => 'utf8', | ||
'collate' => 'utf8_general_ci', | ||
'engine' => 'InnoDB')); | ||
|
||
/** | ||
* | ||
* @var unknown | ||
*/ | ||
public $oid_nonces = array( | ||
'server_url' => array( | ||
'type' => 'string', | ||
'null' => false, | ||
'limit' => 2047, | ||
'key' => 'primary', | ||
'collate' => 'utf8_general_ci', | ||
'charset' => 'utf8'), | ||
'timestamp' => array('type' => 'integer', 'null' => false), | ||
'salt' => array('type' => 'string', 'null' => false, 'length' => 40), | ||
'indexes' => array( | ||
'PRIMARY' => array('column' => array('`server_url`(255)', 'timestamp', 'salt'))), | ||
'tableParameters' => array( | ||
'charset' => 'utf8', | ||
'collate' => 'utf8_general_ci', | ||
'engine' => 'InnoDB')); | ||
} |