Edgewall Software

Opened 7 years ago

Last modified 7 years ago

#12643 closed defect

Check for table existence in DatabaseManager.upgrade_tables — at Version 3

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.3.2
Component: database backend Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

DatabaseManager.upgrade_tables checks table existence before migrating data for a table, allowing new tables to be specified in schema.

Internal Changes:

Description

If upgrade_tables checked for table existence before attempting to copy the data to a temporary table, then upgrade_tables could handle a mix of new and revised tables. This would make the upgrade function slightly similar for a case such as that demonstrated in db4.py for SpamFilter.

Change History (3)

comment:1 by Ryan J Ollos, 7 years ago

Summary: Check for table existence in DatabaseManager.ugrade_tablesCheck for table existence in DatabaseManager.upgrade_tables

comment:2 by Ryan J Ollos, 7 years ago

Milestone: next-stable-1.2.x1.2.1
Owner: set to Ryan J Ollos
Status: newassigned

comment:3 by Ryan J Ollos, 7 years ago

API Changes: modified (diff)
Note: See TracTickets for help on using tickets.