Merge pull request #486 from sbwalker/master
added ability to set default container at the page level, expanded size of role description in upgrade script for 0.9.2
This commit is contained in:
@ -166,6 +166,7 @@ namespace Oqtane.Controllers
|
||||
page.EditMode = false;
|
||||
page.ThemeType = parent.ThemeType;
|
||||
page.LayoutType = parent.LayoutType;
|
||||
page.DefaultContainerType = parent.DefaultContainerType;
|
||||
page.Icon = parent.Icon;
|
||||
page.Permissions = new List<Permission> {
|
||||
new Permission(PermissionNames.View, userid, true),
|
||||
|
@ -19,12 +19,14 @@
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Scripts\Tenant.0.9.1.sql" />
|
||||
<None Remove="Scripts\Tenant.0.9.2.sql" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Modules\HtmlText\Scripts\HtmlText.1.0.0.sql" />
|
||||
<EmbeddedResource Include="Modules\HtmlText\Scripts\HtmlText.Uninstall.sql" />
|
||||
<EmbeddedResource Include="Scripts\Master.0.9.0.sql" />
|
||||
<EmbeddedResource Include="Scripts\Tenant.0.9.2.sql" />
|
||||
<EmbeddedResource Include="Scripts\Tenant.0.9.1.sql" />
|
||||
<EmbeddedResource Include="Scripts\Tenant.0.9.0.sql" />
|
||||
</ItemGroup>
|
||||
|
@ -757,6 +757,7 @@ namespace Oqtane.Repository
|
||||
EditMode = pagetemplate.EditMode,
|
||||
ThemeType = "",
|
||||
LayoutType = "",
|
||||
DefaultContainerType = "",
|
||||
Icon = pagetemplate.Icon,
|
||||
Permissions = pagetemplate.PagePermissions,
|
||||
IsPersonalizable = pagetemplate.IsPersonalizable,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
|
||||
migration script
|
||||
Version 0.9.1 migration script
|
||||
|
||||
*/
|
||||
|
||||
|
18
Oqtane.Server/Scripts/Tenant.0.9.2.sql
Normal file
18
Oqtane.Server/Scripts/Tenant.0.9.2.sql
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
|
||||
Version 0.9.2 migration script
|
||||
|
||||
*/
|
||||
|
||||
ALTER TABLE [dbo].[Role]
|
||||
ALTER COLUMN [Description] VARCHAR (256) NOT NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[Page] ADD
|
||||
[DefaultContainerType] [nvarchar](200) NULL
|
||||
GO
|
||||
|
||||
UPDATE [dbo].[Page]
|
||||
SET [DefaultContainerType] = ''
|
||||
GO
|
||||
|
Reference in New Issue
Block a user