page redirect support and added missing unique indexes on database tables
This commit is contained in:
parent
1b2c7772ef
commit
0f09df13b5
|
@ -13,6 +13,13 @@
|
||||||
{
|
{
|
||||||
var interop = new Interop(JsRuntime);
|
var interop = new Interop(JsRuntime);
|
||||||
|
|
||||||
|
// handle page redirection
|
||||||
|
if (!string.IsNullOrEmpty(PageState.Page.Url))
|
||||||
|
{
|
||||||
|
NavigationManager.NavigateTo(PageState.Page.Url);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// set page title
|
// set page title
|
||||||
if (!string.IsNullOrEmpty(PageState.Page.Title))
|
if (!string.IsNullOrEmpty(PageState.Page.Title))
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,13 @@
|
||||||
<EmbeddedResource Remove="wwwroot\Modules\Templates\**" />
|
<EmbeddedResource Remove="wwwroot\Modules\Templates\**" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Remove="Scripts\Master.1.0.1.sql" />
|
||||||
|
<None Remove="Scripts\Tenant.1.0.1.sql" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="Scripts\Master.1.0.1.sql" />
|
||||||
<EmbeddedResource Include="Scripts\Master.0.9.0.sql" />
|
<EmbeddedResource Include="Scripts\Master.0.9.0.sql" />
|
||||||
|
<EmbeddedResource Include="Scripts\Tenant.1.0.1.sql" />
|
||||||
<EmbeddedResource Include="Scripts\Tenant.0.9.0.sql" />
|
<EmbeddedResource Include="Scripts\Tenant.0.9.0.sql" />
|
||||||
<EmbeddedResource Include="Scripts\Tenant.0.9.1.sql" />
|
<EmbeddedResource Include="Scripts\Tenant.0.9.1.sql" />
|
||||||
<EmbeddedResource Include="Scripts\Tenant.0.9.2.sql" />
|
<EmbeddedResource Include="Scripts\Tenant.0.9.2.sql" />
|
||||||
|
|
29
Oqtane.Server/Scripts/Master.1.0.1.sql
Normal file
29
Oqtane.Server/Scripts/Master.1.0.1.sql
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
/*
|
||||||
|
|
||||||
|
Version 1.0.1 Master migration script
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_Tenant ON [dbo].[Tenant]
|
||||||
|
(
|
||||||
|
[Name]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_Alias ON [dbo].[Alias]
|
||||||
|
(
|
||||||
|
[Name]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_ModuleDefinition ON [dbo].[ModuleDefinition]
|
||||||
|
(
|
||||||
|
[ModuleDefinitionName]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_Job ON [dbo].[Job]
|
||||||
|
(
|
||||||
|
[JobType]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
33
Oqtane.Server/Scripts/Tenant.1.0.1.sql
Normal file
33
Oqtane.Server/Scripts/Tenant.1.0.1.sql
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/*
|
||||||
|
|
||||||
|
Version 1.0.1 Tenant migration script
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_Site ON [dbo].[Site]
|
||||||
|
(
|
||||||
|
[TenantId],
|
||||||
|
[Name]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_Role ON [dbo].[Role]
|
||||||
|
(
|
||||||
|
[SiteId],
|
||||||
|
[Name]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_Profile ON [dbo].[Profile]
|
||||||
|
(
|
||||||
|
[SiteId],
|
||||||
|
[Name]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE UNIQUE NONCLUSTERED INDEX IX_File ON [dbo].[File]
|
||||||
|
(
|
||||||
|
[FolderId],
|
||||||
|
[Name]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
Loading…
Reference in New Issue
Block a user