Skip to content

Commit 4abace7

Browse files
committed
Merge remote-tracking branch 'origin/v9/9.2' into v9/dev
2 parents 72d9f56 + 0ea5f6a commit 4abace7

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ protected void DefinePlan()
267267

268268
// TO 9.2.0
269269
To<AddUserGroup2NodeTable>("{0571C395-8F0B-44E9-8E3F-47BDD08D817B}");
270-
270+
To<AddDefaultForNotificationsToggle>("{AD3D3B7F-8E74-45A4-85DB-7FFAD57F9243}");
271271
}
272272
}
273273
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Umbraco.Cms.Core;
2+
3+
namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_9_2_0
4+
{
5+
public class AddDefaultForNotificationsToggle : MigrationBase
6+
{
7+
public AddDefaultForNotificationsToggle(IMigrationContext context)
8+
: base(context)
9+
{ }
10+
11+
protected override void Migrate()
12+
{
13+
var updateSQL = Sql($"UPDATE {Constants.DatabaseSchema.Tables.UserGroup} SET userGroupDefaultPermissions = userGroupDefaultPermissions + 'N' WHERE userGroupAlias IN ('admin', 'writer', 'editor')");
14+
Execute.Sql(updateSQL.SQL).Do();
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)