20241111170107_ModernHwid.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Content.Server.Database.Migrations.Sqlite
  4. {
  5. /// <inheritdoc />
  6. public partial class ModernHwid : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<int>(
  12. name: "hwid_type",
  13. table: "server_role_ban",
  14. type: "INTEGER",
  15. nullable: true,
  16. defaultValue: 0);
  17. migrationBuilder.AddColumn<int>(
  18. name: "hwid_type",
  19. table: "server_ban",
  20. type: "INTEGER",
  21. nullable: true,
  22. defaultValue: 0);
  23. migrationBuilder.AddColumn<int>(
  24. name: "last_seen_hwid_type",
  25. table: "player",
  26. type: "INTEGER",
  27. nullable: true,
  28. defaultValue: 0);
  29. migrationBuilder.AddColumn<int>(
  30. name: "hwid_type",
  31. table: "connection_log",
  32. type: "INTEGER",
  33. nullable: true,
  34. defaultValue: 0);
  35. }
  36. /// <inheritdoc />
  37. protected override void Down(MigrationBuilder migrationBuilder)
  38. {
  39. migrationBuilder.DropColumn(
  40. name: "hwid_type",
  41. table: "server_role_ban");
  42. migrationBuilder.DropColumn(
  43. name: "hwid_type",
  44. table: "server_ban");
  45. migrationBuilder.DropColumn(
  46. name: "last_seen_hwid_type",
  47. table: "player");
  48. migrationBuilder.DropColumn(
  49. name: "hwid_type",
  50. table: "connection_log");
  51. }
  52. }
  53. }