Skip to content

When running the upgrade database script, cursor is left in the middle of the row #5987

@morganfw

Description

@morganfw

When performing upgrade_database.php script, after repair the prompt returns attached to the last executed line of the script and not to a new line.

Expected behavior:
Cacti 1.2.x
from

root@myserver:/var/www/html/cacti-1.2# php -q cli/upgrade_database.php --forcever=1.2.26
NOTE: Repairing Tables for Local Database
Upgrading from v1.2.26
Upgrading from v1.2.26 (DB 1.2.29) to v1.2.27
+++++root@myserver:/var/www/html/cacti-1.2#

to

root@myserver:/var/www/html/cacti-1.2# php -q cli/upgrade_database.php --forcever=1.2.26
NOTE: Repairing Tables for Local Database
Upgrading from v1.2.26
Upgrading from v1.2.26 (DB 1.2.29) to v1.2.27
+++++
root@myserver:/var/www/html/cacti-1.2#

Cacti 1.3.0 Dev
from

root@myserver:/var/www/html/cacti# php -q cli/upgrade_database.php --forcever=1.2.29
NOTE: Repairing Tables for Local Database
Upgrading from v1.2.29
Performing Database Upgrade
  - from v1.2.29 (DB 1.3.0.99.1734006715.66c5c877)
      to v1.3.0
++++++++++++++++++++++++++++++++++++++++++++++++++root@myserver:/var/www/html/cacti#

to

root@myserver:/var/www/html/cacti# php -q cli/upgrade_database.php --forcever=1.2.29
NOTE: Repairing Tables for Local Database
Upgrading from v1.2.29
Performing Database Upgrade
  - from v1.2.29 (DB 1.3.0.99.1734006715.66c5c877)
      to v1.3.0
++++++++++++++++++++++++++++++++++++++++++++++++++
root@myserver:/var/www/html/cacti#

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions