summaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs
diff options
context:
space:
mode:
Diffstat (limited to 'VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs')
-rw-r--r--VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs b/VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs
new file mode 100644
index 0000000..3d649bb
--- /dev/null
+++ b/VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs
@@ -0,0 +1,40 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace VPNAuth.Server.Migrations
+{
+ /// <inheritdoc />
+ public partial class AddUsernameFields : Migration
+ {
+ /// <inheritdoc />
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AddColumn<string>(
+ name: "Username",
+ table: "AuthRequests",
+ type: "TEXT",
+ nullable: false,
+ defaultValue: "");
+
+ migrationBuilder.AddColumn<string>(
+ name: "Username",
+ table: "AccessTokens",
+ type: "TEXT",
+ nullable: false,
+ defaultValue: "");
+ }
+
+ /// <inheritdoc />
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropColumn(
+ name: "Username",
+ table: "AuthRequests");
+
+ migrationBuilder.DropColumn(
+ name: "Username",
+ table: "AccessTokens");
+ }
+ }
+}