tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20210112154123_MYAddRevInfoTimestamp.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
10 public partial class MYAddRevInfoTimestamp : Migration
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.AddColumn<DateTimeOffset>(
18 name: "Timestamp",
19 table: "RevisionInformations",
20 nullable: false,
21 defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
22 }
23
25 protected override void Down(MigrationBuilder migrationBuilder)
26 {
27 ArgumentNullException.ThrowIfNull(migrationBuilder);
28
29 migrationBuilder.DropColumn(
30 name: "Timestamp",
31 table: "RevisionInformations");
32 }
33 }
34}
Add the Timestamp column to RevisionInformations for MYSQL.