-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rbiyovskiy/785 codeficator add ordering and city districts to the res…
…ult of the search request (#787) * CodeficatorCategory moved to the Common project * Model, DTO and filter changes * service and repository changes * test changes * Codeficator Order update script * Migration * sonar bugs fixed * review remarks fixed * Migration CodeficatorAddOrder deleted
- Loading branch information
1 parent
de85a0a
commit f40c2ed
Showing
15 changed files
with
159 additions
and
78 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
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
20 changes: 20 additions & 0 deletions
20
OutOfSchool/OutOfSchool.DataAccess/Repository/Config/CodeficatorUpdateOrder.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,20 @@ | ||
USE out_of_school; | ||
|
||
SET SQL_SAFE_UPDATES = 0; | ||
|
||
UPDATE `codeficators` SET `Order` = 120 WHERE `Category` = 'O'; | ||
UPDATE `codeficators` SET `Order` = 110 WHERE `Category` = 'P'; | ||
UPDATE `codeficators` SET `Order` = 100 WHERE `Category` = 'H'; | ||
UPDATE `codeficators` SET `Order` = 80 WHERE `Category` = 'X'; | ||
UPDATE `codeficators` SET `Order` = 70 WHERE `Category` = 'C'; | ||
UPDATE `codeficators` SET `Order` = 60 WHERE `Category` = 'T'; | ||
UPDATE `codeficators` SET `Order` = 50 WHERE `Category` = 'M'; | ||
UPDATE `codeficators` SET `Order` = 40 WHERE `Category` = 'B'; | ||
|
||
UPDATE `codeficators` SET `Order` = 30 WHERE Id in (4506,4791,6006,6240,6752,19191,31748) AND `Category` IN ('M','K'); | ||
UPDATE `codeficators` SET `Order` = 20 WHERE Id in (1378,3917,9335,10720,21800,24274,28289,30145) AND `Category` = 'M'; | ||
UPDATE `codeficators` SET `Order` = 10 WHERE Id in (1099,4090,6193,7385,9793,13117,13960,15447,17423,18415,20675,23241,26238,27209,29660,31734,31737) AND `Category` IN ('M','K'); | ||
|
||
SELECT * FROM `out_of_school`.`codeficators` WHERE `Order` = 0; | ||
|
||
SET SQL_SAFE_UPDATES = 1; |
Oops, something went wrong.