20260112041724_Migration_20260112121714.cs
1.78 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Rcs.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class Migration_20260112121714 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "points_auto_sync",
table: "maps",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "points_sync_interval",
table: "maps",
type: "integer",
nullable: false,
defaultValue: 60);
migrationBuilder.AddColumn<bool>(
name: "resource_auto_sync",
table: "maps",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "resource_sync_interval",
table: "maps",
type: "integer",
nullable: false,
defaultValue: 60);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "points_auto_sync",
table: "maps");
migrationBuilder.DropColumn(
name: "points_sync_interval",
table: "maps");
migrationBuilder.DropColumn(
name: "resource_auto_sync",
table: "maps");
migrationBuilder.DropColumn(
name: "resource_sync_interval",
table: "maps");
}
}
}