Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Roles and UserRole tables #1360

Merged
merged 3 commits into from
Jun 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions configuration/etl/etl.d/xdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"xdb/report-templates.json",
"xdb/reports.json",
"xdb/restx509.json",
"xdb/roles.json",
"xdb/schema-version-history.json",
"xdb/session-manager.json",
"xdb/users.json",
Expand Down Expand Up @@ -91,18 +90,6 @@
}
}
},
{
"name": "roles",
"definition_file": "xdb/roles.json",
"description": "roles + data",
"endpoints": {
"source": {
"type": "jsonfile",
"name": "roles",
"path": "xdb/roles.json"
}
}
},
{
"name": "schema-version",
"definition_file": "xdb/schema-version-history.json",
Expand Down
18 changes: 18 additions & 0 deletions configuration/etl/etl.d/xdmod-migration-8_5_1-9_0_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,24 @@
"schema": "modw"
}
}
},
{
"name": "remove-role-tables",
"description": "Remove the Role related tables as they are no longer used.",
"namespace": "ETL\\Maintenance",
"class": "ExecuteSql",
"options_class": "MaintenanceOptions",
"sql_file_list": [
"migrations/8.5.1-9.0.0/role-table-cleanup.sql"
],
"endpoints": {
"destination": {
"type": "mysql",
"name": "Logger Database",
"config": "database",
"schema": "moddb"
}
}
}
]
}
8 changes: 0 additions & 8 deletions configuration/etl/etl_action_defs.d/xdb/roles.json

This file was deleted.

9 changes: 0 additions & 9 deletions configuration/etl/etl_data.d/xdb/roles.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- These tables are no longer user and as such are being removed.
DROP TABLE IF EXISTS moddb.UserRoleParameters;
DROP TABLE IF EXISTS moddb.UserRoles;
DROP TABLE IF EXISTS moddb.Roles;
35 changes: 0 additions & 35 deletions configuration/etl/etl_tables.d/xdb/roles.json

This file was deleted.