Commit Graph

235 Commits

Author SHA1 Message Date
Shannon
c76be66028 starts fixing up all the tests 2015-02-23 00:02:12 +01:00
Shannon
905e58e3b6 Completes: U4-6104 Remove SqlSyntaxContext - quite a large refactor and cleanup since the SqlSyntaxContext was used everywhere :( haven't run tests, etc... yet but the project builds now. 2015-02-22 21:36:02 +01:00
Shannon
070fc368b2 Adds new public access db tables, removes refs to languagelocale col, fixes the migration script to create a table with a PK 2015-01-23 16:34:57 +11:00
Shannon
50ed207211 error check during stylesheet upgrade 2015-01-23 14:32:09 +11:00
Shannon
4ea0fa0a19 Fixes: U4-6163 Remove LanguageLocale column from cmsContentVersion 2015-01-23 12:34:51 +11:00
Shannon
16f63b7fd9 Creates migration to remove stylesheet tables! and cleans up the singleton usage of sql syntax in the migrations. 2015-01-16 17:18:07 +11:00
Shannon
1cb0cd296c Decoupling more things, mostly to do with the PluginManager and logging which now requires an IServiceProvider so have created a simple instance of that. 2015-01-16 15:47:44 +11:00
Shannon
e88264d0f7 Decouples more LogHelper 2015-01-16 11:08:00 +11:00
Shannon
6f76377a9e Gets the stylesheet migrations all working, updates other post migrations to use a common base class, adds ILogger to the MigrationContext 2015-01-16 10:57:49 +11:00
Shannon
5bef3593dd More dependency cleanup, less singleton usages, better testing implementations 2015-01-09 15:27:47 +11:00
Shannon
9252dc222a still unweaving more of this singleton mess, makes unit testing much easier 2015-01-09 13:35:32 +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
defc9d3bc2 Updated all repo's to have their correct ctor's with their correct dependencies. Updated them all to accept ILogger updated all other dependencies with the same without breaking anything since all is internal, or obsoleted other public methods. Updates lots of the tests with mock instances instead, now more tests have less singleton dependencies, easier to test, much clearer and more IoC driven. Updated unit tests to supply the ILogger for required objects, tests should run faster now since most things are just mocked. 2015-01-09 10:51:15 +11:00
Shannon
f6cd597841 Fixes up some things from PR 610 and fixes up quoted values when using the Insert.IntoTable migration. 2015-01-06 13:44:42 +11:00
Shannon
fa48af02a1 Merge branch 'leekelleher-U4-337' into 7.3.0
Conflicts:
	src/Umbraco.Core/Umbraco.Core.csproj
2015-01-06 12:24:29 +11:00
leekelleher
573192c33f Amends based @sitereactor's feedback. 2015-01-04 17:09:05 +00:00
leekelleher
eace046342 Moved the SQL insert (to create the new relation type) to a separate DB migration for v7.3.0.
(This may need to be reviewed by Core team?)
2015-01-03 22:20:19 +00:00
leekelleher
911e81e4af Added constants for the relation-type aliases. 2015-01-03 20:10:41 +00:00
leekelleher
ef0ad41c8e New relation type: "Relate Parent Document On Delete" 2015-01-03 19:52:04 +00:00
Shannon
d4fd58e038 Completes: U4-5846 Remove cmsTemplate.master column and transfer those values over to umbracoNode.parentId, U4-5847 Ensure the path is set correctly for templates in the db, almost done the other template service tasks too. 2014-12-05 17:29:47 +11:00
Shannon
4f68941f98 Fixes: U4-5701 Upgrade to 7.2 beta error. Cannot alter column of type NTEXT or IMAGE. 2014-12-03 15:24:10 +11:00
Sebastiaan Janssen
85bcb7ad2b Update migration 2014-11-27 20:20:56 +01:00
Sebastiaan Janssen
d8909fe09c Also adds migration for U4-5837 2014-11-27 14:11:18 +01:00
Shannon
55190b7318 Fixes: U4-5707 Cannot upgrade 6.2.2 site to 7.2 2014-11-18 15:59:15 +11:00
Shannon
0328ba1aec Working on U4-5707 Cannot upgrade 6.2.2 site to 7.2 2014-11-18 15:06:27 +11:00
Shannon
5d9c7d9068 adds note 2014-10-24 17:15:38 +10:00
Shannon
720ed0f457 Adds another check to old migrations to ensure some required FKs are dropped when needed 2014-10-20 14:26:22 +10:00
Shannon
582357557f Had to remove the duplicate index updates, otherwise it will try to do it twice (U4-4133) 2014-10-16 13:33:38 +10:00
Shannon
7df39efa7b Ensures missing indexes are added that are required for the other constraints, even though these are now added for 6.0, if the version is detected as greater than 6.2 they still need to be added. (U4-4133) 2014-10-16 12:15:39 +10:00
Shannon
cab8ea86fb Fixes related links data upgrader when there invalid old data stored (U4-4133) 2014-10-16 12:01:08 +10: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
7c7ef42216 fixes typo on downgrade 2014-10-02 12:27:29 +10:00
Shannon
c5677233e3 Fixes install upgrade step to run during new install and upgrade - that is used when a db is found at the specified location but the version is empty, the upgrader still needs to run. Updates new upgrade steps to check if the changes are required so no errors occur when re-upgrading. 2014-10-01 14:58:30 +10:00
Shannon
55a7f7c23b Updates GetProfile ext method to accept an IUserService so they can be mocked, this is now used by the entity serializer. Fixed examine unit tests that required this. Fixed: U4-5508 Remove cmsDocument.alias column from db, update the order in which tables are created since with the new foreign key, that order was incorrect. 2014-09-30 18:46:02 +10:00
Shannon
54b11ea871 Fixes: U4-5503 cmsContent.contentType requires a foreign key 2014-09-30 17:05:18 +10:00
Shannon
ad1075a1ce Fixes: U4-2120 cmsDataTypePreValues 'value' column should be nvarchar(MAX) or ntext instead of nvarchar(2500) 2014-09-30 15:34:49 +10:00
Shannon
438e985d9e Ensures the custom list view data type's PKs don't interfere with ones that might already exist. 2014-09-29 13:50:28 +10:00
per ploug
e1793ad95c merge 2014-09-23 08:48:36 +02:00
per ploug
5f5c8c7693 Forms section + dashboard 2014-09-22 20:07:35 +02:00
Shannon
34d7a13e14 fixes ids 2014-09-22 19:06:25 +10:00
Shannon
bcfdeeda77 Ensures that there are nice defaults for the default member list view data type 2014-09-22 18:59:17 +10:00
Shannon
0264a72762 Ensures default list view data types are installed by default, includes these in the upgrade script. Now the default list views are used when rendering them per type (content, media, member). Updated the member tree to list nodes by member type and 'all members', each of these now renders a list view containing the members which is fully paged and searchable. Updates list view prop editor to deal with members appropriately. 2014-09-19 09:47:42 +10:00
Shannon
89ebc80bd5 Gets the installer to install default list views, updates list view tree to show them as 'system' items which are not deletable, upgrader installs default list views, now property resolver gets the correct system list view for the correct content type with it's pre-values that are defined. 2014-09-18 11:52:12 +10:00
Shannon
3437d95eb4 updates migration and base data creation to create the 3 default list views 2014-09-18 01:12:23 +10:00
Shannon
6ab2f8300c Fixes: U4-5473 Image cropper data type is not installed by default, ensures the List View data type is created on install, creates a new migration to ensure it exists when upgrading, fixes an old migration with improper use of a transaction. 2014-09-12 12:51:41 +10:00
Shannon
eb9e7d0e31 removes migration, this will not be necessary 2014-09-12 11:32:52 +10:00
Shannon
e3bf5d3487 Renames ContentAndMediaTypeBaseController, adds migration to add new db column for list view config 2014-09-10 15:47:01 +10:00
Sebastiaan Janssen
2d5e5e9b3c Refactored initial relationtype creation as well and "Relate on copy" is now also using the relationservice so it fires events 2014-08-20 17:01:12 +02:00
Shannon
9bb8ee5f95 ensure even when using the legacy api that the icon for media folder is correct 2014-08-15 11:57:01 -06:00
Morten Christensen
3af3e054d7 Minor refactoring of the MigrationRunner to allow a bit more flexibility for using it for non-Core migrations.
Allowing the list of migrations to be changed through the two migration events using the MigrationEventArgs.
2014-06-20 12:57:33 +02:00