From 3114e2eb04c1633e956a4b45db5e75ecc6b3f027 Mon Sep 17 00:00:00 2001 From: chiaberry Date: Fri, 27 Sep 2024 12:48:04 -0500 Subject: [PATCH 1/2] rename school beacon component --- .../1727450092173_rename-school-beacon-component/down.sql | 1 + .../1727450092173_rename-school-beacon-component/up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 moped-database/migrations/1727450092173_rename-school-beacon-component/down.sql create mode 100644 moped-database/migrations/1727450092173_rename-school-beacon-component/up.sql diff --git a/moped-database/migrations/1727450092173_rename-school-beacon-component/down.sql b/moped-database/migrations/1727450092173_rename-school-beacon-component/down.sql new file mode 100644 index 0000000000..b65fe7465e --- /dev/null +++ b/moped-database/migrations/1727450092173_rename-school-beacon-component/down.sql @@ -0,0 +1 @@ +UPDATE moped_components SET component_name = 'Signal', component_subtype = 'School Zone Beacon' WHERE component_id = 39 diff --git a/moped-database/migrations/1727450092173_rename-school-beacon-component/up.sql b/moped-database/migrations/1727450092173_rename-school-beacon-component/up.sql new file mode 100644 index 0000000000..4df0a63435 --- /dev/null +++ b/moped-database/migrations/1727450092173_rename-school-beacon-component/up.sql @@ -0,0 +1 @@ +UPDATE moped_components SET component_name = 'Beacon', component_subtype = 'School Zone' WHERE component_id = 39 From 4ce0cd42d50054d1e63acfb16ef6f9189de38a48 Mon Sep 17 00:00:00 2001 From: chiaberry Date: Fri, 27 Sep 2024 14:51:39 -0500 Subject: [PATCH 2/2] remove delete permissions for feature tables --- moped-database/metadata/tables.yaml | 35 ----------------------------- 1 file changed, 35 deletions(-) diff --git a/moped-database/metadata/tables.yaml b/moped-database/metadata/tables.yaml index 92f5e640f5..132ca59054 100644 --- a/moped-database/metadata/tables.yaml +++ b/moped-database/metadata/tables.yaml @@ -432,13 +432,6 @@ check: {} set: updated_by_user_id: x-hasura-user-db-id - delete_permissions: - - role: moped-admin - permission: - filter: {} - - role: moped-editor - permission: - filter: {} event_triggers: - name: activity_log_feature_drawn_lines definition: @@ -583,13 +576,6 @@ check: {} set: updated_by_user_id: x-hasura-user-db-id - delete_permissions: - - role: moped-admin - permission: - filter: {} - - role: moped-editor - permission: - filter: {} event_triggers: - name: activity_log_feature_drawn_points definition: @@ -734,13 +720,6 @@ check: {} set: updated_by_user_id: x-hasura-user-db-id - delete_permissions: - - role: moped-admin - permission: - filter: {} - - role: moped-editor - permission: - filter: {} event_triggers: - name: activity_log_feature_intersections definition: @@ -1103,13 +1082,6 @@ check: {} set: updated_by_user_id: x-hasura-user-db-id - delete_permissions: - - role: moped-admin - permission: - filter: {} - - role: moped-editor - permission: - filter: {} event_triggers: - name: activity_log_feature_signals definition: @@ -1292,13 +1264,6 @@ check: {} set: updated_by_user_id: x-hasura-user-db-id - delete_permissions: - - role: moped-admin - permission: - filter: {} - - role: moped-editor - permission: - filter: {} event_triggers: - name: activity_log_feature_street_segments definition: