-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avenmia/fixpolis survey filter (#221)
* Updating prisma schema to expect search term * Updating survey rules and readme to add new Search term * Adding new database migration * Updating data import values and documentation * Storing island and county in planning region * Fixing survey filter to search by term * Fixing error * Fixing data import instructions * Removing todo statement
- Loading branch information
Showing
9 changed files
with
77 additions
and
101 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -1,16 +1,5 @@ | ||
id,surveyId,questionId,requiredAnswerId | ||
1,6xnxstpwcb,16,72 | ||
2,6xnxstpwcb,16,73 | ||
3,6xnxstpwcb,16,74 | ||
4,6xnxstpwcb,16,75 | ||
5,6xnxstpwcb,16,76 | ||
6,6xnxstpwcb,16,77 | ||
7,6xnxstpwcb,16,78 | ||
8,6xnxstpwcb,16,79 | ||
9,6xnxstpwcb,16,100 | ||
10,6xnxstpwcb,16,101 | ||
11,6xnxstpwcb,16,102 | ||
12,6xnxstpwcb,16,115 | ||
13,6xnxstpwcb,16,116 | ||
14,6xnxstpwcb,16,117 | ||
15,6xnxstpwcb,16,118 | ||
id,surveyId,search | ||
1,6xnxstpwcb,Maui | ||
2,6xnxstpwcb,Honolulu | ||
3,6xnxstpwcb,East Kauai | ||
3,6xnxstpwcb,DHHL |
29 changes: 29 additions & 0 deletions
29
prisma/migrations/20240824214452_add_search_to_survey_rules/migration.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,29 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `questionId` on the `SurveyRules` table. All the data in the column will be lost. | ||
- You are about to drop the column `requiredAnswerId` on the `SurveyRules` table. All the data in the column will be lost. | ||
- Added the required column `search` to the `SurveyRules` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
BEGIN TRY | ||
|
||
BEGIN TRAN; | ||
|
||
-- AlterTable | ||
ALTER TABLE [dbo].[SurveyRules] DROP COLUMN [questionId], | ||
[requiredAnswerId]; | ||
ALTER TABLE [dbo].[SurveyRules] ADD [search] NVARCHAR(1000) NOT NULL; | ||
|
||
COMMIT TRAN; | ||
|
||
END TRY | ||
BEGIN CATCH | ||
|
||
IF @@TRANCOUNT > 0 | ||
BEGIN | ||
ROLLBACK TRAN; | ||
END; | ||
THROW | ||
|
||
END CATCH |
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
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
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