mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-29 23:22:35 +02:00
2015-04-02 Fred Gleason <fredg@paravelsystems.com>
* Modified the definition of the 'JACK_CLIENTS.COMMAND_LINE' field from 'char(255)' to 'text' in the database. * Incremented the database version to 244.
This commit is contained in:
parent
4b5e2422c8
commit
12b8566af9
@ -14842,3 +14842,7 @@
|
||||
2015-03-23 Fred Gleason <fredg@paravelsystems.com>
|
||||
* 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 <fredg@paravelsystems.com>
|
||||
* Modified the definition of the 'JACK_CLIENTS.COMMAND_LINE'
|
||||
field from 'char(255)' to 'text' in the database.
|
||||
* Incremented the database version to 244.
|
||||
|
@ -26,7 +26,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 243
|
||||
#define RD_VERSION_DATABASE 244
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@ -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 ****
|
||||
|
Loading…
x
Reference in New Issue
Block a user