mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-31 08:02:43 +02:00
Revised schema update 315
This commit is contained in:
parent
95f8141fc9
commit
a2f571f759
@ -19544,7 +19544,7 @@
|
||||
rdadmin(1).
|
||||
2020-02-11 Fred Gleason <fredg@paravelsys tems.com>
|
||||
* Added a 'FEEDS.IS_SUPERFEED' field to the database.
|
||||
* Added a 'FEED_KEY_NAMES' table to the database.
|
||||
* Added a 'SUPERFEED_MAPS' table to the database.
|
||||
* Incremented the database version to 315.
|
||||
* Added a 'Superfeed' column to the feed list in the 'Rivendell
|
||||
Feed List' dialog in rdadmin(1).
|
||||
@ -19586,3 +19586,6 @@
|
||||
static methods.
|
||||
* Added logic to rdcastmanager(1) to insert the author's e-mail
|
||||
contact automatically when posting a new episode.
|
||||
2020-02-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Tweaked controls to be disabled for superfeeds in the 'Edit Feed'
|
||||
dialog in rdadmin(1).
|
||||
|
0
docs/tables/superfeed_maps.txt
Normal file
0
docs/tables/superfeed_maps.txt
Normal file
@ -63,7 +63,7 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
// Revert 315
|
||||
//
|
||||
if((cur_schema==315)&&(set_schema<cur_schema)) {
|
||||
DropTable("FEED_KEY_NAMES");
|
||||
DropTable("SUPERFEED_MAPS");
|
||||
DropIndex("FEEDS","IS_SUPERFEED_IDX");
|
||||
DropColumn("FEEDS","IS_SUPERFEED");
|
||||
|
||||
|
@ -9914,9 +9914,14 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
return false;
|
||||
}
|
||||
|
||||
sql=QString("create table FEED_KEY_NAMES (")+
|
||||
sql=QString("create table SUPERFEED_MAPS (")+
|
||||
"ID int unsigned primary key auto_increment,"+
|
||||
"FEED_ID int unsigned not null,"+
|
||||
"MEMBER_FEED_ID int unsigned not null,"+
|
||||
"KEY_NAME varchar(8) not null,"+
|
||||
"MEMBER_KEY_NAME varchar(8) not null,"+
|
||||
"index FEED_ID_IDX(FEED_ID),"+
|
||||
"index MEMBER_FEED_ID_IDX(MEMBER_FEED_ID),"+
|
||||
"index KEY_NAME_IDX(KEY_NAME),"+
|
||||
"index MEMBER_KEY_NAME_IDX(MEMBER_KEY_NAME))";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
@ -9951,7 +9956,6 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
}
|
||||
|
||||
|
||||
|
||||
// NEW SCHEMA UPDATES GO HERE...
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user