diff --git a/ChangeLog b/ChangeLog index d20e2aee..15e1cf8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14842,3 +14842,7 @@ 2015-03-23 Fred Gleason * Fixed a fencepost bug in 'ripcd/sasusi.cpp' that caused the last relay in the list to fail to respond to a 'GO' RML. +2015-04-02 Fred Gleason + * Modified the definition of the 'JACK_CLIENTS.COMMAND_LINE' + field from 'char(255)' to 'text' in the database. + * Incremented the database version to 244. diff --git a/lib/dbversion.h b/lib/dbversion.h index 2cf326ee..bcc1497a 100644 --- a/lib/dbversion.h +++ b/lib/dbversion.h @@ -26,7 +26,7 @@ /* * Current Database Version */ -#define RD_VERSION_DATABASE 243 +#define RD_VERSION_DATABASE 244 #endif // DBVERSION_H diff --git a/rdadmin/createdb.cpp b/rdadmin/createdb.cpp index 27f1cdd4..ab3687aa 100644 --- a/rdadmin/createdb.cpp +++ b/rdadmin/createdb.cpp @@ -2237,7 +2237,7 @@ bool CreateDb(QString name,QString pwd) ID int unsigned auto_increment not null primary key, \ STATION_NAME char(64) not null,\ DESCRIPTION char(64),\ - COMMAND_LINE char(255) not null,\ + COMMAND_LINE text not null,\ index IDX_STATION_NAME (STATION_NAME))"); if(!RunQuery(sql)) { return false; @@ -8094,6 +8094,12 @@ int UpdateDb(int ver) delete q; } + if(ver<244) { + sql=QString("alter table JACK_CLIENTS modify column ")+ + "COMMAND_LINE text not null"; + q=new QSqlQuery(sql); + delete q; + } // **** End of version updates ****