place to store multiple choice and select items for extensible profiles
This commit is contained in:
parent
5e4298029a
commit
e179dca446
2
boot.php
2
boot.php
@ -47,7 +47,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' );
|
||||
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||
define ( 'ZOT_REVISION', 1 );
|
||||
|
||||
define ( 'DB_UPDATE_VERSION', 1125 );
|
||||
define ( 'DB_UPDATE_VERSION', 1126 );
|
||||
|
||||
define ( 'EOL', '<br />' . "\r\n" );
|
||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||
|
@ -823,6 +823,7 @@ CREATE TABLE IF NOT EXISTS `profdef` (
|
||||
`field_type` char(16) NOT NULL DEFAULT '',
|
||||
`field_desc` char(255) NOT NULL DEFAULT '',
|
||||
`field_help` char(255) NOT NULL DEFAULT '',
|
||||
`field_inputs` mediumtext NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `field_name` (`field_name`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1125 );
|
||||
define( 'UPDATE_VERSION' , 1126 );
|
||||
|
||||
/**
|
||||
*
|
||||
@ -1421,3 +1421,12 @@ function update_r1124() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
function update_r1125() {
|
||||
$r = q("ALTER TABLE `profdef` ADD `field_inputs` MEDIUMTEXT NOT NULL DEFAULT ''");
|
||||
if($r)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user