mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 15:00:07 +01:00
added access_field to the notes_table
This commit is contained in:
parent
4ca386d64c
commit
3265e4a2d8
@ -323,12 +323,13 @@
|
|||||||
$phpgw_setup->db->query($sql);
|
$phpgw_setup->db->query($sql);
|
||||||
|
|
||||||
$sql = "CREATE TABLE phpgw_notes (
|
$sql = "CREATE TABLE phpgw_notes (
|
||||||
note_id int(20) NOT NULL auto_increment,
|
note_id int(20) NOT NULL auto_increment,
|
||||||
note_owner int(11),
|
note_owner int(11),
|
||||||
note_date int(11),
|
note_access char(7),
|
||||||
note_category int(9),
|
note_date int(11),
|
||||||
note_content text,
|
note_category int(9),
|
||||||
PRIMARY KEY (note_id)
|
note_content text,
|
||||||
|
PRIMARY KEY (note_id)
|
||||||
)";
|
)";
|
||||||
$phpgw_setup->db->query($sql);
|
$phpgw_setup->db->query($sql);
|
||||||
|
|
||||||
@ -348,8 +349,8 @@
|
|||||||
)";
|
)";
|
||||||
$phpgw_setup->db->query($sql);
|
$phpgw_setup->db->query($sql);
|
||||||
|
|
||||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10';
|
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.001';
|
||||||
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
||||||
update_version_table();
|
update_version_table();
|
||||||
// $phpgw_setup->update_version_table();
|
// $phpgw_setup->update_version_table();
|
||||||
?>
|
?>
|
@ -1469,6 +1469,16 @@
|
|||||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10';
|
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$test[] = '0.9.10';
|
||||||
|
function upgrade0_9_10()
|
||||||
|
{
|
||||||
|
global $phpgw_info,$phpgw_setup;
|
||||||
|
|
||||||
|
$phpgw_setup->db->query("alter table phpgw_notes add column note_access char(7) after note_owner");
|
||||||
|
|
||||||
|
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.001';
|
||||||
|
}
|
||||||
|
|
||||||
reset ($test);
|
reset ($test);
|
||||||
while (list ($key, $value) = each ($test)){
|
while (list ($key, $value) = each ($test)){
|
||||||
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {
|
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {
|
||||||
|
@ -294,11 +294,12 @@
|
|||||||
$phpgw_setup->db->query($sql);
|
$phpgw_setup->db->query($sql);
|
||||||
|
|
||||||
$sql = "CREATE TABLE phpgw_notes (
|
$sql = "CREATE TABLE phpgw_notes (
|
||||||
note_id serial,
|
note_id serial,
|
||||||
note_owner int,
|
note_owner int,
|
||||||
note_date int,
|
note_access char(7),
|
||||||
note_category int,
|
note_date int,
|
||||||
note_content text
|
note_category int,
|
||||||
|
note_content text
|
||||||
)";
|
)";
|
||||||
$phpgw_setup->db->query($sql);
|
$phpgw_setup->db->query($sql);
|
||||||
|
|
||||||
@ -316,7 +317,7 @@
|
|||||||
)";
|
)";
|
||||||
$phpgw_setup->db->query($sql);
|
$phpgw_setup->db->query($sql);
|
||||||
|
|
||||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10';
|
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.001';
|
||||||
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
||||||
update_version_table();
|
update_version_table();
|
||||||
?>
|
?>
|
||||||
|
@ -1861,6 +1861,34 @@
|
|||||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10';
|
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$test[] = '0.9.10';
|
||||||
|
function upgrade0_9_10()
|
||||||
|
{
|
||||||
|
global $phpgw_info,$phpgw_setup;
|
||||||
|
|
||||||
|
$phpgw_setup->db->query("create table phpgw_temp as select * from notes",__LINE__,__FILE__);
|
||||||
|
|
||||||
|
$phpgw_setup->db->query("drop sequence notes_note_id_seq",__LINE__,__FILE__);
|
||||||
|
|
||||||
|
$phpgw_setup->db->query("drop table notes",__LINE__,__FILE__);
|
||||||
|
|
||||||
|
$sql = "CREATE TABLE phpgw_notes (
|
||||||
|
note_id serial,
|
||||||
|
note_owner int,
|
||||||
|
note_access char(7),
|
||||||
|
note_date int,
|
||||||
|
note_category int,
|
||||||
|
note_content text
|
||||||
|
)";
|
||||||
|
$phpgw_setup->db->query($sql);
|
||||||
|
|
||||||
|
$phpgw_setup->db->query("insert into phpgw_notes select * from phpgw_temp",__LINE__,__FILE__);
|
||||||
|
|
||||||
|
$phpgw_setup->db->query("drop table phpgw_temp",__LINE__,__FILE__);
|
||||||
|
|
||||||
|
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.001';
|
||||||
|
}
|
||||||
|
|
||||||
reset ($test);
|
reset ($test);
|
||||||
while (list ($key, $value) = each ($test)){
|
while (list ($key, $value) = each ($test)){
|
||||||
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {
|
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {
|
||||||
|
@ -11,5 +11,5 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
$phpgw_info['server']['versions']['phpgwapi'] = '0.9.10';
|
$phpgw_info['server']['versions']['phpgwapi'] = '0.9.11.001';
|
||||||
$phpgw_info['server']['versions']['current_header'] = '1.11';
|
$phpgw_info['server']['versions']['current_header'] = '1.11';
|
||||||
|
Loading…
Reference in New Issue
Block a user