summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Migrations/20251202203059_PasswordMaxLength.cs
diff options
context:
space:
mode:
Diffstat (limited to 'api/WhatApi/Migrations/20251202203059_PasswordMaxLength.cs')
-rw-r--r--api/WhatApi/Migrations/20251202203059_PasswordMaxLength.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/api/WhatApi/Migrations/20251202203059_PasswordMaxLength.cs b/api/WhatApi/Migrations/20251202203059_PasswordMaxLength.cs
new file mode 100644
index 0000000..8129df8
--- /dev/null
+++ b/api/WhatApi/Migrations/20251202203059_PasswordMaxLength.cs
@@ -0,0 +1,36 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace WhatApi.Migrations
+{
+ /// <inheritdoc />
+ public partial class PasswordMaxLength : Migration
+ {
+ /// <inheritdoc />
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AlterColumn<string>(
+ name: "Password",
+ table: "user",
+ type: "character varying(100)",
+ maxLength: 100,
+ nullable: false,
+ oldClrType: typeof(string),
+ oldType: "text");
+ }
+
+ /// <inheritdoc />
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AlterColumn<string>(
+ name: "Password",
+ table: "user",
+ type: "text",
+ nullable: false,
+ oldClrType: typeof(string),
+ oldType: "character varying(100)",
+ oldMaxLength: 100);
+ }
+ }
+}