-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AC-1360] Added EF scripts for MySQL, Postgres and Sqlite
- Loading branch information
Showing
6 changed files
with
21 additions
and
0 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
5 changes: 5 additions & 0 deletions
5
util/MySqlMigrations/Scripts/2023-08-03_00_PopulateResellerNames.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,5 @@ | ||
-- Reseller Providers were being created with a NULL value in the `Name` column. | ||
-- This script will populate them with the value from `BusinessName` which was already required. | ||
UPDATE `Provider` | ||
SET `Name` = `BusinessName` | ||
WHERE `Name` IS NULL; |
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
5 changes: 5 additions & 0 deletions
5
util/PostgresMigrations/Scripts/2023-08-03_00_PopulateResellerNames.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,5 @@ | ||
-- Reseller Providers were being created with a NULL value in the "Name" column. | ||
-- This script will populate them with the value from "BusinessName" which was already required. | ||
UPDATE "Provider" | ||
SET "Name" = "BusinessName" | ||
WHERE "Name" IS NULL; |
5 changes: 5 additions & 0 deletions
5
util/SqliteMigrations/Scripts/2023-08-03_00_PopulateResellerNames.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,5 @@ | ||
-- Reseller Providers were being created with a NULL value in the "Name" column. | ||
-- This script will populate them with the value from "BusinessName" which was already required. | ||
UPDATE "Provider" | ||
SET "Name" = "BusinessName" | ||
WHERE "Name" IS NULL; |
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