Skip to content

Commit

Permalink
create connection between school beacons and proj components
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaberry committed Sep 10, 2024
1 parent fc02bcc commit 1b30ed4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE public.feature_school_beacons(
CREATE TABLE public.feature_school_beacons (
beacon_id text,
knack_id text NOT NULL,
location_name text,
Expand All @@ -20,4 +20,4 @@ ADD CONSTRAINT fk_feature_school_beacons_updated_by FOREIGN KEY (updated_by_user
COMMENT ON CONSTRAINT fk_feature_school_beacons_created_by ON feature_school_beacons IS 'Foreign key constraint linking created_by_user_id to moped_users table.';
COMMENT ON CONSTRAINT fk_feature_school_beacons_updated_by ON feature_school_beacons IS 'Foreign key constraint linking updated_by_user_id to moped_users table.';

INSERT INTO feature_layers (internal_table, reference_layer_primary_key_column) values ('feature_school_beacons', 'beacon_id');
INSERT INTO feature_layers (id, internal_table, reference_layer_primary_key_column) values (6, 'feature_school_beacons', 'beacon_id');
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- set asset layer for school beacon to signals
UPDATE moped_components
SET
asset_feature_layer_id = 3
asset_feature_layer_id = 6
WHERE
component_subtype = 'School Zone Beacon';

0 comments on commit 1b30ed4

Please sign in to comment.