-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f51a1c
commit 1e5bcb6
Showing
17 changed files
with
353 additions
and
79 deletions.
There are no files selected for viewing
111 changes: 62 additions & 49 deletions
111
src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/Migrations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
212 changes: 212 additions & 0 deletions
212
test/OrchardCore.Tests.Functional/cms-tests/Recipes/migrations.recipe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
{ | ||
"name": "Migrations", | ||
"displayName": "Migrations", | ||
"description": "Testing features having database migrations.", | ||
"author": "The Orchard Core Team", | ||
"website": "https://orchardcore.net", | ||
"version": "1.0.0", | ||
"issetuprecipe": true, | ||
"categories": [ "tests" ], | ||
"tags": [ "tests" ], | ||
|
||
// The variables are evaluated the first time they are accessed, and reused across steps | ||
"variables": { | ||
"homeContentItemId": "[js:uuid()]", | ||
}, | ||
|
||
"steps": [ | ||
{ | ||
"name": "feature", | ||
"enable": [ | ||
// SaaS | ||
"OrchardCore.HomeRoute", | ||
"OrchardCore.Admin", | ||
"OrchardCore.Diagnostics", | ||
"OrchardCore.DynamicCache", | ||
"OrchardCore.Features", | ||
"OrchardCore.Navigation", | ||
"OrchardCore.Recipes", | ||
"OrchardCore.Resources", | ||
"OrchardCore.Roles", | ||
"OrchardCore.Security", | ||
"OrchardCore.Settings", | ||
"OrchardCore.Themes", | ||
"OrchardCore.Users", | ||
|
||
// Content Management including features having database migrations. | ||
"OrchardCore.AdminDashboard", | ||
"OrchardCore.AdminMenu", | ||
"OrchardCore.Alias", | ||
"OrchardCore.ArchiveLater", | ||
"OrchardCore.AuditTrail", | ||
"OrchardCore.Autoroute", | ||
"OrchardCore.ContentFields", | ||
"OrchardCore.ContentFields.Indexing.SQL", | ||
"OrchardCore.ContentFields.Indexing.SQL.UserPicker", | ||
"OrchardCore.ContentLocalization", | ||
"OrchardCore.ContentPreview", | ||
"OrchardCore.Contents", | ||
"OrchardCore.ContentTypes", | ||
"OrchardCore.CustomSettings", | ||
"OrchardCore.Deployment", | ||
"OrchardCore.Deployment.Remote", | ||
"OrchardCore.Feeds", | ||
"OrchardCore.Flows", | ||
"OrchardCore.Html", | ||
"OrchardCore.Indexing", | ||
"OrchardCore.Layers", | ||
"OrchardCore.Lists", | ||
"OrchardCore.Media", | ||
"OrchardCore.Menu", | ||
"OrchardCore.Markdown", | ||
"OrchardCore.Notifications", | ||
"OrchardCore.OpenId", | ||
"OrchardCore.Placements", | ||
"OrchardCore.PublishLater", | ||
"OrchardCore.Queries", | ||
"OrchardCore.Queries.Sql", | ||
"OrchardCore.Rules", | ||
"OrchardCore.Shortcodes.Templates", | ||
"OrchardCore.Taxonomies", | ||
"OrchardCore.Templates", | ||
"OrchardCore.Title", | ||
"OrchardCore.Widgets", | ||
"OrchardCore.Workflows", | ||
|
||
// Themes | ||
"TheBlogTheme", | ||
"TheAdmin", | ||
"SafeMode" | ||
] | ||
}, | ||
{ | ||
"name": "themes", | ||
"admin": "TheAdmin", | ||
"site": "TheBlogTheme" | ||
}, | ||
{ | ||
"name": "Roles", | ||
"Roles": [ | ||
{ | ||
"Name": "Administrator", | ||
"Description": "Administrator", | ||
"Permissions": [] | ||
}, | ||
{ | ||
"Name": "Authenticated", | ||
"Description": "Authenticated", | ||
"Permissions": [] | ||
}, | ||
{ | ||
"Name": "Anonymous", | ||
"Description": "Anonymous", | ||
"Permissions": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "settings", | ||
"HomeRoute": { | ||
"Action": "Display", | ||
"Controller": "Item", | ||
"Area": "OrchardCore.Contents", | ||
"ContentItemId": "[js: variables('homeContentItemId')]" | ||
}, | ||
"LayerSettings": { | ||
"Zones": [ "Content", "Footer" ] | ||
} | ||
}, | ||
{ | ||
"name": "ContentDefinition", | ||
"ContentTypes": [ | ||
{ | ||
"Name": "Article", | ||
"DisplayName": "Article", | ||
"Hidden": false, | ||
"Settings": { | ||
"ContentTypeSettings": { | ||
"Creatable": true, | ||
"Draftable": true, | ||
"Versionable": true, | ||
"Listable": true | ||
} | ||
}, | ||
"ContentTypePartDefinitionRecords": [ | ||
{ | ||
"PartName": "Article", | ||
"Name": "Article", | ||
"Settings": { | ||
"ContentTypePartSettings": { | ||
"Position": "3" | ||
} | ||
} | ||
}, | ||
{ | ||
"PartName": "AutoroutePart", | ||
"Name": "AutoroutePart", | ||
"Settings": { | ||
"AutoroutePartSettings": { | ||
"AllowCustomPath": true, | ||
"Pattern": "{{ Model.ContentItem | display_text | slugify }}", | ||
"ShowHomepageOption": true | ||
}, | ||
"ContentTypePartSettings": { | ||
"Position": "1" | ||
} | ||
} | ||
}, | ||
{ | ||
"PartName": "HtmlBodyPart", | ||
"Name": "HtmlBodyPart", | ||
"Settings": { | ||
"ContentTypePartSettings": { | ||
"Editor": "Wysiwyg", | ||
"Position": "2" | ||
} | ||
} | ||
}, | ||
{ | ||
"PartName": "TitlePart", | ||
"Name": "TitlePart", | ||
"Settings": { | ||
"ContentTypePartSettings": { | ||
"Position": "0" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"ContentParts": [ | ||
{ | ||
"Name": "Article", | ||
"Settings": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "content", | ||
"Data": [ | ||
{ | ||
"ContentItemId": "[js: variables('homeContentItemId')]", | ||
"ContentType": "Article", | ||
"DisplayText": "Home", | ||
"Latest": true, | ||
"Published": true, | ||
"Owner": "[js: parameters('AdminUserId')]", | ||
"Author": "[js: parameters('AdminUsername')]", | ||
"AutoroutePart": { | ||
"Path": "about", | ||
"SetHomepage": false | ||
}, | ||
"HtmlBodyPart": { | ||
"Html": "<p>Testing features having database migrations.</p>" | ||
}, | ||
"TitlePart": { | ||
"Title": "Testing Migrations" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.