mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Renaming and repathing migration classes.
--HG-- branch : dev
This commit is contained in:
@@ -6,8 +6,8 @@ using Orchard.ContentManagement.MetaData.Builders;
|
|||||||
using Orchard.Core.Contents.Extensions;
|
using Orchard.Core.Contents.Extensions;
|
||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace ArchiveLater.DataMigrations {
|
namespace Orchard.ArchiveLater {
|
||||||
public class ArchiveLaterDataMigration : DataMigrationImpl {
|
public class Migrations : DataMigrationImpl {
|
||||||
public int Create() {
|
public int Create() {
|
||||||
ContentDefinitionManager.AlterPartDefinition(typeof(ArchiveLaterPart).Name, cfg => cfg
|
ContentDefinitionManager.AlterPartDefinition(typeof(ArchiveLaterPart).Name, cfg => cfg
|
||||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
.WithLocation(new Dictionary<string, ContentLocation> {
|
@@ -68,7 +68,7 @@
|
|||||||
<Reference Include="System.EnterpriseServices" />
|
<Reference Include="System.EnterpriseServices" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="DataMigrations\ArchiveLaterDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Drivers\ArchiveLaterPartDriver.cs" />
|
<Compile Include="Drivers\ArchiveLaterPartDriver.cs" />
|
||||||
<Compile Include="Handlers\ArchiveLaterPartHandler.cs" />
|
<Compile Include="Handlers\ArchiveLaterPartHandler.cs" />
|
||||||
<Compile Include="Handlers\UnpublishingTaskHandler.cs" />
|
<Compile Include="Handlers\UnpublishingTaskHandler.cs" />
|
||||||
|
@@ -5,8 +5,8 @@ using Orchard.ContentManagement.MetaData;
|
|||||||
using Orchard.ContentManagement.MetaData.Builders;
|
using Orchard.ContentManagement.MetaData.Builders;
|
||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Blogs.DataMigrations {
|
namespace Orchard.Blogs {
|
||||||
public class BlogsDataMigration : DataMigrationImpl {
|
public class Migrations : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
||||||
//CREATE TABLE Orchard_Blogs_BlogPartArchiveRecord (Id integer, Year INTEGER, Month INTEGER, PostCount INTEGER, Blog_id INTEGER, primary key (Id));
|
//CREATE TABLE Orchard_Blogs_BlogPartArchiveRecord (Id integer, Year INTEGER, Month INTEGER, PostCount INTEGER, Blog_id INTEGER, primary key (Id));
|
@@ -70,7 +70,7 @@
|
|||||||
<Compile Include="ResourceManifest.cs" />
|
<Compile Include="ResourceManifest.cs" />
|
||||||
<Compile Include="Commands\BlogCommands.cs" />
|
<Compile Include="Commands\BlogCommands.cs" />
|
||||||
<Compile Include="Controllers\BlogAdminController.cs" />
|
<Compile Include="Controllers\BlogAdminController.cs" />
|
||||||
<Compile Include="DataMigrations\BlogsDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Drivers\BlogPartDriver.cs" />
|
<Compile Include="Drivers\BlogPartDriver.cs" />
|
||||||
<Compile Include="Controllers\BlogPostAdminController.cs" />
|
<Compile Include="Controllers\BlogPostAdminController.cs" />
|
||||||
<Compile Include="Controllers\BlogPostController.cs" />
|
<Compile Include="Controllers\BlogPostController.cs" />
|
||||||
|
@@ -7,8 +7,8 @@ using Orchard.ContentManagement.MetaData.Builders;
|
|||||||
using Orchard.Core.Contents.Extensions;
|
using Orchard.Core.Contents.Extensions;
|
||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Comments.DataMigrations {
|
namespace Orchard.Comments {
|
||||||
public class CommentsDataMigration : DataMigrationImpl {
|
public class Migrations : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
||||||
//CREATE TABLE Orchard_Comments_ClosedCommentsRecord (Id integer, ContentItemId INTEGER, primary key (Id));
|
//CREATE TABLE Orchard_Comments_ClosedCommentsRecord (Id integer, ContentItemId INTEGER, primary key (Id));
|
@@ -72,7 +72,7 @@
|
|||||||
<Compile Include="AdminMenu.cs" />
|
<Compile Include="AdminMenu.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="Controllers\CommentController.cs" />
|
<Compile Include="Controllers\CommentController.cs" />
|
||||||
<Compile Include="DataMigrations\CommentsDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Drivers\CommentPartDriver.cs" />
|
<Compile Include="Drivers\CommentPartDriver.cs" />
|
||||||
<Compile Include="Drivers\CommentsContainerPartDriver.cs" />
|
<Compile Include="Drivers\CommentsContainerPartDriver.cs" />
|
||||||
<Compile Include="Drivers\CommentSettingsPartDriver.cs" />
|
<Compile Include="Drivers\CommentSettingsPartDriver.cs" />
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Email.DataMigrations {
|
namespace Orchard.Email {
|
||||||
public class EmailDataMigration : DataMigrationImpl {
|
public class Migrations : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
||||||
|
|
@@ -65,7 +65,7 @@
|
|||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="DataMigrations\EmailDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Drivers\SmtpSettingsPartDriver.cs" />
|
<Compile Include="Drivers\SmtpSettingsPartDriver.cs" />
|
||||||
<Compile Include="Handlers\SmtpSettingsPartHandler.cs" />
|
<Compile Include="Handlers\SmtpSettingsPartHandler.cs" />
|
||||||
<Compile Include="Models\SmtpSettingsPart.cs" />
|
<Compile Include="Models\SmtpSettingsPart.cs" />
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Indexing.DataMigrations {
|
namespace Orchard.Indexing {
|
||||||
public class IndexingDataMigration : DataMigrationImpl {
|
public class Migrations : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
||||||
SchemaBuilder.CreateTable("IndexingTaskRecord", table => table
|
SchemaBuilder.CreateTable("IndexingTaskRecord", table => table
|
@@ -62,7 +62,7 @@
|
|||||||
<Compile Include="ResourceManifest.cs" />
|
<Compile Include="ResourceManifest.cs" />
|
||||||
<Compile Include="Commands\IndexingCommands.cs" />
|
<Compile Include="Commands\IndexingCommands.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="DataMigrations\IndexingDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="DefaultIndexingUpdater.cs" />
|
<Compile Include="DefaultIndexingUpdater.cs" />
|
||||||
<Compile Include="Handlers\CreateIndexingTaskHandler.cs" />
|
<Compile Include="Handlers\CreateIndexingTaskHandler.cs" />
|
||||||
<Compile Include="Handlers\InfosetFieldIndexingHandler.cs" />
|
<Compile Include="Handlers\InfosetFieldIndexingHandler.cs" />
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Media.DataMigrations {
|
namespace Orchard.Media {
|
||||||
public class MediaDataMigration : DataMigrationImpl {
|
public class MediaDataMigration : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
@@ -72,7 +72,7 @@
|
|||||||
<Compile Include="AdminMenu.cs" />
|
<Compile Include="AdminMenu.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="ResourceManifest.cs" />
|
<Compile Include="ResourceManifest.cs" />
|
||||||
<Compile Include="DataMigrations\MediaDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Helpers\MediaHelpers.cs" />
|
<Compile Include="Helpers\MediaHelpers.cs" />
|
||||||
<Compile Include="Models\MediaSettingsPart.cs" />
|
<Compile Include="Models\MediaSettingsPart.cs" />
|
||||||
<Compile Include="Handlers\MediaSettingsPartHandler.cs" />
|
<Compile Include="Handlers\MediaSettingsPartHandler.cs" />
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Roles.DataMigrations {
|
namespace Orchard.Roles {
|
||||||
public class RolesDataMigration : DataMigrationImpl {
|
public class RolesDataMigration : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
@@ -67,7 +67,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AdminMenu.cs" />
|
<Compile Include="AdminMenu.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="DataMigrations\RolesDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Drivers\UserRolesPartDriver.cs" />
|
<Compile Include="Drivers\UserRolesPartDriver.cs" />
|
||||||
<Compile Include="DefaultRoleUpdater.cs" />
|
<Compile Include="DefaultRoleUpdater.cs" />
|
||||||
<Compile Include="Models\IUserRoles.cs" />
|
<Compile Include="Models\IUserRoles.cs" />
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Search.DataMigrations {
|
namespace Orchard.Search {
|
||||||
public class SearchDataMigration : DataMigrationImpl {
|
public class SearchDataMigration : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
@@ -67,7 +67,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="ResourceManifest.cs" />
|
<Compile Include="ResourceManifest.cs" />
|
||||||
<Compile Include="Controllers\SearchController.cs" />
|
<Compile Include="Controllers\SearchController.cs" />
|
||||||
<Compile Include="DataMigrations\SearchDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Drivers\SearchSettingsPartDriver.cs" />
|
<Compile Include="Drivers\SearchSettingsPartDriver.cs" />
|
||||||
<Compile Include="Filters\SearchFilter.cs" />
|
<Compile Include="Filters\SearchFilter.cs" />
|
||||||
<Compile Include="Models\SearchSettingsPart.cs" />
|
<Compile Include="Models\SearchSettingsPart.cs" />
|
||||||
|
@@ -6,7 +6,7 @@ using Orchard.Core.Contents.Extensions;
|
|||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
using Orchard.Tags.Models;
|
using Orchard.Tags.Models;
|
||||||
|
|
||||||
namespace Orchard.Tags.DataMigrations {
|
namespace Orchard.Tags {
|
||||||
public class TagsDataMigration : DataMigrationImpl {
|
public class TagsDataMigration : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
@@ -68,7 +68,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AdminMenu.cs" />
|
<Compile Include="AdminMenu.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="DataMigrations\TagsDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Models\TagsContentItems.cs" />
|
<Compile Include="Models\TagsContentItems.cs" />
|
||||||
<Compile Include="Services\ITagService.cs" />
|
<Compile Include="Services\ITagService.cs" />
|
||||||
<Compile Include="ViewModels\EditTagsViewModel.cs" />
|
<Compile Include="ViewModels\EditTagsViewModel.cs" />
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Themes.DataMigrations {
|
namespace Orchard.Themes {
|
||||||
public class ThemesDataMigration : DataMigrationImpl {
|
public class ThemesDataMigration : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
@@ -69,7 +69,7 @@
|
|||||||
<Compile Include="AdminMenu.cs" />
|
<Compile Include="AdminMenu.cs" />
|
||||||
<Compile Include="ResourceManifest.cs" />
|
<Compile Include="ResourceManifest.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="DataMigrations\ThemesDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="DesignerNotes\ZoneManagerEvents.cs" />
|
<Compile Include="DesignerNotes\ZoneManagerEvents.cs" />
|
||||||
<Compile Include="Handlers\ThemeSiteSettingsPartHandler.cs" />
|
<Compile Include="Handlers\ThemeSiteSettingsPartHandler.cs" />
|
||||||
<Compile Include="Models\Theme.cs" />
|
<Compile Include="Models\Theme.cs" />
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Users.DataMigrations {
|
namespace Orchard.Users {
|
||||||
public class UsersDataMigration : DataMigrationImpl {
|
public class UsersDataMigration : DataMigrationImpl {
|
||||||
|
|
||||||
public int Create() {
|
public int Create() {
|
@@ -70,7 +70,7 @@
|
|||||||
<Compile Include="Commands\UserCommands.cs" />
|
<Compile Include="Commands\UserCommands.cs" />
|
||||||
<Compile Include="Controllers\AccountController.cs" />
|
<Compile Include="Controllers\AccountController.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="DataMigrations\UsersDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Events\UserContext.cs" />
|
<Compile Include="Events\UserContext.cs" />
|
||||||
<Compile Include="Handlers\ModerationMessageAlteration.cs" />
|
<Compile Include="Handlers\ModerationMessageAlteration.cs" />
|
||||||
<Compile Include="Handlers\RegistrationSettingsPartHandler.cs" />
|
<Compile Include="Handlers\RegistrationSettingsPartHandler.cs" />
|
||||||
|
@@ -8,7 +8,7 @@ using Orchard.Environment.State;
|
|||||||
using Orchard.Events;
|
using Orchard.Events;
|
||||||
using Orchard.Widgets.Models;
|
using Orchard.Widgets.Models;
|
||||||
|
|
||||||
namespace Orchard.Widgets.DataMigrations {
|
namespace Orchard.Widgets {
|
||||||
public interface IDefaultLayersInitializer : IEventHandler {
|
public interface IDefaultLayersInitializer : IEventHandler {
|
||||||
void CreateDefaultLayers();
|
void CreateDefaultLayers();
|
||||||
}
|
}
|
@@ -59,7 +59,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AdminMenu.cs" />
|
<Compile Include="AdminMenu.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
<Compile Include="DataMigrations\WidgetsDataMigration.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Handlers\LayerPartHandler.cs" />
|
<Compile Include="Handlers\LayerPartHandler.cs" />
|
||||||
<Compile Include="Handlers\WidgetPartHandler.cs" />
|
<Compile Include="Handlers\WidgetPartHandler.cs" />
|
||||||
<Compile Include="Models\LayerPart.cs" />
|
<Compile Include="Models\LayerPart.cs" />
|
||||||
@@ -75,9 +75,7 @@
|
|||||||
<Content Include="Web.config" />
|
<Content Include="Web.config" />
|
||||||
<Content Include="Views\Web.config" />
|
<Content Include="Views\Web.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup />
|
||||||
<Folder Include="App_Data\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\Core\Orchard.Core.csproj">
|
<ProjectReference Include="..\..\Core\Orchard.Core.csproj">
|
||||||
<Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
|
<Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
|
||||||
|
Reference in New Issue
Block a user