2022-09-20 Fred Gleason <fredg@paravelsystems.com>

* Changed the 'RECORDINGS.URL_PASSWORD' from 'varchar(64)' to 'text'.
	* Base64 encoded the contents of the 'RECORDINGS.URL_PASSWORD' field.
	* Incremented the database version  to 358.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-09-20 10:18:23 -04:00
parent 0d4dd0b635
commit de1908cb53
7 changed files with 61 additions and 5 deletions

View File

@@ -24,7 +24,7 @@
/*
* Current Database Version
*/
#define RD_VERSION_DATABASE 357
#define RD_VERSION_DATABASE 358
#endif // DBVERSION_H

View File

@@ -603,13 +603,13 @@ void RDRecording::setUrlUsername(QString name) const
QString RDRecording::urlPassword() const
{
return GetStringValue("URL_PASSWORD");
return QByteArray::fromBase64(GetStringValue("URL_PASSWORD").toUtf8());
}
void RDRecording::setUrlPassword(QString passwd) const
{
SetRow("URL_PASSWORD",passwd);
SetRow("URL_PASSWORD",QString(passwd.toUtf8().toBase64()));
}