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.

20190116060104_UploadExpirationSettings.cs 932B

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