The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20190804060515_2_5_1_ConfigDBUpdateMigration.cs 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace Teknik.IdentityServer.Data.Migrations.IdentityServer.ConfigurationDb
  3. {
  4. public partial class _2_5_1_ConfigDBUpdateMigration : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AddColumn<bool>(
  9. name: "NonEditable",
  10. table: "IdentityResources",
  11. nullable: false,
  12. defaultValue: false);
  13. migrationBuilder.AddColumn<int>(
  14. name: "DeviceCodeLifetime",
  15. table: "Clients",
  16. nullable: false,
  17. defaultValue: 0);
  18. migrationBuilder.AddColumn<bool>(
  19. name: "NonEditable",
  20. table: "Clients",
  21. nullable: false,
  22. defaultValue: false);
  23. migrationBuilder.AddColumn<string>(
  24. name: "UserCodeType",
  25. table: "Clients",
  26. maxLength: 100,
  27. nullable: true);
  28. migrationBuilder.AddColumn<int>(
  29. name: "UserSsoLifetime",
  30. table: "Clients",
  31. nullable: true);
  32. migrationBuilder.AddColumn<bool>(
  33. name: "NonEditable",
  34. table: "ApiResources",
  35. nullable: false,
  36. defaultValue: false);
  37. }
  38. protected override void Down(MigrationBuilder migrationBuilder)
  39. {
  40. migrationBuilder.DropColumn(
  41. name: "NonEditable",
  42. table: "IdentityResources");
  43. migrationBuilder.DropColumn(
  44. name: "DeviceCodeLifetime",
  45. table: "Clients");
  46. migrationBuilder.DropColumn(
  47. name: "NonEditable",
  48. table: "Clients");
  49. migrationBuilder.DropColumn(
  50. name: "UserCodeType",
  51. table: "Clients");
  52. migrationBuilder.DropColumn(
  53. name: "UserSsoLifetime",
  54. table: "Clients");
  55. migrationBuilder.DropColumn(
  56. name: "NonEditable",
  57. table: "ApiResources");
  58. }
  59. }
  60. }