Subversion Repositories oidplus

Rev

Rev 246 | Rev 261 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 246 Rev 250
Line 22... Line 22...
22
// Parameters: $this is the OIDplusDatabasePlugin class
22
// Parameters: $this is the OIDplusDatabasePlugin class
23
//             $version is the current version (this script MUST increase the number by 1 when it is done)
23
//             $version is the current version (this script MUST increase the number by 1 when it is done)
24
 
24
 
25
$this->transaction_begin();
25
$this->transaction_begin();
26
 
26
 
27
if (!isset($version)) throw new Exception("Argument 'version' is missing; was the file included in a wrong way?");
27
if (!isset($version)) throw new OIDplusException("Argument 'version' is missing; was the file included in a wrong way?");
28
if (!isset($this))    throw new Exception("Argument 'this' is missing; was the file included in a wrong way?");
28
if (!isset($this))    throw new OIDplusException("Argument 'this' is missing; was the file included in a wrong way?");
29
 
29
 
30
// Change bit(1) types to boolean/tinyint(1)
30
// Change bit(1) types to boolean/tinyint(1)
31
if ($this->slang() == 'pgsql') {
31
if ($this->slang() == 'pgsql') {
32
        $this->query("alter table ".OIDPLUS_TABLENAME_PREFIX."config  alter protected    drop default");
32
        $this->query("alter table ".OIDPLUS_TABLENAME_PREFIX."config  alter protected    drop default");
33
        $this->query("alter table ".OIDPLUS_TABLENAME_PREFIX."config  alter protected    type boolean using get_bit(protected   ,0)::boolean");
33
        $this->query("alter table ".OIDPLUS_TABLENAME_PREFIX."config  alter protected    type boolean using get_bit(protected   ,0)::boolean");