nidus-sync/db/migrations
Eli Ribble a82b2b8cb8
Add new communication table
It allows us to track when communication tasks are complete, and
information about how they were completed, separate from the entries
that created the tasks in the first place (reports, emails, texts)
2026-05-01 15:13:05 +00:00
..
00001_initial.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00002_password.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00003_add_session.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00004_add_oauth_token.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00005_add_arcgis_org.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00006_add_oauth_refresh_expires.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00007_add_fieldseeker.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00008_add_sync.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00009_add_oauth_invalidated.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00010_add_notification.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00011_fix_fieldseeker.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00012_notification_unique_link.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00013_fs_globalid_not_null.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00014_h3_aggregation.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00015_fs_geometry.sql Move database logic into separate subdirectory 2025-11-24 18:08:31 +00:00
00016_fieldseeker_schema.sql Initially made it through full update with new fieldseeker schema 2025-12-05 23:11:57 +00:00
00017_fieldseeker_inserts.sql Initially made it through full update with new fieldseeker schema 2025-12-05 23:11:57 +00:00
00018_nidus_notes.sql Add partial creation function for note_audio 2025-12-21 08:58:23 -07:00
00019_remove_fieldseeker_v1.sql Remove old FieldSeeker tables, use v2 generated tables. 2025-12-24 17:58:08 -07:00
00020_add_org_id_fieldseeker_v2.sql Remove old FieldSeeker tables, use v2 generated tables. 2025-12-24 17:58:08 -07:00
00021_globalid_not_null.sql Add missing migration for globalid not null 2026-01-06 02:15:35 +00:00
00022_h3cell_fieldseeker_tables.sql Add precalc h3 cells to fieldseeker tables 2026-01-05 23:25:16 +00:00
00023_user_org_not_null.sql Always include an organization for every user 2026-01-06 15:06:16 +00:00
00024_publicreport_quick.sql Finish green pool report submission 2026-01-09 19:43:19 +00:00
00025_publicreport_nuisance.sql Finish green pool report submission 2026-01-09 19:43:19 +00:00
00026_publicreport_pool.sql Finish green pool report submission 2026-01-09 19:43:19 +00:00
00027_fix_fieldseeker_pkeys.sql Make fieldseeker tables key on globalid, version 2026-01-13 04:16:24 +00:00
00028_fieldseeker_function_globalid.sql Make fieldseeker tables key on globalid, version 2026-01-13 04:16:24 +00:00
00029_publicreport_locations.sql Switch to pulling data from public reports on search 2026-01-13 18:33:12 +00:00
00030_organization_name_not_null.sql Make organization.name not-nullable, consolidate org in dash context 2026-01-14 21:50:47 +00:00
00031_arcgis_user.sql Remove bob submodule, add arcgis.user 2026-01-15 19:20:39 +00:00
00032_h3_aggregation_add_trap.sql Add aggregation map for traps 2026-01-15 20:25:00 +00:00
00033_h3cell_fieldseeker_traplocation.sql Add aggregation map for traps 2026-01-15 20:25:00 +00:00
00034_district.sql Move imported districts to its own schema, add ref from organization 2026-01-16 14:43:26 +00:00
00035_photo_content_type.sql Extract EXIF data from images 2026-01-16 20:16:58 +00:00
00036_comms.sql Overhaul system for handling text messaging 2026-01-21 03:30:03 +00:00
00037_publicreport_district.sql Bunch of work around assigning reports to districts 2026-01-22 03:27:32 +00:00
00038_organization_logo.sql Bunch of work around assigning reports to districts 2026-01-22 03:27:32 +00:00
00039_email_template.sql Overhaul email sending system 2026-01-23 20:36:16 +00:00
00040_organization_slug.sql Render organization logos by 'slug' 2026-01-24 19:13:55 +00:00
00041_text_log_overhaul.sql Add ability to delay text message sending 2026-01-26 16:10:30 +00:00
00042_text_subscribe_nullable.sql Make username unique, make is_subscribed nullable 2026-01-26 21:11:31 +00:00
00043_username_unique.sql Make username unique, make is_subscribed nullable 2026-01-26 21:11:31 +00:00
00044_comms_text_origin_user.sql Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
00045_comms_text_sid.sql Add ability to make LLM agent forget the conversation history 2026-01-27 18:44:02 +00:00
00046_comms_text_job_source.sql Add support for continuing background text jobs on subscription 2026-01-29 22:20:03 +00:00
00047_public_nuisance_pruning.sql Prune data layer on nuisance report 2026-01-31 16:14:19 +00:00
00048_comms_phone_subscribed.sql Create report platform layer 2026-01-31 20:08:08 +00:00
00049_publicreport_nuisance_h3cell.sql Remove erroneous organization_id from migration 2026-02-02 02:23:55 +00:00
00051_messagetypeemail_report_notification.sql Fix email sending for report notification confirmation 2026-02-02 17:00:48 +00:00
00052_comms_email_log_notnulls.sql Make 'view in browser' on emails work correctly 2026-02-02 19:34:37 +00:00
00053_nuisance_more_inputs.sql Update storage and display of nuisance report 2026-02-05 16:56:36 +00:00
00054_water_more_inputs.sql Properly record and display pool reports 2026-02-05 21:43:29 +00:00
00055_publicreport_notification_tables.sql Alter report submission page to request reporter name and consent 2026-02-06 15:39:49 +00:00
00056_publicreport_consent.sql Alter report submission page to request reporter name and consent 2026-02-06 15:39:49 +00:00
00057_csv_pool_upload.sql Fix missing enum value for pool condition 2026-03-04 04:02:55 +00:00
00058_district_subscription.sql Modify email subscription table to drop district ID 2026-02-10 05:12:42 +00:00
00059_subscription_drop_district.sql Modify email subscription table to drop district ID 2026-02-10 05:12:42 +00:00
00060_fieldseeker_traplocation_drop_cols.sql Remove fields from fieldseeker 2026-02-10 18:55:28 +00:00
00061_oauth_token_created.sql Show actual information on oauth integration setting page 2026-02-13 21:14:46 +00:00
00062_fileupload_pool_rebuild.sql Fix up attaching errors to rows 2026-02-16 17:59:18 +00:00
00064_organization_eats_district.sql Move data out of import.district and in to organization 2026-02-17 05:33:12 +00:00
00065_user_roles.sql Add user account roles 2026-02-18 07:03:32 +00:00
00066_pool_upload_enums.sql Insert enum value rather than renaming 2026-03-04 12:12:40 +00:00
00067_org_centroid_coords.sql Add centroid information when geocoding 2026-02-25 16:08:32 +00:00
00068_site.sql Add data for handling parcel images 2026-02-28 22:54:39 +00:00
00069_arcgis_layer.sql Add data for handling parcel images 2026-02-28 22:54:39 +00:00
00070_geojsontogeom.sql Add data for handling parcel images 2026-02-28 22:54:39 +00:00
00071_org_state.sql Add data for handling parcel images 2026-02-28 22:54:39 +00:00
00072_mailer.sql Add data for handling parcel images 2026-02-28 22:54:39 +00:00
00073_arcgis_mapping_service.sql Add data for handling parcel images 2026-02-28 22:54:39 +00:00
00074_fileupload_pool_aerial_services.sql Split out ability to upload flyover data from pool uploads 2026-03-02 18:49:02 +00:00
00075_address_parcel_geom_index.sql Split out ability to upload flyover data from pool uploads 2026-03-02 18:49:02 +00:00
00076_func_gen_alpha_code.sql Split out ability to upload flyover data from pool uploads 2026-03-02 18:49:02 +00:00
00077_mailer_rework.sql Rework mailer database schema, add UUID to mailers 2026-03-02 23:27:55 +00:00
00078_address_region.sql Add region (state) to address 2026-03-03 20:27:12 +00:00
00079_merge_pool_upload_row_types.sql Merge aerial flyover and pool CSV row datatypes 2026-03-04 14:52:34 +00:00
00080_signal.sql Relate compliance report requests through leads 2026-03-05 01:22:21 +00:00
00081_file_status_committing.sql Push geocoding down a layer 2026-03-04 18:29:52 +00:00
00082_address_number_text.sql Push geocoding down a layer 2026-03-04 18:29:52 +00:00
00083_drop_pool_organization_id.sql Remove organization from fileupload.pool table, fix in district logic 2026-03-04 20:59:57 +00:00
00084_lead.sql Relate compliance report requests through leads 2026-03-05 01:22:21 +00:00
00085_file_committer.sql Relate compliance report requests through leads 2026-03-05 01:22:21 +00:00
00086_drop_fileupload_pool_condition.sql Relate compliance report requests through leads 2026-03-05 01:22:21 +00:00
00087_site_parcel_nullable.sql Make parcels attached to addresses optional 2026-03-05 02:30:12 +00:00
00088_pool_geometry.sql Add specific location via geometry column on pool 2026-03-05 18:38:22 +00:00
00089_feature.sql Remove a bunch of generated bob, add feature and review tasks 2026-03-06 18:56:30 +00:00
00090_review_task.sql Rename address.geom to address.location 2026-03-06 19:46:41 +00:00
00091_address_location.sql Rename address.geom to address.location 2026-03-06 19:46:41 +00:00
00092_tile_cache.sql Add tile cache and relationship to organization map layer 2026-03-06 21:13:32 +00:00
00093_publicreport_location_type.sql Migrate public report classes to point location 2026-03-08 02:43:00 +00:00
00094_publicreport_address_number.sql Add address number to public reports 2026-03-08 03:16:58 +00:00
00095_publicreport_image_location_type.sql Move publicreport.image to have a point location 2026-03-09 00:48:44 +00:00
00096_publicreport_address_locality.sql Rework publicreport addressing 2026-03-09 18:02:22 +00:00
00097_accuracytype_enum.sql Add 'centroid' accuracy from the database 2026-03-09 18:27:47 +00:00
00098_remove_exif_quotes.sql Add migration to remove extra quotes from EXIF data 2026-03-10 16:18:27 +00:00
00099_publicreport_location_water.sql Fix map display on RMO status-by-id page 2026-03-11 14:59:04 +00:00
00100_tile_empty.sql Save tiles to the database to make empty tile load faster 2026-03-11 17:01:47 +00:00
00101_review_task_pool_condition.sql Add resolution for tracking review_task discards 2026-03-11 22:49:55 +00:00
00102_feature_location.sql Add resolution for tracking review_task discards 2026-03-11 22:49:55 +00:00
00103_site_version.sql Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
00104_publicreport_status_invalidated.sql Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
00105_publicreport_organization_report_count.sql Add new view for report counts and invalidated status 2026-03-12 15:27:36 +00:00
00106_publicreport_location_org_id.sql Make lead creation and invalidation for public reports work 2026-03-14 01:14:30 +00:00
00107_lead_type_publicreport.sql Make lead creation and invalidation for public reports work 2026-03-14 01:14:30 +00:00
00108_organization_catchall.sql Create district catch-all, make organization on public reports not null 2026-03-14 15:53:16 +00:00
00109_publicreport_reporter_contact.sql Initial creation of endpoint to send messages to public reporters 2026-03-16 00:20:41 +00:00
00110_job.sql Overhaul publicreport storage layer, create unified tables 2026-03-18 15:36:20 +00:00
00111_note_audio_id.sql Create generic backend process, fix background interdependencies 2026-03-16 19:52:29 +00:00
00112_unify_publicreport.sql Auto-generate report IDs, join on public_id. 2026-03-18 20:36:58 +00:00
00113_report_text.sql Overhaul publicreport storage layer, create unified tables 2026-03-18 15:36:20 +00:00
00114_publicreport_report_log.sql Add DB model for publicreport logs 2026-03-18 17:32:06 +00:00
00115_publicreport_reporttype.sql Fix publicreport creation 2026-03-18 18:45:18 +00:00
00116_drop_publicreport_report_location.sql Remove report_location view, add lat lng to report table 2026-03-18 18:55:50 +00:00
00117_publicreport_report_location_latlng.sql Remove report_location view, add lat lng to report table 2026-03-18 18:55:50 +00:00
00118_impersonation_log.sql Create a log for impersonation activities 2026-03-19 03:19:03 +00:00
00119_signal_from_publicreport.sql Make signals, not leads, from public reports. 2026-03-19 17:41:56 +00:00
00120_signal_location.sql Add location to signal 2026-03-19 20:49:53 +00:00
00121_note_image_id.sql Emit events on note creation 2026-03-19 21:29:55 +00:00
00122_address_location_xy.sql Add location x and y to address table 2026-03-20 17:59:13 +00:00
00123_signal_drop_title.sql Make signals include the object they are attached to (pool, report) 2026-03-21 01:19:36 +00:00
00124_signal_publicreport_pool.sql Make signals include the object they are attached to (pool, report) 2026-03-21 01:19:36 +00:00
00125_user_props.sql Make it possible to change more user fields 2026-04-02 14:22:45 +00:00
00126_stadia.sql Add cache for all stadia requests 2026-04-06 22:36:25 +00:00
00127_publicreport_address_gid.sql Add address GID to public report 2026-04-08 14:40:27 +00:00
00128_publicreport_compliance.sql Begin work on saving compliance report 2026-04-10 00:56:51 +00:00
00129_address_country_text.sql Store addresses on every geocode 2026-04-10 22:32:40 +00:00
00130_address_gid_unique.sql Store addresses on every geocode 2026-04-10 22:32:40 +00:00
00131_publicreport_address_consolidation.sql Remove now-empty report address fields 2026-04-12 18:33:41 +00:00
00132_publicreport_reporttype_compliance.sql Add proper compliance report type 2026-04-13 16:42:29 +00:00
00133_comms_phone_can_text.sql Make it possible to save SMS support status on phone record 2026-04-13 22:23:29 +00:00
00134_address_location_names.sql Fix address lat/lng location names, populate in report response 2026-04-14 15:43:49 +00:00
00135_fileupload_file_error.sql Add error display to file upload 2026-04-15 19:02:25 +00:00
00136_fileupload_pool_address.sql Save address IDs when doing pool geocoding 2026-04-15 20:29:42 +00:00
00137_feature_location.sql Start wiring together request for a mailer to database 2026-04-16 10:15:28 +00:00
00138_jobtype_compliance_mailer_send.sql Add missing files in last two commits 2026-04-16 17:15:44 +00:00
00139_organization_lob_address.sql Add first draft of mailer integration 2026-04-16 19:49:18 +00:00
00140_comms_mailer_external_id.sql Add first draft of mailer integration 2026-04-16 19:49:18 +00:00
00141_compliance_report_request_mailer_id.sql Add first draft of mailer integration 2026-04-16 19:49:18 +00:00
00142_tile_image_provider.sql Add support for satellite tiles, with caching 2026-04-17 17:47:38 +00:00
00143_tile_service_stadia.sql Add support for satellite tiles, with caching 2026-04-17 17:47:38 +00:00
00144_lob_events.sql Save all lob events to the database 2026-04-21 22:24:12 +00:00
00145_publicerport_water_duration.sql Remove hidden water inputs, add missing duration input 2026-04-24 22:23:52 +00:00
00146_publicreport_compliance_submitted.sql Add 'submitted' field to compliance reports 2026-04-27 16:23:16 +00:00
00147_communication.sql Add new communication table 2026-05-01 15:13:05 +00:00
goose.sh Make goose.sh callable 2025-12-18 03:37:07 -07:00