MIF_E31221222/sigap-website/prisma/migrations
vergiLgood1 e422c59da9 Add crime data CSV files and update database schema
- Added crime summary by type CSV file with district-wise crime statistics.
- Added yearly crime data CSV file with detailed crime statistics per district and year.
- Modified the database schema to include a new column `source_type` in the `crimes` table and a new column `distance` in the `locations` table.
- Created migration to add `location_logs` table for tracking user location data with relevant fields and indices.
- Updated migration to drop the `distance` column and replace it with `distance_from_unit` in the `locations` table.
- Added additional migrations to drop and recreate the `location_logs` table, modify existing columns, and enforce new constraints in the `unit_statistics` and `units` tables.
2025-05-11 14:44:14 +07:00
..
20250423141344_init_migration Add crime data CSV files and update database schema 2025-05-11 14:44:14 +07:00
20250423155055_add_phone_and_create_polres_jemebr feat: enhance crime incidents seeder with year validation and import all-year summaries 2025-04-25 16:58:32 +07:00
20250505171530_delete_phone_field_on_units Refactor seeding scripts to utilize generateIdWithDbCounter for unique ID generation across crime categories, incidents, and units. Implement a new utility function for generating distributed points within district areas to enhance incident location variability. Comment out unnecessary type drops and creations in SQL migration files for clarity. Add migration scripts to drop and re-add the phone field in the units table, ensuring data integrity during schema updates. 2025-05-06 01:21:04 +07:00
20250505171603_add_field_phone_on_units refactor: streamline SQL migration scripts and enhance schema management for units and incidents 2025-05-06 15:37:07 +07:00
20250506075152_add_field_phone refactor: streamline SQL migration scripts and enhance schema management for units and incidents 2025-05-06 15:37:07 +07:00
20250506080119_change_id_to_code_unit refactor: streamline SQL migration scripts and enhance schema management for units and incidents 2025-05-06 15:37:07 +07:00
20250506080400_make_year_optional_in_crimes refactor: streamline SQL migration scripts and enhance schema management for units and incidents 2025-05-06 15:37:07 +07:00
20250506082733_make_code_unit_to_primary_key refactor: streamline SQL migration scripts and enhance schema management for units and incidents 2025-05-06 15:37:07 +07:00
20250510020457_add_source_type_and_distance_field Add crime data CSV files and update database schema 2025-05-11 14:44:14 +07:00
20250511072008_add_location_logs Add crime data CSV files and update database schema 2025-05-11 14:44:14 +07:00
20250511072210_ Add crime data CSV files and update database schema 2025-05-11 14:44:14 +07:00
20250511074218_ Add crime data CSV files and update database schema 2025-05-11 14:44:14 +07:00
migration_lock.toml feat: add initial data seeding for resources, roles, demographics, crime incidents, and geographic data 2025-04-25 02:04:04 +07:00