diff options
author | Tim <contact@bytim.eu> | 2025-04-19 19:33:04 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-04-19 19:33:04 +0200 |
commit | 6a9657a10dc5ef3c4dfddf222284eec6c933ac83 (patch) | |
tree | a2b939a2e51ad04dd2635126be27d66c781666dd /VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs | |
parent | ff9b1e112ed14746ed74dfff1fb4c19efd5502d4 (diff) | |
download | VPNAuth-6a9657a10dc5ef3c4dfddf222284eec6c933ac83.tar.xz VPNAuth-6a9657a10dc5ef3c4dfddf222284eec6c933ac83.zip |
Diffstat (limited to 'VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs')
-rw-r--r-- | VPNAuth.Server/Migrations/20250419123149_AddUsernameFields.cs | 40 |
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"); + } + } +} |