mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-30 15:42:34 +02:00
2024-02-06 Fred Gleason <fredg@paravelsystems.com>
* Changed the 'AUDIO_CARDS.NAME' database field from 'varchar(64)' to 'text'. * Incremented the database version to 373. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
1018fa2f0d
commit
5895a7ca58
@ -24631,3 +24631,7 @@
|
||||
'make rpm' target.
|
||||
2024-02-06 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Incremented the package version to 4.1.3int0.
|
||||
2024-02-06 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Changed the 'AUDIO_CARDS.NAME' database field from 'varchar(64)'
|
||||
to 'text'.
|
||||
* Incremented the database version to 373.
|
||||
|
@ -9,7 +9,7 @@ ID int(10) unsigned Primary key, auto increment
|
||||
STATION_NAME varchar(64)
|
||||
CARD_NUMBER int(11) signed
|
||||
DRIVER int(11) signed
|
||||
NAME varchar(64)
|
||||
NAME text
|
||||
INPUTS int(11) signed
|
||||
OUTPUTS int(11) signed
|
||||
CLOCK_SOURCE int(11) signed 0 = Internal, 1 = AES/EBU,
|
||||
|
@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 372
|
||||
#define RD_VERSION_DATABASE 373
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Revert Rivendell DB schema
|
||||
//
|
||||
// (C) Copyright 2018-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2024 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -40,6 +40,20 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
|
||||
// NEW SCHEMA REVERSIONS GO HERE...
|
||||
|
||||
//
|
||||
// Revert 373
|
||||
//
|
||||
if((cur_schema == 373) && (set_schema < cur_schema))
|
||||
{
|
||||
sql=QString("alter table `AUDIO_CARDS` ")+
|
||||
"modify column `NAME` varchar(64)";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteSchemaVersion(--cur_schema);
|
||||
}
|
||||
|
||||
//
|
||||
// Revert 372
|
||||
//
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// DB schema version <==> Rivendell version map
|
||||
//
|
||||
// (C) Copyright 2018-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2024 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -162,7 +162,7 @@ void MainObject::InitializeSchemaMap() {
|
||||
global_version_map["3.6"]=347;
|
||||
global_version_map["4.0"]=370;
|
||||
global_version_map["4.1"]=371;
|
||||
global_version_map["4.2"]=372;
|
||||
global_version_map["4.2"]=373;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Update Rivendell DB schema.
|
||||
//
|
||||
// (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2024 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -11440,6 +11440,16 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
}
|
||||
|
||||
if((cur_schema<373)&&(set_schema>cur_schema)) {
|
||||
sql=QString("alter table `AUDIO_CARDS` ")+
|
||||
"modify column `NAME` text";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
}
|
||||
|
||||
|
||||
// NEW SCHEMA UPDATES GO HERE...
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user