MIF_E31221222/sigap-website/prisma/migrations
vergiLgood1 77c865958a feat: Add crime data JSON and district center data for crime incidents
feat: Update database schema to allow nullable year in crimes table

feat: Create test table for future use in migrations

feat: Add crime_cleared column to crimes table and drop test table

feat: Add city_id column to units table and adjust district_id constraints

feat: Add phone column to units table

feat: Add avg_crime column to crimes table

feat: Implement seeder for crime incidents with detailed mock data generation

feat: Add trigger and function for calculating distance to district's police unit
2025-05-12 08:17:26 +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
20250511074520_make_year_nullable feat: Add crime data JSON and district center data for crime incidents 2025-05-12 08:17:26 +07:00
20250511103440_test_table feat: Add crime data JSON and district center data for crime incidents 2025-05-12 08:17:26 +07:00
20250511105354_add_crime_cleared_to_crimes_table feat: Add crime data JSON and district center data for crime incidents 2025-05-12 08:17:26 +07:00
20250511105911_add_city_id_to_units feat: Add crime data JSON and district center data for crime incidents 2025-05-12 08:17:26 +07:00
20250511110222_add_phone_on_units feat: Add crime data JSON and district center data for crime incidents 2025-05-12 08:17:26 +07:00
20250511222953_add_avg_crime_on_crimes feat: Add crime data JSON and district center data for crime incidents 2025-05-12 08:17:26 +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