20240606065731_RemoveLastReadRules.cs 795 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Content.Server.Database.Migrations.Postgres
  5. {
  6. /// <inheritdoc />
  7. public partial class RemoveLastReadRules : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.DropColumn(
  13. name: "last_read_rules",
  14. table: "player");
  15. }
  16. /// <inheritdoc />
  17. protected override void Down(MigrationBuilder migrationBuilder)
  18. {
  19. migrationBuilder.AddColumn<DateTime>(
  20. name: "last_read_rules",
  21. table: "player",
  22. type: "timestamp with time zone",
  23. nullable: true);
  24. }
  25. }
  26. }