-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy path20190726221912_AddedCurrencySetting.cs
47 lines (41 loc) · 1.67 KB
/
20190726221912_AddedCurrencySetting.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using Microsoft.EntityFrameworkCore.Migrations;
namespace SimplCommerce.Db.MsSql.Migrations
{
public partial class AddedCurrencySetting : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Core_AppSetting",
keyColumn: "Id",
keyValue: "Global.DefaultCultureUI",
column: "Module",
value: "Core");
migrationBuilder.InsertData(
table: "Core_AppSetting",
columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" },
values: new object[] { "Global.CurrencyCulture", true, "Core", "en-US" });
migrationBuilder.InsertData(
table: "Core_AppSetting",
columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" },
values: new object[] { "Global.CurrencyDecimalPlace", true, "Core", "2" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Core_AppSetting",
keyColumn: "Id",
keyValue: "Global.CurrencyCulture");
migrationBuilder.DeleteData(
table: "Core_AppSetting",
keyColumn: "Id",
keyValue: "Global.CurrencyDecimalPlace");
migrationBuilder.UpdateData(
table: "Core_AppSetting",
keyColumn: "Id",
keyValue: "Global.DefaultCultureUI",
column: "Module",
value: "Global");
}
}
}