1
0

20220326104908_UploadedResourcesLog.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Content.Server.Database.Migrations.Sqlite
  5. {
  6. public partial class UploadedResourcesLog : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "uploaded_resource_log",
  12. columns: table => new
  13. {
  14. uploaded_resource_log_id = table.Column<int>(type: "INTEGER", nullable: false)
  15. .Annotation("Sqlite:Autoincrement", true),
  16. date = table.Column<DateTime>(type: "TEXT", nullable: false),
  17. user_id = table.Column<Guid>(type: "TEXT", nullable: false),
  18. path = table.Column<string>(type: "TEXT", nullable: false),
  19. data = table.Column<byte[]>(type: "BLOB", nullable: false)
  20. },
  21. constraints: table =>
  22. {
  23. table.PrimaryKey("PK_uploaded_resource_log", x => x.uploaded_resource_log_id);
  24. });
  25. }
  26. protected override void Down(MigrationBuilder migrationBuilder)
  27. {
  28. migrationBuilder.DropTable(
  29. name: "uploaded_resource_log");
  30. }
  31. }
  32. }