diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-04-18 02:32:23 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-04-18 02:32:23 +0000 |
commit | 17fae63b1c50234c9ad84f7506ba18418b82d164 (patch) | |
tree | 7e1dee4fef3989f39ef4a4c57ffff58d032e06d7 | |
parent | be0b8798b62744eda03519b9ae60778bfa30d47e (diff) |
Add pre-1.2 fixup script.
-rw-r--r-- | horde/turba2/1.x_to_1.2.sql | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/horde/turba2/1.x_to_1.2.sql b/horde/turba2/1.x_to_1.2.sql new file mode 100644 index 0000000..e10b4a3 --- /dev/null +++ b/horde/turba2/1.x_to_1.2.sql @@ -0,0 +1,18 @@ +-- You can simply execute this file in your database. +-- +-- For MySQL run: +-- +-- $ mysql --user=root --password=<MySQL-root-password> <db name> < 1.x_to_1.2.sql +-- +-- Or, for PostgreSQL: +-- +-- $ psql <db name> -f 1.x_to_1.2.sql + + +ALTER TABLE turba_objects ADD COLUMN object_type VARCHAR(255) NOT NULL DEFAULT 'Object'; +ALTER TABLE turba_objects ADD COLUMN object_members BLOB; +ALTER TABLE turba_objects CHANGE object_homeAddress object_homeaddress VARCHAR(255); +ALTER TABLE turba_objects CHANGE object_workAddress object_workaddress VARCHAR(255); +ALTER TABLE turba_objects CHANGE object_homePhone object_homephone VARCHAR(25); +ALTER TABLE turba_objects CHANGE object_workPhone object_workphone VARCHAR(25); +ALTER TABLE turba_objects CHANGE object_cellPhone object_cellphone VARCHAR(25); |