diff --git a/app/lib/feature/earthquake_history/ui/components/earthquake_history_list_tile.dart b/app/lib/feature/earthquake_history/ui/components/earthquake_history_list_tile.dart index 0f36477e..cdd3569a 100644 --- a/app/lib/feature/earthquake_history/ui/components/earthquake_history_list_tile.dart +++ b/app/lib/feature/earthquake_history/ui/components/earthquake_history_list_tile.dart @@ -14,7 +14,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:intl/intl.dart'; import 'package:jma_code_table_types/jma_code_table.pb.dart'; - class EarthquakeHistoryListTile extends HookConsumerWidget { const EarthquakeHistoryListTile({ required this.item, diff --git a/app/lib/feature/earthquake_history_early/ui/components/earthquake_history_early_not_found.dart b/app/lib/feature/earthquake_history_early/ui/components/earthquake_history_early_not_found.dart index 16dc4f26..6755dbfa 100644 --- a/app/lib/feature/earthquake_history_early/ui/components/earthquake_history_early_not_found.dart +++ b/app/lib/feature/earthquake_history_early/ui/components/earthquake_history_early_not_found.dart @@ -29,8 +29,6 @@ class EarthquakeHistoryEarlyNotFound extends StatelessWidget { } } - - class EarthquakeHistoryEarlyAllFetched extends StatelessWidget { const EarthquakeHistoryEarlyAllFetched({super.key}); diff --git a/supabase/migrations/20240802153149_add_earthquake_early_regions.sql b/supabase/migrations/20240802153149_add_earthquake_early_regions.sql index 5dc8be94..ed2000bc 100644 --- a/supabase/migrations/20240802153149_add_earthquake_early_regions.sql +++ b/supabase/migrations/20240802153149_add_earthquake_early_regions.sql @@ -1,14 +1,14 @@ CREATE TABLE earthquake_early_regions ( - id TEXT NOT NULL REFERENCES earthquake_early (id), - region_id TEXT NOT NULL CHECK (region_id ~ '^[0-9]{2}$'), - max_intensity jma_intensity NOT NULL, - PRIMARY KEY (id, region_id) + id text NOT NULL REFERENCES earthquake_early (id), + region_id text NOT NULL CHECK (region_id ~ '^[0-9]{2}$'), + max_intensity jma_intensity NOT NULL, + PRIMARY KEY (id, region_id) ); CREATE INDEX earthquake_early_regions_max_intensity_region_idx ON earthquake_early_regions (max_intensity, region_id); ALTER TABLE earthquake_early_regions ENABLE ROW LEVEL SECURITY; -CREATE POLICY select_earthquake_early_regions ON earthquake_early_regions FOR -SELECT - USING (true); +CREATE POLICY select_earthquake_early_regions ON earthquake_early_regions + FOR SELECT + USING (TRUE);