diff --git a/ChangeLog b/ChangeLog index efd3799c..78b2fc56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17854,3 +17854,4 @@ 2018-10-22 Patrick Linstruth * Changed `RDLOGEDIT.INPUT_CARD` and `RDLOGEDIT.OUTPUT_CARD` defaults to 0 to match RDLIBRARY defaults + * Incremented the database version to 298. diff --git a/lib/dbversion.h b/lib/dbversion.h index a58c434e..6e69779d 100644 --- a/lib/dbversion.h +++ b/lib/dbversion.h @@ -24,7 +24,7 @@ /* * Current Database Version */ -#define RD_VERSION_DATABASE 297 +#define RD_VERSION_DATABASE 298 #endif // DBVERSION_H diff --git a/utils/rddbmgr/revertschema.cpp b/utils/rddbmgr/revertschema.cpp index b1d8c19b..c72c6ddf 100644 --- a/utils/rddbmgr/revertschema.cpp +++ b/utils/rddbmgr/revertschema.cpp @@ -40,6 +40,24 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg) // NEW SCHEMA REVERSIONS GO HERE... + // + // Revert 298 + // + if((cur_schema==298)&&(set_schemacur_schema)) { + sql=QString("alter table RDLOGEDIT ")+ + "modify column INPUT_CARD int(11) default 0"; + if(!RDSqlQuery::apply(sql,err_msg)) { + return false; + } + + sql=QString("alter table RDLOGEDIT ")+ + "modify column OUTPUT_CARD int(11) default 0"; + if(!RDSqlQuery::apply(sql,err_msg)) { + return false; + } + + WriteSchemaVersion(++cur_schema); + } + // // Maintainer's Note: //