Skip to content

Commit

Permalink
Make AddUserClientId able to run twice if needed (#17123)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjac authored Sep 25, 2024
1 parent 71d6b45 commit 474cffb
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Umbraco.Cms.Infrastructure.Persistence.Dtos;
using Umbraco.Cms.Core;
using Umbraco.Cms.Infrastructure.Persistence.Dtos;

namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_15_0_0;

Expand All @@ -11,5 +12,12 @@ public AddUserClientId(IMigrationContext context)
}

protected override void Migrate()
=> Create.Table<User2ClientIdDto>().Do();
{
if (TableExists(Constants.DatabaseSchema.Tables.User2ClientId))
{
return;
}

Create.Table<User2ClientIdDto>().Do();
}
}

0 comments on commit 474cffb

Please sign in to comment.