set default for account_level in DB
This commit is contained in:
parent
ae6bd7dc1e
commit
8c845f5d50
2
boot.php
2
boot.php
@ -46,7 +46,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' );
|
||||
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||
define ( 'ZOT_REVISION', 1 );
|
||||
|
||||
define ( 'DB_UPDATE_VERSION', 1096 );
|
||||
define ( 'DB_UPDATE_VERSION', 1097 );
|
||||
|
||||
define ( 'EOL', '<br />' . "\r\n" );
|
||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||
|
@ -54,7 +54,7 @@ CREATE TABLE IF NOT EXISTS `account` (
|
||||
`account_expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`account_expire_notified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`account_service_class` char(32) NOT NULL DEFAULT '',
|
||||
`account_level` int(10) unsigned NOT NULL,
|
||||
`account_level` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`account_id`),
|
||||
KEY `account_email` (`account_email`),
|
||||
KEY `account_service_class` (`account_service_class`),
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1096 );
|
||||
define( 'UPDATE_VERSION' , 1097 );
|
||||
|
||||
/**
|
||||
*
|
||||
@ -1077,3 +1077,10 @@ ADD INDEX ( `channel_a_bookmark` )");
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
function update_r1096() {
|
||||
$r = q("ALTER TABLE `account` CHANGE `account_level` `account_level` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
|
||||
if($r)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user