Shannon
dadcbc8b31
U4-9107 Change BulkInsertRecords to use BulkCopy or TableDirect (SQLCE)
2016-10-25 12:29:17 +02:00
Shannon
d99a691bdc
Changes magic strings to constants for database provider types.
2016-08-09 15:36:02 +02:00
Shannon
c1da28dd47
U4-8837 Change paging query for SQL server 2012+ to be more efficient
2016-08-09 15:33:35 +02:00
Claus
7d0c92937a
U4-8754 Single content queries like Get(int id) for content, media and members needs to execute a TOP 1 (or LIMIT 1)
...
updated a bunch of the remaining repositories to also use this pattern where applicable (repos using mappers aren't compatible without more work).
2016-08-02 12:11:35 +02:00
Stephan
2481b77f03
U4-8729 - reviewing PR
2016-07-19 11:28:54 +02:00
Stephan
764f10327e
Merge branch 'peta-poco-issues' of https://github.com/pynej/Umbraco-CMS into temp-u4-8729
2016-07-19 10:57:03 +02:00
Jeremy Pyne
a40f87eb36
Fixed an issues with user generated PetaPoco's would not work if they included schema's.
...
Fixed an issue where strong typed helper methods would not generate valid SQL for column names if the poco didn't explicitly set a [Column(Name="")] attribute. The PetaPoco format allows for this though and will default to the property name. Again this would cause issues for developers trying to use the DatabaseContext.Database class with their own Poco's.
Both the above causes would happen for example if using the PetaPoco T4 templates to automatically generate Poco's.
2016-07-14 17:01:51 -04:00
Shannon
52e2cbab90
updates delete query to work with MySql
2016-07-14 18:00:43 +02:00
Shannon
6124126835
Fixes the custom field sorting, no longer has a sub query for order by, now supports both mysql and sqlce, adds a unit test (should add more though)
2016-04-20 15:50:38 +02:00
Shannon
10bb16316d
Updates sorting code to support decimals - need to test on MySql
2016-04-13 14:49:37 +02:00
Shannon
90a66aeebd
fixes merge / build
2016-04-05 16:32:46 +02:00
Shannon
c20984dca7
Merge branch 'dev-v7' of https://github.com/aadfPT/Umbraco-CMS into aadfPT-dev-v7
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/IContentService.cs
src/Umbraco.Core/Services/IMediaService.cs
src/Umbraco.Core/Services/IMemberService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js
src/Umbraco.Web.UI.Client/src/common/resources/media.resource.js
src/Umbraco.Web.UI.Client/src/common/resources/member.resource.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
src/Umbraco.Web/Editors/ContentController.cs
src/Umbraco.Web/Editors/MediaController.cs
src/Umbraco.Web/Editors/MemberController.cs
src/Umbraco.Web/WebApi/Filters/DisableBrowserCacheAttribute.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
2016-04-05 16:20:39 +02:00
Shannon
ef3f15ec9b
Merge branch 'u4-6003b' of https://github.com/AndyButland/Umbraco-CMS into AndyButland-u4-6003b
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/IContentService.cs
src/Umbraco.Core/Services/IMediaService.cs
src/Umbraco.Core/Services/IMemberService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html
src/Umbraco.Web/Editors/MemberController.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
2016-04-05 15:31:33 +02:00
André Ferreira
bd2a40d214
U4-6003 List View - Order By Custom Property Fix
...
Original work done on https://github.com/umbraco/Umbraco-CMS/pull/711 but ported to the latest version
Content below for reference
With the current implementation of the list view you can only sort by system columns (Name, SortOrder etc.) and not custom columns you have added to your document types. This PR allows that.
The crux of it is a sub-query added to the ORDER BY clause when we are ordering by a custom field. This looks up the field's value from the most recent content version.
Provided here and not in the previous pull request is:
MySQL support
Have done some performance testing. On a local laptop with 1000 nodes in a list view, it's sorting in around 220-250ms. It's a little slower that sorting on native properties like node name, but still perfectly usable - there's no significant delay you see in use.
Please note also:
GetPagedResultsByQuery() in VersionableRepositoryBase was previously doing an ORDER BY in SQL and then repeating this via LINQ to Objects. I couldn't see that this second ordering was necessary so removed it, but wanted to flag here in case I've missed something around why this was necessary.
The PR also includes small amends to fix or hide sorting on a couple of the default columns for the member amd media list views.
2016-04-01 11:28:51 +01:00
Stephan
f1366c7d29
U4-8017 - fix issues with MySql InitColumnTypeMap
2016-02-19 13:33:11 +01:00
Shannon
327a00aaf4
Fixes issue with migrations running with a Decimal column:
...
The logic would produce incorrect syntax.
Fixed the default string column for sql server, made them all consistent.
Moved ctor logic for shared sql syntax providers to the base class.
Created formatted Decimal column definitions so that a custom precision/scale works.
Set the migration to use the default precision/scale values.
Removes the pattern validators because they don't do anything... due to the fix-number directive which has it's own issues but we won't solve those now.
2015-10-14 12:07:50 +02:00
Stephan
583ae2df11
Bugfix
2015-09-15 10:52:32 +02:00
Stephan
14cd1e7a76
Bugfix SqlSyntaxProvider date formatting
2015-09-15 10:49:41 +02:00
Shannon
8d24ac3651
Oops, fixes PK creation logic for MySQL (had the wrong boolean)
2015-09-14 10:33:37 +02:00
Shannon
7beb21ad66
Fixes upgrade issues with MySql, along with a few other things:
...
* All usages of getdate() are changed to the system value
* All usages of newid() are chagned to the system value
* Removes the hacks associated with the above
* Fixes the fluent migrations for table creation for mysql to not double create a PK
* Removes other system field values that actually don't do anthing and shouldn't be used
2015-09-11 17:49:47 +02:00
Shannon
488ba05eda
Fixes upgrade issues with SQLCE and DateTime:
...
* DateTime's during migrations are formatted in a very explicit way
* Migration's that need to execute multiple statements are fixed in SQLCE by splitting on GO
2015-09-11 13:55:13 +02:00
Shannon
4bb89c1827
Fixes: U4-7090 Upgrade error with dates
2015-09-11 11:49:37 +02:00
AndyButland
a1ae0f70bb
Moved custom column list view order by sql variations into syntax providers
2015-06-12 09:15:36 +02:00
Shannon
cc396c8b96
Removes more unecessary singletons and simplifies/refactors some internal parts like the ctors for the ServiceContext, DatabaseContext. No more RepositoryResolver or SqlSyntaxProvidersResolver these are entirely uncessary and complicate things.
2015-01-13 18:19:52 +11:00
Shannon
e3acdbe85b
Fixes up dictionary and language repositories to have underlying simple get repositories since they support getting by id, unique id and string variations but we want to have native repository enabled caching for these items so these get methods now use private repositories based on these keys. Adds more tests, removes N+1 queries for languages and dictionary items. Removes RuntimeCacheProvider, we only want one type of cache, this simplifies things a lot.
2015-01-13 13:25:36 +11:00
Shannon
fafe056db0
More refactoring with ILogger and reducing the dependencies on all of these singletons. Created new DatabaseSchemaHelper to be used instead of the extension methods that require singletons to be set.
2015-01-09 13:00:26 +11:00
Shannon
9f30a9b0fc
Removes more singletons and reliance on singletons/statics
2015-01-09 12:04:33 +11:00
Shannon
7b99efb061
Working on: U4-4133 Database key changes are not fixed in the Umbraco 7 installer!
2014-10-16 11:24:29 +10:00
Shannon
893855f8bd
More tests fixed
2014-09-24 20:20:27 +10:00
Shannon
afacdc12ad
More work on parameterized queries, all tests for repos passing now.
2014-09-24 16:59:45 +10:00
Shannon
00f86ffef7
More work on sql parameterization with sql expressions, lots of tests passing but a few fixes still required. Streamlines IQuery to actually have the correct method implementations so we're not casting everywhere.
2014-09-24 13:51:16 +10:00
Shannon
64c126ea61
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
...
Conflicts:
src/Umbraco.Core/Configuration/GlobalSettings.cs
src/Umbraco.Core/Persistence/Migrations/Initial/DatabaseSchemaResult.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Web/Security/Providers/UsersMembershipProvider.cs
src/umbraco.providers/members/UmbracoMembershipProvider.cs
2014-03-14 19:33:53 +11:00
Shannon
e1a134f587
Fixes: U4-4430 MySql primary key issues
2014-03-14 17:11:21 +11:00
Shannon
e8056de589
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
...
Conflicts:
src/Umbraco.Core/Persistence/Migrations/Initial/DatabaseSchemaResult.cs
src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs
src/Umbraco.Web.UI/install/Default.aspx.cs
2014-03-14 13:06:45 +11:00
Shannon
bbe6194b06
Exception is thrown if trying to run mysql in med trust. Migrations arranged to execute schema migrations first and then data migrations. If a schema migration fails it will attempt to run the downgrade scripts of the migrations if running mysql since schema changes aren't supported in transactions. Updated all sql syntax providers to try to return only the column indexes, not key indexes. Updates the db version checker to include errors for all missing columns, indexes and constraints in the db and vice versa in the schema.
2014-03-14 13:04:20 +11:00
Shannon
6990c46262
Fixes installer when it fails on the db install or upgrades, fixes some upgrade queries with mysql, fixes ignoring case check for checking version
2014-03-13 21:47:08 +11:00
Shannon
099c558797
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
2014-03-13 20:46:06 +11:00
Shannon
e020989577
Give some love to mysql with regards to schema validation and the syntax provider - need ignore case comparisons.
2014-03-13 20:42:57 +11:00
Shannon
62d4bff8aa
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
...
Conflicts:
src/Umbraco.Web.UI/config/ClientDependency.config
2014-03-13 11:11:51 +11:00
Shannon
a8858ecfdd
fixes unit tests
2014-03-13 11:10:29 +11:00
Shannon
9d7d866467
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
...
Conflicts:
src/Umbraco.Core/CoreBootManager.cs
src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs
src/Umbraco.Core/Umbraco.Core.csproj
2014-03-12 18:44:54 +11:00
Shannon
aee10348e5
Ensures not to add new indexes if they already exist
2014-03-12 18:37:22 +11:00
Shannon
3a92c26a7f
Adds ability to extract index details from databases using sql syntax provider.
2014-03-12 17:17:52 +11:00
Shannon
f168093b92
Merge commit 'f06c9e823545d8e86309bb751e63b99a2a3b1a18' into 7.1.0
...
Conflicts:
src/Umbraco.Core/Models/Member.cs
src/Umbraco.Core/Persistence/Querying/BaseExpressionHelper.cs
src/Umbraco.Core/Persistence/Repositories/MemberTypeRepository.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Core/packages.config
src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
src/Umbraco.Web.UI/config/ClientDependency.config
src/Umbraco.Web/umbraco.presentation/umbraco/controls/passwordChanger.ascx.cs
2014-02-18 18:03:29 +11:00
Shannon
e0dcc3afbc
Streamlines how strings are escaped with the sql expression helpers and syntax providers. Fixes: U4-4232 Umbraco.Core.Persistence.Querying issue with backslashes
2014-02-17 21:38:13 +11:00
Shannon
c088187a13
Merge remote-tracking branch 'origin/6.2.0' into 7.0.2
...
Conflicts:
src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxContext.cs
src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderExtensions.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/packages.config
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/packages.config
src/Umbraco.Web/umbraco.presentation/umbraco/create/ScriptTasks.cs
src/umbraco.cms/packages.config
src/umbraco.controls/packages.config
src/umbraco.editorControls/packages.config
src/umbraco.macroRenderings/packages.config
src/umbraco.macroRenderings/umbraco.macroRenderings.csproj
2014-01-10 00:09:38 +11:00
Shannon
4db6ce4b22
Fixes various issues relating to File Repositories and Services: U4-4014 FileRepositories offer no way to create folders, U4-4013 The models that the FileService produces causes security exceptions, U4-3993 Replace system.io calls in umbraco.scriptTasks legacy task
...
updates to latest CDF
2014-01-09 18:08:13 +11:00
Shannon
01d09548aa
fixed merge issues
2014-01-09 10:54:02 +11:00
Shannon
1ff049a063
Merge remote-tracking branch 'origin/6.2.0' into 7.0.2
...
Conflicts:
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
2014-01-09 10:38:31 +11:00
Shannon
6fa0c627a5
working on #U4-3876
2014-01-08 20:19:08 +11:00