The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20181121074110_PasteFiles.cs 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace Teknik.Data.Migrations
  4. {
  5. public partial class PasteFiles : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<DateTime>(
  10. name: "ExpireDate",
  11. table: "Uploads",
  12. nullable: true);
  13. migrationBuilder.AddColumn<int>(
  14. name: "MaxDownloads",
  15. table: "Uploads",
  16. nullable: false,
  17. defaultValue: 0);
  18. migrationBuilder.AddColumn<string>(
  19. name: "DeleteKey",
  20. table: "Pastes",
  21. nullable: true);
  22. migrationBuilder.AddColumn<string>(
  23. name: "FileName",
  24. table: "Pastes",
  25. nullable: true);
  26. }
  27. protected override void Down(MigrationBuilder migrationBuilder)
  28. {
  29. migrationBuilder.DropColumn(
  30. name: "ExpireDate",
  31. table: "Uploads");
  32. migrationBuilder.DropColumn(
  33. name: "MaxDownloads",
  34. table: "Uploads");
  35. migrationBuilder.DropColumn(
  36. name: "DeleteKey",
  37. table: "Pastes");
  38. migrationBuilder.DropColumn(
  39. name: "FileName",
  40. table: "Pastes");
  41. }
  42. }
  43. }