1
0

20210321225959_HWID.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace Content.Server.Database.Migrations.Sqlite
  3. {
  4. public partial class HWID : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AddColumn<byte[]>(
  9. name: "last_seen_hwid",
  10. table: "player",
  11. type: "BLOB",
  12. nullable: true);
  13. migrationBuilder.AddColumn<byte[]>(
  14. name: "hwid",
  15. table: "connection_log",
  16. type: "BLOB",
  17. nullable: true);
  18. migrationBuilder.AddColumn<byte[]>(
  19. name: "hwid",
  20. table: "ban",
  21. type: "BLOB",
  22. nullable: true);
  23. }
  24. protected override void Down(MigrationBuilder migrationBuilder)
  25. {
  26. migrationBuilder.DropColumn(
  27. name: "last_seen_hwid",
  28. table: "player");
  29. migrationBuilder.DropColumn(
  30. name: "hwid",
  31. table: "connection_log");
  32. migrationBuilder.DropColumn(
  33. name: "hwid",
  34. table: "ban");
  35. }
  36. }
  37. }