Skip to content

Commit

Permalink
Merge pull request #1360 from ryanrath/remove_roles_user_roles
Browse files Browse the repository at this point in the history
Finally removing Roles / UserRole tables
  • Loading branch information
ryanrath authored Jun 29, 2020
2 parents 58a8718 + 209fe05 commit 98489a4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 65 deletions.
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.

0 comments on commit 98489a4

Please sign in to comment.