diff --git a/Migrations/20260210120001_RenameUserNameIndexSafe.cs b/Migrations/20260210120001_RenameUserNameIndexSafe.cs
new file mode 100644
index 0000000..f3eeb3a
--- /dev/null
+++ b/Migrations/20260210120001_RenameUserNameIndexSafe.cs
@@ -0,0 +1,22 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace line_gestao_api.Migrations
+{
+ ///
+ public partial class RenameUserNameIndexSafe : Migration
+ {
+ ///
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.Sql("ALTER INDEX IF EXISTS \"IX_AspNetUsers_NormalizedUserName\" RENAME TO \"UserNameIndex\"");
+ }
+
+ ///
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.Sql("ALTER INDEX IF EXISTS \"UserNameIndex\" RENAME TO \"IX_AspNetUsers_NormalizedUserName\"");
+ }
+ }
+}