File upload frontpage and download decryption

This commit is contained in:
2025-07-26 03:11:42 +08:00
parent 0486c0d0e5
commit f1867e7916
19 changed files with 1051 additions and 229 deletions

View File

@@ -0,0 +1,73 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DysonNetwork.Drive.Migrations
{
/// <inheritdoc />
public partial class EnrichCloudPoolConfigure : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "allow_anonymous",
table: "pools",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "allow_encryption",
table: "pools",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "no_metadata",
table: "pools",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "no_optimization",
table: "pools",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "require_privilege",
table: "pools",
type: "integer",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "allow_anonymous",
table: "pools");
migrationBuilder.DropColumn(
name: "allow_encryption",
table: "pools");
migrationBuilder.DropColumn(
name: "no_metadata",
table: "pools");
migrationBuilder.DropColumn(
name: "no_optimization",
table: "pools");
migrationBuilder.DropColumn(
name: "require_privilege",
table: "pools");
}
}
}