-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1435 from cityofaustin/13602_multiple_nodata_options
Multiple NO DATA options in Body Style edit drop down
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
atd-vzd/migrations/default/1712941514048_delete_no_data_option/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO public.atd_txdot__veh_body_styl_lkp(veh_body_styl_id, veh_body_styl_desc) VALUES (-1, 'NO DATA'); |
4 changes: 4 additions & 0 deletions
4
atd-vzd/migrations/default/1712941514048_delete_no_data_option/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Remove the custom "NO DATA" lookup option, instead we should just use null to mean null | ||
DELETE FROM public.atd_txdot__veh_body_styl_lkp WHERE veh_body_styl_id = -1; | ||
|
||
UPDATE public.atd_txdot_units SET veh_body_styl_id = null WHERE veh_body_styl_id = -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters