Здравствуйте.
Переносим сервер UTM5 на новую машину. FreeBSD 7.1, UTM5 5.2.1-006
На старой машине стоит тоже UTM 5.2.1-006 Но! Обнаружил различия в структуре БД:
Старая База:
mysql> show columns from discount_transactions_all;
+-------------------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| account_id | int(11) | YES | MUL | NULL | |
| incoming_rest | double | YES | | NULL | |
| outgoing_rest | double | YES | | NULL | |
| discount | double | YES | | NULL | |
| discount_without_tax | double | YES | | NULL | |
| discount_with_tax | double | YES | | NULL | |
| service_id | int(11) | YES | | NULL | |
| service_type | int(11) | YES | | NULL | |
| discount_period_id | int(11) | YES | | NULL | |
| slink_id | int(11) | YES | | NULL | |
| discount_date | int(11) | YES | MUL | NULL | |
| comment | varchar(255) | YES | | NULL | |
| dealer_transaction_id | int(11) | YES | | NULL | |
| dealer_payment_transaction_id | int(11) | YES | | NULL | |
| is_canceled | int(11) | YES | | 0 | |
| cancel_id | int(11) | YES | | 0 | |
| charge_type | int(11) | NO | | 0 | |
+-------------------------------+--------------+------+-----+---------+----------------+
18 rows in set (0.00 sec)
Структура новой базы:
mysql> show columns from discount_transactions_all;
+--------------------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+---------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| account_id | int(11) | NO | | 0 | |
| incoming_rest | double | NO | | 0 | |
| outgoing_rest | double | NO | | 0 | |
| discount | double | NO | | 0 | |
| discount_with_tax | double | NO | | 0 | |
| service_id | int(11) | NO | | 0 | |
| service_type | int(11) | NO | | 0 | |
| discount_period_id | int(11) | NO | | 0 | |
| slink_id | int(11) | NO | | 0 | |
| discount_date | int(11) | NO | | 0 | |
| charge_type | int(11) | NO | | 0 | |
+--------------------+---------+------+-----+---------+----------------+
Можно ли по старой структуре идентифицировать версию и получить обновление БД.
Перенос БД и вопрос по структуре данных
-
- Сообщения: 1612
- Зарегистрирован: Пт ноя 10, 2006 15:23
./utm5_core -v
?Debug : Mar 30 16:59:02 Rehash: Rehash manager started
Notice: Mar 30 16:59:02 ModMap: Sub-Module 'rehash' inserted...
NetUP UTM billing system core. Compile date: Nov 19 2008 23:42:07
Version:5.2.1-006-update7-centos5
Copyright (c) 2001-2008 NetUP Inc. www.netup.ru
usage: utm5_core
[-p pid_file_path] Path to pid file. Default is /var/run/utm5_core.pid.
[-c config_path] Path to config file. Default is /netup/utm5/utm5.cfg
[-v] Version info
ы?
?Debug : Mar 30 16:59:02 Rehash: Rehash manager started
Notice: Mar 30 16:59:02 ModMap: Sub-Module 'rehash' inserted...
NetUP UTM billing system core. Compile date: Nov 19 2008 23:42:07
Version:5.2.1-006-update7-centos5
Copyright (c) 2001-2008 NetUP Inc. www.netup.ru
usage: utm5_core
[-p pid_file_path] Path to pid file. Default is /var/run/utm5_core.pid.
[-c config_path] Path to config file. Default is /netup/utm5/utm5.cfg
[-v] Version info
ы?