| 201 | |
| 202 | We starten het script nogmaals, in FORCE mode omdat de user conversie al geweest is: |
| 203 | {{{ |
| 204 | [Syn-3] root@linux.ours.local ~# FORCE=1 ./convert |
| 205 | Stopping /service/zarafa-server ...OK |
| 206 | SYN-3: Reading user ID converions: |
| 207 | old user id -> username -> new user id |
| 208 | ERROR 1054 (42S22) at line 1: Unknown column 'object_type' in 'where clause' |
| 209 | Something went wrong with user conversion.. |
| 210 | SYN-3: Updating database: |
| 211 | query: |
| 212 | SYN-3: Starting zarafa in conversion mode: |
| 213 | SYN-3: Waiting for conversion to finish... |
| 214 | Thu Jun 9 22:36:18 2011: Done: Update acl key |
| 215 | Thu Jun 9 22:36:18 2011: Start: Update externid in object table |
| 216 | Thu Jun 9 22:36:18 2011: Done: Update externid in object table |
| 217 | Thu Jun 9 22:36:18 2011: Start: Update keys in 'changes' table |
| 218 | Thu Jun 9 22:36:18 2011: Done: Update keys in 'changes' table |
| 219 | Thu Jun 9 22:36:18 2011: Start: Update mvproperties key |
| 220 | Thu Jun 9 22:36:18 2011: 0x0000000a356568: SQL Failed: Incorrect table definition; there can be only one auto column and it must be defined as a key, Query: "ALTER TABLE mvproperties DROP PRIMARY KEY, ADD PRIMARY KEY (`hierarchyid`,`tag`,`type`,`orderid`), DROP KEY `hi`" |
| 221 | Thu Jun 9 22:36:18 2011: Failed: Rollback database |
| 222 | Thu Jun 9 22:36:18 2011: Can't update the database: Unable to upgrade zarafa from version 6.40.27223 to 6.40.8.27223 |
| 223 | Thu Jun 9 22:36:18 2011: Server shutdown complete. |
| 224 | |
| 225 | }}} |
| 226 | |
| 227 | Nu gaat het mis op een andere table, we doen dezelfde sql magic: |
| 228 | {{{ |
| 229 | [Syn-3] root@linux.ours.local ~# mysql -p`cat /etc/my.passwd` zarafa |
| 230 | Welcome to the MySQL monitor. Commands end with ; or \g. |
| 231 | Your MySQL connection id is 77 |
| 232 | Server version: 5.0.91 Source distribution |
| 233 | |
| 234 | Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. |
| 235 | |
| 236 | mysql> ALTER TABLE mvproperties DROP PRIMARY KEY, ADD PRIMARY KEY (`hierarchyid`,`tag`,`type`,`orderid`), DROP KEY `hi`; |
| 237 | ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key |
| 238 | |
| 239 | }}} |