diff options
| author | Tim <contact@bytim.eu> | 2025-12-25 19:59:26 +0100 |
|---|---|---|
| committer | Tim <contact@bytim.eu> | 2025-12-25 19:59:26 +0100 |
| commit | 771b949618bb4e07c09c2fb94a7f92e13f471b9e (patch) | |
| tree | 88c2e69fc14bef91e414c605712420437cc92ccf /ShareGuard.Web/Migrations/20251222192008_Init.cs | |
Diffstat (limited to 'ShareGuard.Web/Migrations/20251222192008_Init.cs')
| -rw-r--r-- | ShareGuard.Web/Migrations/20251222192008_Init.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ShareGuard.Web/Migrations/20251222192008_Init.cs b/ShareGuard.Web/Migrations/20251222192008_Init.cs new file mode 100644 index 0000000..d301a33 --- /dev/null +++ b/ShareGuard.Web/Migrations/20251222192008_Init.cs @@ -0,0 +1,37 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace ShareGuard.Web.Migrations +{ + /// <inheritdoc /> + public partial class Init : Migration + { + /// <inheritdoc /> + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Links", + columns: table => new + { + Id = table.Column<int>(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Token = table.Column<string>(type: "TEXT", nullable: false), + Name = table.Column<string>(type: "TEXT", nullable: false), + IpAddress = table.Column<string>(type: "TEXT", nullable: false), + PeerPublicKey = table.Column<string>(type: "TEXT", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Links", x => x.Id); + }); + } + + /// <inheritdoc /> + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Links"); + } + } +} |
