mass untag
This commit is contained in:
@@ -239,31 +239,31 @@ namespace AyaNova.Util
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
//TAG tables
|
||||
if (currentSchema < 6)
|
||||
{
|
||||
LogUpdateMessage(log);
|
||||
// LOOKAT: Should taggroupmap have an index that enforces no taggroup can have the same tag more than once? Same for objects being tagged?
|
||||
exec("CREATE TABLE atag (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, name varchar(255) not null)");
|
||||
// //////////////////////////////////////////////////
|
||||
// //TAG tables
|
||||
// if (currentSchema < 6)
|
||||
// {
|
||||
// LogUpdateMessage(log);
|
||||
// // LOOKAT: Should taggroupmap have an index that enforces no taggroup can have the same tag more than once? Same for objects being tagged?
|
||||
// exec("CREATE TABLE atag (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, name varchar(255) not null)");
|
||||
|
||||
//LOOKAT: isn't this useless without the ID? Need to see if it's being used after unit testing
|
||||
exec("CREATE UNIQUE INDEX atag_name_idx ON atag (name);");
|
||||
// //LOOKAT: isn't this useless without the ID? Need to see if it's being used after unit testing
|
||||
// exec("CREATE UNIQUE INDEX atag_name_idx ON atag (name);");
|
||||
|
||||
exec("CREATE TABLE atagmap (id BIGSERIAL PRIMARY KEY, ownerid bigint not null," +
|
||||
"tagid bigint not null REFERENCES atag (id), tagtoobjectid bigint not null, tagtoobjecttype integer not null)");
|
||||
// exec("CREATE TABLE atagmap (id BIGSERIAL PRIMARY KEY, ownerid bigint not null," +
|
||||
// "tagid bigint not null REFERENCES atag (id), tagtoobjectid bigint not null, tagtoobjecttype integer not null)");
|
||||
|
||||
//Taggroup
|
||||
exec("CREATE TABLE ataggroup (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, name varchar(255) not null)");
|
||||
exec("CREATE TABLE ataggroupmap (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, tagid bigint not null REFERENCES atag (id), taggroupid bigint not null)");
|
||||
// //Taggroup
|
||||
// exec("CREATE TABLE ataggroup (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, name varchar(255) not null)");
|
||||
// exec("CREATE TABLE ataggroupmap (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, tagid bigint not null REFERENCES atag (id), taggroupid bigint not null)");
|
||||
|
||||
setSchemaLevel(++currentSchema);
|
||||
}
|
||||
// setSchemaLevel(++currentSchema);
|
||||
// }
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
// OPS LRO tables
|
||||
if (currentSchema < 7)
|
||||
if (currentSchema < 6)
|
||||
{
|
||||
LogUpdateMessage(log);
|
||||
|
||||
@@ -279,7 +279,7 @@ namespace AyaNova.Util
|
||||
//LICENSE table new columns
|
||||
//LOOKAT: DO I need this anymore???
|
||||
//answer: no because it relates to ops stuff in other tables and logging, not to the license itself (except maybe dbid?)
|
||||
if (currentSchema < 8)
|
||||
if (currentSchema < 7)
|
||||
{
|
||||
LogUpdateMessage(log);
|
||||
|
||||
@@ -295,7 +295,7 @@ namespace AyaNova.Util
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
//DATAFILTER table
|
||||
if (currentSchema < 9)
|
||||
if (currentSchema < 8)
|
||||
{
|
||||
LogUpdateMessage(log);
|
||||
|
||||
|
||||
@@ -275,8 +275,7 @@ namespace AyaNova.Util
|
||||
//THIS METHOD IS ONLY CALLED BY SEEDER
|
||||
//SO ONLY REMOVE DATA THAT IS SEEDED
|
||||
//I.E. Normal user business data, not infrastructure data like license or localized text etc
|
||||
EraseTable("atagmap", conn);
|
||||
EraseTable("atag", conn);
|
||||
|
||||
EraseTable("afileattachment", conn);
|
||||
EraseTable("awidget", conn);
|
||||
EraseTable("aevent", conn);
|
||||
|
||||
Reference in New Issue
Block a user