Commit Graph

68 Commits

Author SHA1 Message Date
Ralf Becker
85477c18a5 use correct columns for dropping index (does not matter if they contain length or not) 2015-08-26 13:07:38 +00:00
Ralf Becker
81fe3b0472 * Backup: backup ascii columns as such, allways check and if necessary fix indexes on restore 2015-08-26 12:50:56 +00:00
Ralf Becker
18b9ff23f5 fix typo in last commit 2015-08-05 08:37:56 +00:00
Ralf Becker
535488ca28 PostgreSQL: automatic shorten all content requiring it, before schema update, to not stall update 2015-08-05 08:33:13 +00:00
Ralf Becker
8fabe11fc5 fix typo causing PHP Fatal error on update 2015-08-04 09:53:38 +00:00
Ralf Becker
2984e4c79e drop evtl. existing temp. table eg. from a previous failed upgrade 2015-07-29 19:01:17 +00:00
Ralf Becker
bba3fa804a some database optimizing: changing columns with no user-input to CHARACTER SET ascii (instead of utf8), shorten indexes and add additional autoincrement columns where primary key contained varchars 2015-07-11 13:56:50 +00:00
Ralf Becker
f472ff10ee fixed PHP Fatal error: Call to a member function MetaTables() on a non-object, when non-default apps like esyncpro got installed/updated 2014-07-15 11:07:26 +00:00
Ralf Becker
3bef4b2a26 * Tracker: dropping unique index(es) on escalations to not limit creating same escalations eg. on different queues
Was previously done by modifying index to contain more columns in update, but not new installations.
Now droping all existing unique indexes completly.
2014-01-14 11:06:31 +00:00
Ralf Becker
d48e8f4d84 * PostgreSQL: fix for SQL error eg. on update from 1.8.001 to 1.8.004 from 9.1 on 2013-07-16 06:47:54 +00:00
Ralf Becker
34f3c8bf1f * Admin/Setup: fixed restore always converted longtext columns to text and therefore truncating them to 64k on MySQL, also fixed backup to report them correctly in backup of schema 2013-01-21 09:49:59 +00:00
Ralf Becker
c0f83a275d * API/Setup/MySQL: fixed backup to correctly report boolean columns and support MySQL 5.0+ varchar(>255) 2012-08-12 09:49:06 +00:00
Ralf Becker
18d74430ea * Backup/Addressbook: adding limited index-length to backed up schema and fix restore of old backups without (default to 32 on multicolumn indexes including text columns) 2012-04-12 08:04:35 +00:00
Ralf Becker
5396f9c02f fix for PostgreSQL notification update not working: some stuff is NOT to be quoted 2011-05-18 10:12:32 +00:00
Ralf Becker
5495491e78 * Admin: session-list is generated now from egw_access_log table independent of readablity of sessions files in filesystem
- session_(dla|action) is stored in egw_access_log table
- notifications refresh via ajax set notification_heartbeat timestamp in egw_access_log
- if notification_heartbeat is set (happens only for browser sessions with popup notification) sessions get removed from session list one minute after browser is closed
- new static method egw_session::notifications_active($account_id) to check if given user has an open browser with notifications popup checking, to ensure popup notifications can fall back to email
--> REQUIRES DATABASE UPDATE / SETUP
2011-04-13 14:11:09 +00:00
Ralf Becker
07da314086 using own CreateIndex() method in CreateTable(), to deal correctly with size-limited indexes in PostgreSQL 2010-09-16 11:58:25 +00:00
Ralf Becker
ae8ec8748b CreateIndex: remove length limits from column names, if DB type is NOT MySQL 2010-09-16 10:22:43 +00:00
Ralf Becker
1e9695dbc9 allow to limit size of index by appending it in brackets after the column name, eg. "column(32)", which is already supported by ADOdb, by was broken by our fix to always quote names, to allow column names which are reserved words, eg. "timestamp" in phpfreechat 2010-09-15 13:27:26 +00:00
Ralf Becker
09719babaf replace deprecated call_user_method(_array) with call_user_func(_array) 2010-07-20 16:47:11 +00:00
Ralf Becker
8c8d1e7b8c "cant create an index without fields (was observed in broken backups)" 2009-08-17 07:30:47 +00:00
Ralf Becker
a083233c43 "allow to use now() beside current_timestamp, as Postgres backups contain it and it's easier to remember anyway" 2009-05-15 07:18:06 +00:00
Ralf Becker
9f3d5f4b4c "longtext need to be handled like text" 2008-11-02 09:46:42 +00:00
Ralf Becker
16c5ce05ac fixed "There's NO ADOdb object!" error in DB backup/restore via
setup-cli.php
2008-07-21 09:40:58 +00:00
Ralf Becker
2d1b53b835 "using standard md5() instead of hash('md5',...), as it's only a pecl extension" 2008-05-27 20:02:56 +00:00
Ralf Becker
62ca85a1b8 "phpdoc file header and __constuct()" 2008-05-24 06:59:35 +00:00
Ralf Becker
17b8868698 "shorten index names longer or equal to 64 chars for all db types" 2008-05-24 06:37:19 +00:00
Ralf Becker
bd4b0cc4ef "added a query log, independent of the db used" 2007-10-19 05:48:52 +00:00
José Luis Gordo Romero
3081b0a05a ORA - Fixed schema creation (indexes, triggers and secuences):
Indexes: The solution of put the index name of the first columnt dont't
work because duplicates, create instead a hash of the large name (PHP 5
>= 5.1.2, PECL hash:1.1-1.5) with an fixed char at beginning (Oracle
objects names can't start with a number)

Secuences & triggers: create a a hash of the large name.
2007-10-18 04:29:16 +00:00
Ralf Becker
7f64e2d175 fix for bug #488: Postgres errors when upgrading to 1.4 beta 2007-05-12 16:58:47 +00:00
Pim Snel
c1c6bddace - fix bug in egw_db so that it will always work with postgresql if using external db's
- enhance schema_proc so that it can work with schema's of externals db objects
2006-12-20 15:18:27 +00:00
Ralf Becker
e6998c2ecf PostgreSQL 8.1 fix 2006-12-20 09:26:04 +00:00
Ralf Becker
a85c611961 fix: suppress index or unique index, which is already a primary key 2006-04-09 10:56:29 +00:00
Carsten Wolff
99cb0bd567 fixed a handfull of bugs that broke setup/update from 1.0 to 1.2 2006-01-06 16:21:51 +00:00
Ralf Becker
68d0668328 fix for bool columns:
- work around some "magic" in ADODB's datadict
- MySQL4.1 allows the standard true/false for inserts only and not as default value
2005-11-29 07:52:18 +00:00
Ralf Becker
9320913b9e - new capability 'name_case'
- docu update
- removed some depricated stuff from the last release
2005-11-20 15:40:28 +00:00
Ralf Becker
970a92297e an other big update ;-)
1) phpgw_lang(uages) --> egw_lang(uages)
2) mysql 4.0+
 - charset gets now set for the connect
 - charset gets used for new tables
 - some columns shortend to deal with 1000byte (= 333 utf-8 chars) limit for indexes
 - update to 1.0.1.019 fixes the charset of existing tables
2005-11-04 18:35:09 +00:00
Ralf Becker
cea4c314d2 phpgw_setup --> egw_setup 2005-06-20 22:07:40 +00:00
Lars Kneschke
062f20ec42 chaning phpgw -> egw 2005-06-20 11:04:20 +00:00
Ralf Becker
84ab716959 $GLOBALS['phpgw --> $GLOBALS['egw 2005-06-20 07:51:01 +00:00
Lars Kneschke
402d3b60e8 little type 2005-05-29 11:23:51 +00:00
Ralf Becker
d9ba5f9ab8 fixed update problem of wiki, RenameColumn could not deal with column-names in mixed case 2005-02-27 19:51:24 +00:00
Ralf Becker
4d498d47cb updates to work around postgres error while upgrading a phpGW 0.9.14 install 2005-02-10 15:15:29 +00:00
Ralf Becker
bff130735c automaticaly lowercase column- and tablenames for oracle (as already done for MaxDB) and setting the maximum index length for oracle to 30 2005-02-07 20:28:05 +00:00
Ralf Becker
3b2da86ce2 postgres fix (error in converting varchar to int if >= 100) 2004-11-21 22:40:21 +00:00
Ralf Becker
630c88d766 reworked installation/upgrade process to not use delta-updates any more, as we can now reliable read the schema back from our supported databases:
- makes update scripts a lot easier and saver
- updates are a lot faster now
==> only the needed update-functions get called
2004-10-23 15:00:44 +00:00
Ralf Becker
ba55620f3d fixed the schema-retrival functions for MySql, Postges and MaxDB 2004-10-14 20:55:52 +00:00
Ralf Becker
b3971d810c RenameColumn no checks if column is used in an index and evtl. rename the column in the index-definition (for the baseline delta) 2004-08-26 14:18:09 +00:00
Ralf Becker
647222728c fix for MaxDB not returning the primary keys via MetaColumns 2004-08-15 16:20:39 +00:00
Ralf Becker
531dbe93c7 added function to read back / import the schema from an existing database (used in setup and db-tools) 2004-08-15 15:43:52 +00:00
Ralf Becker
d5dbb7ef72 new schema_proc class seems to work now 2004-08-13 19:01:03 +00:00