diff --git a/ChangeLog b/ChangeLog index 3b385224..857532e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18025,3 +18025,6 @@ * Added a 'CART_SCHED_CODES' table to the database. * Removed 'SCHED_CODES' field from 'CART' * Incremented the database version to 299. +2018-11-16 Fred Gleason + * Modified the 298 => 299 schema change in rddbmgr(8) to use the + new method for dropping a DB field. diff --git a/utils/rddbmgr/updateschema.cpp b/utils/rddbmgr/updateschema.cpp index 4a77edee..dbe14b15 100644 --- a/utils/rddbmgr/updateschema.cpp +++ b/utils/rddbmgr/updateschema.cpp @@ -9584,9 +9584,7 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg) } } delete q; - - q=new RDSqlQuery("alter table CART drop column SCHED_CODES",false); - delete q; + DropColumn("CART","SCHED_CODES"); WriteSchemaVersion(++cur_schema); }