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.

20190117075302_ModifiedUploadSettings.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace Teknik.Data.Migrations
  3. {
  4. public partial class ModifiedUploadSettings : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.DropColumn(
  9. name: "ExpireLength",
  10. table: "Users");
  11. migrationBuilder.RenameColumn(
  12. name: "ExpireUnit",
  13. table: "Users",
  14. newName: "ExpirationLength");
  15. migrationBuilder.AddColumn<int>(
  16. name: "ExpirationUnit",
  17. table: "Users",
  18. nullable: false,
  19. defaultValue: 0);
  20. }
  21. protected override void Down(MigrationBuilder migrationBuilder)
  22. {
  23. migrationBuilder.DropColumn(
  24. name: "ExpirationUnit",
  25. table: "Users");
  26. migrationBuilder.RenameColumn(
  27. name: "ExpirationLength",
  28. table: "Users",
  29. newName: "ExpireUnit");
  30. migrationBuilder.AddColumn<int>(
  31. name: "ExpireLength",
  32. table: "Users",
  33. nullable: false,
  34. defaultValue: 0);
  35. }
  36. }
  37. }