tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20230614054537_SLRenameHeartbeatsToHealthChecks.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.RenameColumn(
18 name: "HeartbeatSeconds",
19 table: "DreamDaemonSettings",
20 newName: "HealthCheckSeconds");
21
22 migrationBuilder.RenameColumn(
23 name: "DumpOnHeartbeatRestart",
24 table: "DreamDaemonSettings",
25 newName: "DumpOnHealthCheckRestart");
26 }
27
29 protected override void Down(MigrationBuilder migrationBuilder)
30 {
31 ArgumentNullException.ThrowIfNull(migrationBuilder);
32
33 migrationBuilder.RenameColumn(
34 name: "HealthCheckSeconds",
35 table: "DreamDaemonSettings",
36 newName: "HeartbeatSeconds");
37
38 migrationBuilder.RenameColumn(
39 name: "DumpOnHealthCheckRestart",
40 table: "DreamDaemonSettings",
41 newName: "DumpOnHeartbeatRestart");
42 }
43 }
44}