Update - move vfs table creation to API using most recent version

This commit is contained in:
Miles Lott 2001-09-28 19:48:28 +00:00
parent 80cfe11b39
commit 8fbd154f2d
3 changed files with 346 additions and 286 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'phpgwapi';
$setup_info['phpgwapi']['version'] = '0.9.13.011';
$setup_info['phpgwapi']['version'] = '0.9.13.012';
$setup_info['phpgwapi']['versions']['current_header'] = '1.18';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -38,6 +38,7 @@
$setup_info['phpgwapi']['tables'][] = 'phpgw_log';
$setup_info['phpgwapi']['tables'][] = 'phpgw_log_msg';
$setup_info['phpgwapi']['tables'][] = 'phpgw_interserv';
$setup_info['phpgwapi']['tables'][] = 'phpgw_vfs';
/* Basic information about this app */
$setup_info['notifywindow']['name'] = 'notifywindow';

View File

@ -309,6 +309,30 @@
'fk' => array(),
'ix' => array(),
'uc' => array()
),
'phpgw_vfs' => array(
'fd' => array(
'file_id' => array('type' => 'auto','nullable' => False),
'owner_id' => array('type' => 'int', 'precision' => 4,'nullable' => False),
'createdby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'modifiedby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'created' => array('type' => 'date','nullable' => False,'default' => '1970-01-01'),
'modified' => array('type' => 'date','nullable' => True),
'size' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'mime_type' => array('type' => 'varchar', 'precision' => 150,'nullable' => True),
'deleteable' => array('type' => 'char', 'precision' => 1,'nullable' => True,'default' => 'Y'),
'comment' => array('type' => 'text','nullable' => True),
'app' => array('type' => 'varchar', 'precision' => 25,'nullable' => True),
'directory' => array('type' => 'text','nullable' => True),
'name' => array('type' => 'text','nullable' => False),
'link_directory' => array('type' => 'text','nullable' => True),
'link_name' => array('type' => 'text','nullable' => True),
'version' => array('type' => 'varchar', 'precision' => 30,'nullable' => False,'default' => '0.0.0.0')
),
'pk' => array('file_id'),
'fk' => array(),
'ix' => array(),
'uc' => array()
)
);
?>

View File

@ -11,12 +11,12 @@
/* $Id$ */
$test[] = "0.9.1";
$test[] = '0.9.1';
function phpgwapi_upgrade0_9_1()
{
global $phpgw_info, $setup_info, $phpgw_setup;
$phpgw_setup->oProc->AlterColumn("access_log", "lo", array("type" => "varchar", "precision" => 255));
$phpgw_setup->oProc->AlterColumn('access_log', 'lo', array('type' => 'varchar', 'precision' => 255));
$phpgw_setup->oProc->query("update lang set lang='da' where lang='dk'");
$phpgw_setup->oProc->query("update lang set lang='ko' where lang='kr'");
@ -29,7 +29,7 @@
$phpgw_setup->oProc->query("update preferences set preference_name='ko' where preference_name='kr'");
//install weather support
$phpgw_setup->oProc->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["version"]."')");
$phpgw_setup->oProc->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info['server']['version']."')");
$phpgw_setup->oProc->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weather','Weather','en','weather')");
$setup_info['phpgwapi']['currentver'] = '0.9.2';
@ -55,10 +55,10 @@
}
}
$phpgw_setup->oProc->AlterColumn($table, $field, array("type" => "int", "precision" => 4, "nullable" => false, "default" => 0));
$phpgw_setup->oProc->AlterColumn($table, $field, array('type' => 'int', 'precision' => 4, 'nullable' => false, 'default' => 0));
}
$test[] = "0.9.2";
$test[] = '0.9.2';
function phpgwapi_upgrade0_9_2()
{
global $setup_info;
@ -67,7 +67,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.3pre1";
$test[] = '0.9.3pre1';
function phpgwapi_upgrade0_9_3pre1()
{
global $setup_info;
@ -77,7 +77,7 @@
//return True;
}
$test[] = "0.9.3pre2";
$test[] = '0.9.3pre2';
function phpgwapi_upgrade0_9_3pre2()
{
global $setup_info;
@ -87,7 +87,7 @@
//return True;
}
$test[] = "0.9.3pre3";
$test[] = '0.9.3pre3';
function phpgwapi_upgrade0_9_3pre3()
{
global $setup_info;
@ -97,7 +97,7 @@
//return True;
}
$test[] = "0.9.3pre4";
$test[] = '0.9.3pre4';
function phpgwapi_upgrade0_9_3pre4()
{
global $setup_info, $phpgw_setup;
@ -109,7 +109,7 @@
//return True;
}
$test[] = "0.9.3pre5";
$test[] = '0.9.3pre5';
function phpgwapi_upgrade0_9_3pre5()
{
global $setup_info, $phpgw_setup;
@ -135,7 +135,7 @@
//return True;
}
$test[] = "0.9.3pre6";
$test[] = '0.9.3pre6';
function phpgwapi_upgrade0_9_3pre6()
{
global $setup_info, $phpgw_setup;
@ -149,7 +149,7 @@
//return True;
}
$test[] = "0.9.3pre7";
$test[] = '0.9.3pre7';
function phpgwapi_upgrade0_9_3pre7()
{
global $setup_info, $phpgw_setup;
@ -309,7 +309,7 @@
//return True;
}
$test[] = "0.9.3pre8";
$test[] = '0.9.3pre8';
function phpgwapi_upgrade0_9_3pre8()
{
global $setup_info, $phpgw_setup;
@ -317,7 +317,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.3pre9";
$test[] = '0.9.3pre9';
function phpgwapi_upgrade0_9_3pre9()
{
global $setup_info, $phpgw_setup;
@ -325,7 +325,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.3pre10";
$test[] = '0.9.3pre10';
function phpgwapi_upgrade0_9_3pre10()
{
global $setup_info, $phpgw_setup;
@ -333,7 +333,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.3";
$test[] = '0.9.3';
function phpgwapi_upgrade0_9_3()
{
global $setup_info, $phpgw_setup;
@ -341,7 +341,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.4pre1";
$test[] = '0.9.4pre1';
function phpgwapi_upgrade0_9_4pre1()
{
global $setup_info, $phpgw_setup;
@ -349,7 +349,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.4pre2";
$test[] = '0.9.4pre2';
function phpgwapi_upgrade0_9_4pre2()
{
global $setup_info, $phpgw_setup;
@ -357,7 +357,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.4pre3";
$test[] = '0.9.4pre3';
function phpgwapi_upgrade0_9_4pre3()
{
global $setup_info, $phpgw_setup;
@ -366,19 +366,19 @@
//return True;
}
$test[] = "0.9.4pre4";
$test[] = '0.9.4pre4';
function phpgwapi_upgrade0_9_4pre4()
{
global $setup_info, $phpgw_setup;
$phpgw_setup->oProc->AlterColumn("sessions", "session_lid", array("type" => "varchar", "precision" => 255));
$phpgw_setup->oProc->AlterColumn('sessions', 'session_lid', array('type' => 'varchar', 'precision' => 255));
$setup_info['phpgwapi']['currentver'] = '0.9.4pre5';
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.4pre5";
$test[] = '0.9.4pre5';
function phpgwapi_upgrade0_9_4pre5()
{
global $setup_info, $phpgw_setup;
@ -387,12 +387,12 @@
//return True;
}
$test[] = "0.9.4";
$test[] = '0.9.4';
function phpgwapi_upgrade0_9_4()
{
global $setup_info, $phpgw_setup;
$phpgw_setup->oProc->query("delete from languages");
$phpgw_setup->oProc->query('delete from languages');
@$phpgw_setup->oProc->query("INSERT INTO languages (lang_id, lang_name, available) values ('aa','Afar','No')");
@$phpgw_setup->oProc->query("INSERT INTO languages (lang_id, lang_name, available) values ('ab','Abkhazian','No')");
@$phpgw_setup->oProc->query("INSERT INTO languages (lang_id, lang_name, available) values ('af','Afrikaans','No')");
@ -535,68 +535,68 @@
//return True;
}
$test[] = "0.9.5pre1";
$test[] = '0.9.5pre1';
function phpgwapi_upgrade0_9_5pre1()
{
global $phpgw_info, $phpgw_setup;
$phpgw_setup->oProc->DropTable("sessions");
$phpgw_setup->oProc->CreateTable("phpgw_sessions", array(
"fd" => array(
"session_id" => array("type" => "varchar", "precision" => 255, "nullable" => false),
"session_lid" => array("type" => "varchar", "precision" => 255),
"session_pwd" => array("type" => "varchar", "precision" => 255),
"session_ip" => array("type" => "varchar", "precision" => 255),
"session_logintime" => array("type" => "int", "precision" => 4),
"session_dla" => array("type" => "int", "precision" => 4)
$phpgw_setup->oProc->DropTable('sessions');
$phpgw_setup->oProc->CreateTable('phpgw_sessions', array(
'fd' => array(
'session_id' => array('type' => 'varchar', 'precision' => 255, 'nullable' => false),
'session_lid' => array('type' => 'varchar', 'precision' => 255),
'session_pwd' => array('type' => 'varchar', 'precision' => 255),
'session_ip' => array('type' => 'varchar', 'precision' => 255),
'session_logintime' => array('type' => 'int', 'precision' => 4),
'session_dla' => array('type' => 'int', 'precision' => 4)
),
"pk" => array(),
"ix" => array(),
"fk" => array(),
"uc" => array("session_id")
'pk' => array(),
'ix' => array(),
'fk' => array(),
'uc' => array('session_id')
));
$phpgw_setup->oProc->CreateTable("phpgw_acl", array(
"fd" => array(
"acl_appname" => array("type" => "varchar", "precision" => 50),
"acl_location" => array("type" => "varchar", "precision" => 255),
"acl_account" => array("type" => "int", "precision" => 4),
"acl_account_type" => array("type" => "char", "precision" => 1),
"acl_rights" => array("type" => "int", "precision" => 4)
$phpgw_setup->oProc->CreateTable('phpgw_acl', array(
'fd' => array(
'acl_appname' => array('type' => 'varchar', 'precision' => 50),
'acl_location' => array('type' => 'varchar', 'precision' => 255),
'acl_account' => array('type' => 'int', 'precision' => 4),
'acl_account_type' => array('type' => 'char', 'precision' => 1),
'acl_rights' => array('type' => 'int', 'precision' => 4)
),
"pk" => array(),
"ix" => array(),
"fk" => array(),
"uc" => array()
'pk' => array(),
'ix' => array(),
'fk' => array(),
'uc' => array()
));
$phpgw_setup->oProc->DropTable("app_sessions");
$phpgw_setup->oProc->CreateTable("phpgw_app_sessions", array(
"fd" => array(
"sessionid" => array("type" => "varchar", "precision" => 255, "nullable" => false),
"loginid" => array("type" => "varchar", "precision" => 20),
"app" => array("type" => "varchar", "precision" => 20),
"content" => array("type" => "text")
$phpgw_setup->oProc->DropTable('app_sessions');
$phpgw_setup->oProc->CreateTable('phpgw_app_sessions', array(
'fd' => array(
'sessionid' => array('type' => 'varchar', 'precision' => 255, 'nullable' => false),
'loginid' => array('type' => 'varchar', 'precision' => 20),
'app' => array('type' => 'varchar', 'precision' => 20),
'content' => array('type' => 'text')
),
"pk" => array(),
"ix" => array(),
"fk" => array(),
"uc" => array()
'pk' => array(),
'ix' => array(),
'fk' => array(),
'uc' => array()
));
$phpgw_setup->oProc->DropTable("access_log");
$phpgw_setup->oProc->CreateTable("phpgw_access_log", array(
"fd" => array(
"sessionid" => array("type" => "varchar", "precision" => 255),
"loginid" => array("type" => "varchar", "precision" => 30),
"ip" => array("type" => "varchar", "precision" => 30),
"li" => array("type" => "int", "precision" => 4),
"lo" => array("type" => "varchar", "precision" => 255)
$phpgw_setup->oProc->DropTable('access_log');
$phpgw_setup->oProc->CreateTable('phpgw_access_log', array(
'fd' => array(
'sessionid' => array('type' => 'varchar', 'precision' => 255),
'loginid' => array('type' => 'varchar', 'precision' => 30),
'ip' => array('type' => 'varchar', 'precision' => 30),
'li' => array('type' => 'int', 'precision' => 4),
'lo' => array('type' => 'varchar', 'precision' => 255)
),
"pk" => array(),
"ix" => array(),
"fk" => array(),
"uc" => array()
'pk' => array(),
'ix' => array(),
'fk' => array(),
'uc' => array()
));
$setup_info['phpgwapi']['currentver'] = '0.9.5pre2';
@ -604,7 +604,7 @@
//return True;
}
$test[] = "0.9.5pre2";
$test[] = '0.9.5pre2';
function phpgwapi_upgrade0_9_5pre2()
{
global $setup_info;
@ -613,7 +613,7 @@
//return True;
}
$test[] = "0.9.5";
$test[] = '0.9.5';
function phpgwapi_upgrade0_9_5()
{
global $setup_info;
@ -622,7 +622,7 @@
//return True;
}
$test[] = "0.9.6";
$test[] = '0.9.6';
function phpgwapi_upgrade0_9_6()
{
global $setup_info;
@ -631,7 +631,7 @@
//return True;
}
$test[] = "0.9.7pre1";
$test[] = '0.9.7pre1';
function phpgwapi_upgrade0_9_7pre1()
{
global $setup_info;
@ -639,7 +639,7 @@
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.7pre2";
$test[] = '0.9.7pre2';
function phpgwapi_upgrade0_9_7pre2()
{
global $setup_info;
@ -648,7 +648,7 @@
//return True;
}
$test[] = "0.9.7pre3";
$test[] = '0.9.7pre3';
function phpgwapi_upgrade0_9_7pre3()
{
global $setup_info;
@ -657,7 +657,7 @@
//return True;
}
$test[] = "0.9.7";
$test[] = '0.9.7';
function phpgwapi_upgrade0_9_7()
{
global $setup_info;
@ -666,7 +666,7 @@
//return True;
}
$test[] = "0.9.8pre1";
$test[] = '0.9.8pre1';
function phpgwapi_upgrade0_9_8pre1()
{
global $setup_info, $phpgw_setup;
@ -675,19 +675,19 @@
$t = array();
while ($phpgw_setup->oProc->next_record())
{
$t[$phpgw_setup->oProc->f("preference_owner")][$phpgw_setup->oProc->f("preference_appname")][$phpgw_setup->oProc->f("preference_var")] = $phpgw_setup->oProc->f("preference_value");
$t[$phpgw_setup->oProc->f('preference_owner')][$phpgw_setup->oProc->f('preference_appname')][$phpgw_setup->oProc->f('preference_var')] = $phpgw_setup->oProc->f('preference_value');
}
$phpgw_setup->oProc->DropTable("preferences");
$phpgw_setup->oProc->CreateTable("preferences", array(
"fd" => array(
"preference_owner" => array("type" => "int", "precision" => 4, "nullable" => false),
"preference_value" => array("type" => "text")
$phpgw_setup->oProc->DropTable('preferences');
$phpgw_setup->oProc->CreateTable('preferences', array(
'fd' => array(
'preference_owner' => array('type' => 'int', 'precision' => 4, 'nullable' => false),
'preference_value' => array('type' => 'text')
),
"pk" => array(),
"ix" => array(),
"fk" => array(),
"uc" => array()
'pk' => array(),
'ix' => array(),
'fk' => array(),
'uc' => array()
));
while ($tt = each($t))
@ -700,7 +700,7 @@
//return True;
}
$test[] = "0.9.8pre2";
$test[] = '0.9.8pre2';
function phpgwapi_upgrade0_9_8pre2()
{
global $setup_info, $phpgw_setup;
@ -709,26 +709,26 @@
//return True;
}
$test[] = "0.9.8pre3";
$test[] = '0.9.8pre3';
function phpgwapi_upgrade0_9_8pre3()
{
global $setup_info, $phpgw_setup;
$phpgw_setup->oProc->DropTable("phpgw_sessions");
$phpgw_setup->oProc->DropTable('phpgw_sessions');
$phpgw_setup->oProc->CreateTable(
"phpgw_sessions", array(
"fd" => array(
"session_id" => array("type" => "varchar", "precision" => 255, "nullable" => false),
"session_lid" => array("type" => "varchar", "precision" => 255),
"session_ip" => array("type" => "varchar", "precision" => 255),
"session_logintime" => array("type" => "int", "precision" => 4),
"session_dla" => array("type" => "int", "precision" => 4),
"session_info" => array("type" => "text")
'phpgw_sessions', array(
'fd' => array(
'session_id' => array('type' => 'varchar', 'precision' => 255, 'nullable' => false),
'session_lid' => array('type' => 'varchar', 'precision' => 255),
'session_ip' => array('type' => 'varchar', 'precision' => 255),
'session_logintime' => array('type' => 'int', 'precision' => 4),
'session_dla' => array('type' => 'int', 'precision' => 4),
'session_info' => array('type' => 'text')
),
"pk" => array(),
"ix" => array(),
"fk" => array(),
"uc" => array("session_id")
'pk' => array(),
'ix' => array(),
'fk' => array(),
'uc' => array('session_id')
)
);
@ -737,7 +737,7 @@
//return True;
}
$test[] = "0.9.8pre4";
$test[] = '0.9.8pre4';
function phpgwapi_upgrade0_9_8pre4()
{
global $setup_info, $phpgw_setup;
@ -762,7 +762,7 @@
//return True;
}
$test[] = "0.9.8pre5";
$test[] = '0.9.8pre5';
function phpgwapi_upgrade0_9_8pre5()
{
global $setup_info, $phpgw_setup;
@ -794,7 +794,7 @@
//return True;
}
$test[] = "0.9.9pre1";
$test[] = '0.9.9pre1';
function phpgwapi_upgrade0_9_9pre1()
{
global $setup_info;
@ -803,7 +803,7 @@
//return True;
}
$test[] = "0.9.9";
$test[] = '0.9.9';
function phpgwapi_upgrade0_9_9()
{
global $setup_info, $phpgw_setup;
@ -815,7 +815,7 @@
{
while($phpgw_setup->oProc->next_record())
{
$apps_perms = explode(":",$phpgw_setup->oProc->f("account_permissions"));
$apps_perms = explode(":",$phpgw_setup->oProc->f('account_permissions'));
for($i=1;$i<count($apps_perms)-1;$i++)
{
if ($apps_perms[$i] != "")
@ -834,10 +834,10 @@
{
while($phpgw_setup->oProc->next_record())
{
$apps_perms = explode(":",$phpgw_setup->oProc->f("group_apps"));
$apps_perms = explode(":",$phpgw_setup->oProc->f('group_apps'));
for($i=1;$i<count($apps_perms)-1;$i++)
{
if ($apps_perms[$i] != "")
if ($apps_perms[$i] != '')
{
$sql = "insert into phpgw_acl (acl_appname, acl_location, acl_account, acl_account_type, acl_rights)";
$sql .= " values('".$apps_perms[$i]."', 'run', ".$phpgw_setup->oProc->f("group_id").", 'g', 1)";
@ -853,7 +853,7 @@
//return True;
}
$test[] = "0.9.10pre1";
$test[] = '0.9.10pre1';
function phpgwapi_upgrade0_9_10pre1()
{
global $setup_info, $phpgw_setup;
@ -865,7 +865,7 @@
//return True;
}
$test[] = "0.9.10pre2";
$test[] = '0.9.10pre2';
function phpgwapi_upgrade0_9_10pre2()
{
global $setup_info, $phpgw_setup;
@ -877,10 +877,10 @@
{
while($phpgw_setup->oProc->next_record())
{
$gl = explode(",",$phpgw_setup->oProc->f("account_groups"));
$gl = explode(',',$phpgw_setup->oProc->f('account_groups'));
for ($i=1; $i<(count($gl)-1); $i++)
{
$ga = explode(":",$gl[$i]);
$ga = explode(':',$gl[$i]);
$sql = "INSERT INTO phpgw_acl (acl_appname, acl_location, acl_account, acl_account_type, acl_rights)";
$sql .= " VALUES('phpgw_group', '".$ga[0]."', ".$phpgw_setup->oProc->f("account_id").", 'u', 1)";
$db2->query($sql ,__LINE__,__FILE__);
@ -894,7 +894,7 @@
//return True;
}
$test[] = "0.9.10pre3";
$test[] = '0.9.10pre3';
function phpgwapi_upgrade0_9_10pre3()
{
global $setup_info, $phpgw_setup;
@ -977,7 +977,7 @@
}
}
$test[] = "0.9.10pre4";
$test[] = '0.9.10pre4';
function phpgwapi_upgrade0_9_10pre4()
{
global $setup_info, $phpgw_setup;
@ -1008,9 +1008,9 @@
$phpgw_setup->oProc->query("SELECT group_id, group_name FROM groups",__LINE__,__FILE__);
while($phpgw_setup->oProc->next_record())
{
$old_group_id = $phpgw_setup->oProc->f("group_id");
$old_group_name = $phpgw_setup->oProc->f("group_name");
$group_name = $phpgw_setup->oProc->f("group_name");
$old_group_id = $phpgw_setup->oProc->f('group_id');
$old_group_name = $phpgw_setup->oProc->f('group_name');
$group_name = $phpgw_setup->oProc->f('group_name');
while(1)
{
$new_group_id = mt_rand ($max_group_id, 60000);
@ -1020,7 +1020,7 @@
$db2->query("SELECT account_lid FROM phpgw_accounts WHERE account_lid='$group_name'",__LINE__,__FILE__);
if($db2->num_rows())
{
$group_name .= "_group";
$group_name .= '_group';
}
$db2->query("INSERT INTO phpgw_accounts(account_id, account_lid, account_pwd, "
."account_firstname, account_lastname, account_lastlogin, "
@ -1075,17 +1075,17 @@
}
}
$setup_info["phpgwapi"]["currentver"] = "0.9.10pre5";
$setup_info['phpgwapi']['currentver'] = '0.9.10pre5';
return $setup_info['phpgwapi']['currentver'];
//return True;
}
$test[] = "0.9.10pre5";
$test[] = '0.9.10pre5';
function phpgwapi_upgrade0_9_10pre5()
{
global $setup_info, $phpgw_setup;
// This is only temp data, so we can kill it.
/* This is only temp data, so we can kill it. */
$phpgw_setup->oProc->DropTable('phpgw_app_sessions');
$phpgw_setup->oProc->CreateTable(
'phpgw_app_sessions', array(
@ -1108,7 +1108,7 @@
//return True;
}
$test[] = "0.9.10pre6";
$test[] = '0.9.10pre6';
function phpgwapi_upgrade0_9_10pre6()
{
global $setup_info, $phpgw_setup;
@ -1120,7 +1120,7 @@
//return True;
}
$test[] = "0.9.10pre7";
$test[] = '0.9.10pre7';
function phpgwapi_upgrade0_9_10pre7()
{
global $setup_info, $phpgw_setup;
@ -1132,7 +1132,7 @@
//return True;
}
$test[] = "0.9.10pre8";
$test[] = '0.9.10pre8';
function phpgwapi_upgrade0_9_10pre8()
{
global $setup_info, $phpgw_setup;
@ -1977,8 +1977,8 @@
$setup_info['phpgwapi']['currentver'] = '0.9.13.006';
return $setup_info['phpgwapi']['currentver'];
}
// begin j3rry
$test[] = '0.9.13.006'; // version number?
$test[] = '0.9.13.006';
function phpgwapi_upgrade0_9_13_006()
{
global $setup_info, $phpgw_setup;
@ -2088,4 +2088,39 @@
$setup_info['phpgwapi']['currentver'] = '0.9.13.011';
return $setup_info['phpgwapi']['currentver'];
}
$test[] = '0.9.13.011';
function phpgwapi_upgrade0_9_13_011()
{
global $setup_info, $phpgw_setup;
$phpgw_setup->oProc->CreateTable(
'phpgw_vfs', array(
'fd' => array(
'file_id' => array('type' => 'auto','nullable' => False),
'owner_id' => array('type' => 'int', 'precision' => 4,'nullable' => False),
'createdby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'modifiedby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'created' => array('type' => 'date','nullable' => False,'default' => '1970-01-01'),
'modified' => array('type' => 'date','nullable' => True),
'size' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'mime_type' => array('type' => 'varchar', 'precision' => 150,'nullable' => True),
'deleteable' => array('type' => 'char', 'precision' => 1,'nullable' => True,'default' => 'Y'),
'comment' => array('type' => 'text','nullable' => True),
'app' => array('type' => 'varchar', 'precision' => 25,'nullable' => True),
'directory' => array('type' => 'text','nullable' => True),
'name' => array('type' => 'text','nullable' => False),
'link_directory' => array('type' => 'text','nullable' => True),
'link_name' => array('type' => 'text','nullable' => True),
'version' => array('type' => 'varchar', 'precision' => 30,'nullable' => False,'default' => '0.0.0.0')
),
'pk' => array('file_id'),
'fk' => array(),
'ix' => array(),
'uc' => array()
)
);
$setup_info['phpgwapi']['currentver'] = '0.9.13.012';
return $setup_info['phpgwapi']['currentver'];
}
?>