mirror of https://github.com/BOINC/boinc.git
db: Renamed database field 'protect' to 'project_specific'
This commit is contained in:
parent
a02bc83678
commit
b44a8c8455
|
@ -2875,13 +2875,13 @@ void DB_CONSENT_TYPE::db_print(char *buf) {
|
|||
"shortname='%s', "
|
||||
"description='%s', "
|
||||
"enabled=%d, "
|
||||
"protect=%d, "
|
||||
"project_specific=%d, "
|
||||
"privacypref=%d, ",
|
||||
id,
|
||||
shortname,
|
||||
description,
|
||||
enabled,
|
||||
protect,
|
||||
project_specific,
|
||||
privacypref
|
||||
);
|
||||
}
|
||||
|
@ -2893,7 +2893,7 @@ void DB_CONSENT_TYPE::db_parse(MYSQL_ROW &r) {
|
|||
strcpy2(shortname, r[i++]);
|
||||
strcpy2(description, r[i++]);
|
||||
enabled = atoi(r[i++]);
|
||||
protect = atoi(r[i++]);
|
||||
project_specific = atoi(r[i++]);
|
||||
privacypref = atoi(r[i++]);
|
||||
}
|
||||
|
||||
|
|
|
@ -854,7 +854,7 @@ struct CONSENT_TYPE {
|
|||
char shortname[256];
|
||||
char description[256];
|
||||
int enabled;
|
||||
int protect;
|
||||
int project_specific;
|
||||
int privacypref;
|
||||
void clear();
|
||||
};
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
The table must be first defined in schema.sql before any content
|
||||
is added!
|
||||
*/
|
||||
insert into consent_type (shortname, description, enabled, protect, privacypref)
|
||||
values ('ENROLL', 'General terms-of-use for this BOINC project.', 0, 1, 0),
|
||||
('STATSEXPORT', 'Do you consent to exporting your data to BOINC statistics aggregation Web sites?', 0, 1, 1);
|
||||
insert into consent_type (shortname, description, enabled, project_specific, privacypref)
|
||||
values ('ENROLL', 'General terms-of-use for this BOINC project.', 0, 0, 0),
|
||||
('STATSEXPORT', 'Do you consent to exporting your data to BOINC statistics aggregation Web sites?', 0, 0, 1);
|
||||
|
|
|
@ -816,12 +816,13 @@ create table consent (
|
|||
primary key (id)
|
||||
) engine=InnoDB;
|
||||
|
||||
-- @todo - change 'protect' to 'project_specific'
|
||||
create table consent_type (
|
||||
id integer not null auto_increment,
|
||||
shortname varchar(255) not null,
|
||||
description varchar(255) not null,
|
||||
enabled integer not null,
|
||||
protect integer not null,
|
||||
project_specific integer not null,
|
||||
privacypref integer not null,
|
||||
primary key (id)
|
||||
) engine=InnoDB;
|
||||
|
|
Loading…
Reference in New Issue