Sign in Register
Our Umbraco
  • Forum
  • Packages
  • Documentation
  • Community
  • Discord
  • Download
  • Sign in
  • Our Umbraco
  • Search
  • migrations
  • Migrations Viewer
    Developer tools / Packages / Our
    Created: June 10, 2016 - Last update: December 14, 2023
    A backoffice plugin which allows users to view any migrations installed on an Umbraco instance. This is useful for any Umbraco admins who use bespoke migrations in their own code or simply want to check which versions of Umbraco were installed when. The tree view is currently powered by…
  • Umbraco 7.3.0 Migrations
    Forum / Umbraco 7.3.0 Migrations
    Created: September 28, 2015 - Last update: September 28, 2015
    I've been working on updating Merchello for Umbraco 7.3.0 compatibility and have a few questions relating to Migrations. For the past several version of Merchello, I've been using the MigrationRunner to push database changes for new features, similar to the way Umbraco does it's upgrade. When I st…
  • Package Migrations tester
    Developer tools / Packages / Our
    Created: April 23, 2018 - Last update: December 14, 2023
    Umbraco package that helps you test package migrations without having to install a complete package over and over again. Simply install this package. Go to the setttings section Select the assembly name from an overview select the migration you want to test using the migrate button. Release n…
  • Umbraco Migrations v7.15.x
    Forum / Umbraco Migrations v7.15.x
    Created: December 31, 2020 - Last update: October 21, 2022
    Hello everyone in the fabulous Umbraco community. I hope you have had a safe and happy holiday (Christmas for those of you that celebrate it) and my best wishes go out to you all for the new year. I'm kicking off 2021 with a major upgrade of our main corporate website to Umbraco 8. Cloud is also on…
  • Migrations - Multiple versions
    Forum / Migrations - Multiple versions
    Created: October 20, 2017 - Last update: October 20, 2017
    Hi all, Hoping someone with Migrations experience can help here. I created a migration that adds 3 tables to the Umbraco database, these are added using code based around Sebastian's really helpful blog post here: https://cultiv.nl/blog/using-umbraco-migrations-to-deploy-changes/ The code takes…
  • Help Inserting Into MyTable with Migrations
    Forum / Help Inserting Into MyTable with Migrations
    Created: June 10, 2020 - Last update: June 11, 2020
    Hello, I've created a subscribers table using migrationgs (very interesting). I want now to add data to myTable ...using Migrations? I've built a class that I thought would do this using the insert.IntoTable("myTable").Row(takes an object).Do() ...but I don't see where I can pass in my data model…
  • Using multiple migrations on package install
    Forum / Using multiple migrations on package install
    Created: March 27, 2014 - Last update: July 03, 2014
    Hey all, I'm currently trying to implement Migrations withing Umbraco but a problem occurs when i try to run multiple migrations. The migrations should run while installing a package so in the installer file that is called from Umbraco. So I got a package with a migration in it. If it is installed…
  • When is Down() method in migrations executed?
    Forum / When is Down() method in migrations executed?
    Created: February 18, 2020 - Last update: February 18, 2020
    Hi community. I'm using migrations to update some property types. So, when an exception occurs in Up() method, it seems to me that Down() should be executed, right? But it's not happening. In neither of my migrations, Down() is never executed. I'm interested in an explanation of how it's working…
  • Ability to create column as text with migrations
    Forum / Ability to create column as text with migrations
    Created: September 04, 2018 - Last update: September 04, 2018
    Hi, I have a suggestion for an upgrade of umbraco migrations which can be used to create custom database tables. I don't know where to post a suggestion like this so if there is a better place, please let me know! When using umbraco migrations to create custom database tables, I would like to have…
  • Fluent Migrator style Migrations for Umbraco
    Forum / Fluent Migrator style Migrations for Umbraco
    Created: September 09, 2014 - Last update: December 16, 2014
    Hi everyone. I'm undertaking a bit of a proof of concept project to create a migrations framework/api for umbraco. Taking inspiration from Fluent Migrator. I'm wondering if anyone has tried this before or if there's something else that could do what I want. We've used uSiteBuilder in the past qu…
  • Umbraco Migrations: Automatically install required lower versions
    Forum / Umbraco Migrations: Automatically install required lower versions
    Created: July 06, 2016 - Last update: July 06, 2016
    Hi, I'm using Umbraco Migrations to update a bespoke database in our code for an Umbraco 7.3.0 web app. Currently I have an app setting in the web.config which tells an `MigrationRunner` which version of the product the web app should be running on. My code is done in various version 1.0.0., 1.1…
  • How Do Umbraco DB Migrations Work (NOT Upgrades)?
    Forum / How Do Umbraco DB Migrations Work (NOT Upgrades)?
    Created: December 01, 2015 - Last update: March 29, 2016
    **Note:** This question has nothing to do with upgrading Umbraco. Stumbled across this: https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenTwoZero/AlterDataTypePreValueTable.cs Basically, it shows something related to the namespace…
  • Umbraco 8 | Migrations | Added Columns to Custom Table
    Forum / Umbraco 8 | Migrations | Added Columns to Custom Table
    Created: January 07, 2020 - Last update: February 16, 2024
    Hi Guys, I have just been learning how to do migrations with Umbraco 8. I am half the way their and successfully managed to create a custom table using composers / componets etc. I follow this guide. https://our.umbraco.com/documentation/Extending/database/ As a test I could pretty much copy and…
  • Re-creating an Umbraco site's database with custom migrations
    Forum / Re-creating an Umbraco site's database with custom migrations
    Created: November 07, 2019 - Last update: November 12, 2019
    Hi all, For context, this post follows an issue I raised with Umbraco here: https://github.com/umbraco/Umbraco-CMS/issues/7065#issuecomment-550971305 I don't think that the response actually addresses my issue but I'm being a good boy, following Sebastiaan's advice and posting it here instead of r…
  • Custom Migration with Our Umbraco Migrations from ProWorks
    Forum / Custom Migration with Our Umbraco Migrations from ProWorks
    Created: October 26, 2022 - Last update: October 26, 2022
    I have been trying to create a migrator for the Our Umbraco Migrations package but it doesn't even run. The basic structure of the class looks like this: [DataTypeMigrator("Imulus.UrlPicker")] public class ImulusUrlPickerMigrator : JsonContentMigrator { public override string…
  • uSync Migrations issue with Multinode Tree Picker inside Nested Content
    Created: December 16, 2022 - Last update: January 05, 2024
    uSync Migrations is great and will be the best way of migrating from old Umbraco sites going forward. I have hit an issue with Multinode Tree Pickers inside Nested Content not being migrated though. Is this still a work in progress or is this classed as 'complex data' and I'll need to write a custo…
  • Effective Database Querying (Custom Tables, Umbraco Migrations, PetaPoco)
    Forum / Effective Database Querying (Custom Tables, Umbraco Migrations, PetaPoco)
    Created: June 23, 2016 - Last update: June 23, 2016
    Hello! After a great CodeGarden, I thought I'd try out some of what I have learnt. I wanted to play with using Umbraco Migrations and moving something that shouldn't be content managed away from Umbraco. To do this, I have written a basic service for handling content likes. The service (below) is…
  • Migrations / Incremental Deployment
    Created: May 01, 2013 - Last update: May 01, 2013
    Hello,I have a question around the way changes are deployed to a new environment.For example, if I rename a property on a document type, is uSiteBuilder smart enough to recognise this, or will it remove the old property and add the new one?I guess what I'm looking for is something similar…
  • How do I get rid of button "Run pending migrations" for Umbraco forms?
    Forum / How do I get rid of button "Run pending migrations" for Umbraco forms?
    Created: October 18, 2022 - Last update: November 01, 2022
    Hi, Upgraded from 8 to 10 earlier and also upgraded umbraco forms. In backoffice/Packages/Installed packages there is a button "Run pending migrations" for umbraco forms. When I press this, I get a message "Package migrations have successfully completed.", but the button "Run..." still remains. T…
  • Big Step Migrations - V4 to V7
    Forum / Big Step Migrations - V4 to V7
    Created: January 10, 2014 - Last update: January 10, 2014
    Umbraco Community,   I've recently joined a company that uses Umbraco 4 for their website. I am currently looking at the discussion of moving to V7 and I'd like to consider the impact of moving a website from 4 to 7. How is the backward-compatibility for V4 to V7 for an existing website or am I…
  • Accidentally deleted row in umbKeyValue migrations table
    Forum / Accidentally deleted row in umbKeyValue migrations table
    Created: November 29, 2021 - Last update: November 29, 2021
    I changed the schema for a custom table and wanted to delete the previous migration entry and accidentally deleted all the rows in that table (there was only 2-3 i think). I tried to run the site but its now stuck on the installer page. Read the log file and it states *Version 8.17.1 does not sup…
  • Migration to custom database
    Forum / Migration to custom database
    Created: January 31, 2017 - Last update: January 31, 2017
    I've been experimenting with using Umbraco migrations for creating tables and such. I've had success with using the Umbraco database, and adding/removing tables to it with migrations. For instance by using the context database ( ApplicationContext.Current.DatabaseContext.Database;). Is it possible…
  • Umbraco Migration SQL files
    Forum / Umbraco Migration SQL files
    Created: August 08, 2018 - Last update: August 08, 2018
    Hi, Is there any SQL files equivalent to migrations that included in Umbraco. core Conversion of Code first code existing here: [Umbraco Updates/Migrations][1] [1]: https://github.com/umbraco/Umbraco-CMS/tree/7ee510ed386495120666a78c61497f58ff05de8f/src/Umbraco.Core/Persistence/Migrations/Upgr…
  • Create content in a migration
    Forum / Create content in a migration
    Created: September 11, 2018 - Last update: September 11, 2018
    Hello, I followed this article ([https://cultiv.nl/blog/using-umbraco-migrations-to-deploy-changes/][1]) to create migrations. However, when I read the comments, I saw Shannon say that apparently, it's not recommended to use "ApplicationContent.Current" in migrations context. However, I'd like my…
  • Custom Table Best Practices
    Forum / Custom Table Best Practices
    Created: March 08, 2017 - Last update: March 09, 2017
    When creating custom tables in the Umbraco DB, is it best to do this in the web project, or the core project? I can see arguments either way, but am curious if the community is leaning one way or another. Thanks!Since you mention a Core and Web project, are you doing this on Umbraco Cloud? In eit…
  • V8 - Create table based on poco with attributes
    Forum / V8 - Create table based on poco with attributes
    Created: January 02, 2019 - Last update: March 08, 2019
    Having a go with v8 but noticed that some of the db method have gone private so not sure how to do the following: https://creativewebspecialist.co.uk/2013/07/16/umbraco-petapoco-to-store-blog-comments/ if (!db.TableExist("BlogComments")) { //Create DB table - and se…
  • Automatic action when installing nuget package
    Forum / Automatic action when installing nuget package
    Created: February 27, 2023 - Last update: February 27, 2023
    Hi, I've created a nuget package, and I want to have an action executed automatically on the install of the package (for the moment, there is a button on a dashboard to do it) The action is the automatic creation of document types. Is there a way to do that ? Regardsthanks. I'll have a lookHi Didier…
  • Database upgrading with CI/CD
    Forum / Database upgrading with CI/CD
    Created: September 28, 2018 - Last update: April 28, 2020
    Hi Community, I am trying to understand whether database upgrades run within a CI/CD setup. On my local machine i upgrade my version of Umbraco via Nuget and when i browse to the site it asks me to login so the system can upgrade. Once completed the web config gets the new version of Umbraco inser…
  • Umbraco.Core.Persistence check if field exists
    Forum / Umbraco.Core.Persistence check if field exists
    Created: March 19, 2018 - Last update: March 19, 2018
    We have some table with different migrations plan. But we get some issue when we recreate a complete new environment, as the fields in the last model are created. So later migrations fails because fields already exists. Is there anyway to define a field with a certain version with the persistence…
  • How to find out what db changes were made when upgrading?
    Forum / How to find out what db changes were made when upgrading?
    Created: December 16, 2014 - Last update: December 17, 2014
    Hi I upgraded from 6.0.5 to 6.2.4 and I'd like to know if there's a sql file or a change log of what is done when upgrading?   ThanksThanks Dave, I managed to set up an application context in a console app and run this: var migrationRunner = new Umbraco.Core.Persistence.Migrations.MigrationRunn…
  • How to set GUID as primary key in peta poco apprach
    Forum / How to set GUID as primary key in peta poco apprach
    Created: July 31, 2017 - Last update: July 31, 2017
    Hi I am using peta poco but no idea how to set primary and foreign key as GUID. ThanksHi Manish, that's not possible in Umbraco. You have to create the migrations by hand. Regards DavidHi Manish, have a look at umbraco migrations. Basically a class inheriting from MigrationBase. With that yo…
  • Anyone got experience with developing and publishing packages?
    Forum / Anyone got experience with developing and publishing packages?
    Created: May 16, 2017 - Last update: May 16, 2017
    I want to create and publish a package which just contains some views, partial views, a dll and creates a custom table in the default umbraco database. Does anyone know the best way to go about making this happen in a package please? Thanks PaulHi, for creating tables / config, you should look at…
  • Feature ideas...
    Created: May 23, 2013 - Last update: May 23, 2013
    I think it would be really cool if there was a button that reformats the code. I often have to grab chunks of html, script and css from sites - especially during migrations - it would be nice to go "click" and it cleans it all up for you...
  • Upgrade package
    Forum / Upgrade package
    Created: August 27, 2018 - Last update: May 24, 2019
    Hi, I'm creating a package containing template, documenttype, macro, view, etc etc. This package will be deploy in different web site. If I make change to the package, how I can distribute across the different site without losing data? The only possibility that I see is to unistall and then instal…
  • How to seed data into a new table
    Forum / How to seed data into a new table
    Created: November 27, 2021 - Last update: November 29, 2021
    Hi I created a table using your guide https://our.umbraco.com/Documentation/Extending/Database/index-v8 However when I use migrations in normal applications I have up/down methods to seed the data so I don't have to enter it manually. I don't see any documentation on Umbraco in how I do this? Co…
  • Umbraco migration suddenly not working
    Forum / Umbraco migration suddenly not working
    Created: January 29, 2016 - Last update: February 01, 2016
    Hello, We're using Umbraco migrations for creating custom database tables. This has always worked without any issues until now. When I try to run a migration the creation of the table works, but I get this exception afterwards: Request is not available in this context at System.Web.H…
  • Database Upgrade from 7 to 8 taking ages
    Forum / Database Upgrade from 7 to 8 taking ages
    Created: December 09, 2020 - Last update: December 11, 2020
    Hi, We're trying to upgrade our site from 7.15.3 to 8.4.2 and the upgrade process is taking forever. I can see there is a lot of SQL updates going on and I was wondering if these are available as SQL scripts that can be run directly in SSMS rather than waiting for the application to do this? I've…
  • Database configuration failed 7.15.10 to 8.1.0
    Forum / Database configuration failed 7.15.10 to 8.1.0
    Created: October 06, 2023 - Last update: October 06, 2023
    Any can help me on this error. when i upgrade 7.15.10 to umbraco 8.1.0 {"@t":"2023-10-05T11:11:01.4543898Z","@mt":"Database configuration failed","@l":"Error","@x":"System.InvalidCastException: Invalid cast from 'System.DateTime' to 'System.ValueTuple`2[[System.Nullable`1[[System.DateTime, mscorlib…
  • Custom data as part of content flow
    Forum / Custom data as part of content flow
    Created: October 15, 2018 - Last update: April 29, 2019
    Hi, I have some data in custom tables that I want to be deployed using content flow in my cloud projects. How would I do this ? I had a look at ValueConverters but that is meant to be used for transfering content from a specific property editor. My data will be used inside the content (eg placeh…
  • Usync migration
    Forum / Usync migration
    Created: April 17, 2024 - Last update: April 17, 2024
    Hi, I am using usync migration package for v8 latest to migrate nested content to block list in umbraco 10 latest and everything working fine but not sure how to migrate users and members. Can anyone help me on this?Hi Ganesh Users and Members aren't migrated with uSync Migrations. What I'd usual…
  • Umbraco Migration 7.6.3 to 8.0 version
    Forum / Umbraco Migration 7.6.3 to 8.0 version
    Created: April 06, 2022 - Last update: April 08, 2022
    Is there any automated way to change obsolete data types in Umbraco 7.6.3 version while migrating to 8.0.Hi Biplab I think there is an example of how to write an archetype - nested content migrator inside the Our. Umbraco. Migrations source: https://bitbucket.org/proworks/our.umbraco.migration/sr…
  • Use the table 'umbracoKeyValue' for storing keyvalue-pairs
    Forum / Use the table 'umbracoKeyValue' for storing keyvalue-pairs
    Created: August 09, 2021 - Last update: August 09, 2021
    Hi there, We want to store a key value pair for our application and update the value periodically. Is it "allowed" to store our own date in the table umbracoKeyValue or will this break stuff? I can't find any documentation on this table. I know that is used for migrations, but don't know if we can…
  • Upgrade custom database table
    Forum / Upgrade custom database table
    Created: September 26, 2016 - Last update: September 26, 2016
    Hi, I have a plugin released which has a database table that in a next version will have an extra column. In my application event handler if have the following code: if (!db.TableExist("customTable")) db.CreateTable(false); So if the databse doesn't exists, it will create a new one. …
  • Umbraco 10 Nested Content to Block List
    Forum / Umbraco 10 Nested Content to Block List
    Created: July 31, 2023 - Last update: August 24, 2023
    Hi all, Anyone tried migrating Nested Content in Umbraco 10 to the Block List editor before? Will you be able to point me to the right directions if you had tried them before? ThanksOh thanks Mark Hi Jay uSync Migrations has a migration for Nested Content to Block List that might be of inspirati…
  • DatabaseFacade' does not contain a definition for 'MigrateAsync' in umbraco 13
    Forum / DatabaseFacade' does not contain a definition for 'MigrateAsync' in umbraco 13
    Created: March 16, 2024 - Last update: March 16, 2024
    Hi All I am trying to setup EF core to create new tables in umbraco 13.2.0 and using this [link][1] for refrence.![enter image description here][2] but GetPendingMigrationsAsync and MigrateAsync is missing and not recoganized as extention method, Is there any change in umbraco 13 to use migration…
  • Datebase tables are not created
    Created: January 29, 2020 - Last update: January 30, 2020
    I have CMSImport installed via nuget. Everything worked fine locally. But CMSImport doesn't work in production because the database tables were not created when I deployed. There are no references to CMSImport in the migrations table either. Host: Azure Web Apps Version: Umbraco 7.15.3, CMSImport…
  • Custom migration not being run
    Forum / Custom migration not being run
    Created: January 03, 2020 - Last update: January 03, 2020
    (Edit: I can't seem to post this to a proper category. My apologies.) I am trying to use a custom migration to alter a custom table in the database. My problem is that although the umbracoMigration table is updated with seemingly correct information about my custom migration after using Execute on…
  • Test Methods
    Created: October 16, 2015 - Last update: October 16, 2015
    I'm looking at the merchello code and not quite understanding how the database mocking works in the test framework. When I run the tests in debug mode I see it's running the various architecture like migrations etc and building the sample data. As if running live but nothing is written to the databa…
  • Related Links With Media Data Type Null in Property Type Extensions
    Forum / Related Links With Media Data Type Null in Property Type Extensions
    Created: December 03, 2014 - Last update: December 03, 2014
    Hi I'm trying to write some migrations for a node that contains a related links with media property.   In PropertyTypeExtensions when it tries to retrieve the data on var dataType = ApplicationContext.Current.Services.DataTypeService.GetDataTypeById(propertyType.DataTypeId)   dataType is r…
  • Project costs
    Forum / Project costs
    Created: December 03, 2012 - Last update: December 03, 2012
    Hi I have been doing research to feed into a proposal to use Umbravo as a corporate CMS at a large organisation and migrate two existing web sites to the CMS. The scope, as well as the migrations, is to install and configure Umbraco on Azure, brand it, train staff, produce handover documents and pro…
  • Migration plan update data in custom table
    Forum / Migration plan update data in custom table
    Created: April 21, 2023 - Last update: November 03, 2023
    Hello, I am trying to add columns to a table and then update the current rows inside the same table. I found the Update expression but I can't seem to find how to tell it which column to update. You can see the migration below where I want to update the 'SentInvoice' column of table 'Order'. p…
  • How to ensure dev and prod databases are kept in sync
    Forum / How to ensure dev and prod databases are kept in sync
    Created: October 28, 2020 - Last update: October 29, 2020
    Hello, We have an application that uses Umbraco. We only have one environment. We're at a point where we'd like to separate our environment into development and production. We'd like to maintain two separate databases for this. Does Umbraco support database migrations? How would we ensure the datab…
  • "An item with the same key has already been added." - ServiceContext.ContentTypeService.GetContentType
    Forum / "An item with the same key has already been added." - ServiceContext.ContentTypeService.GetContentType
    Created: May 17, 2019 - Last update: May 17, 2019
    Hi I'm using the API for migrations and as part of a migration I call: return ServiceContext.ContentTypeService.GetContentType(docTypeAlias); Occasionally that will just blow up with "An item with the same key has already been added." I was just wondering if theres a way to check if that ha…
  • Trying to undo Umbraco update broke my site. Invalid Column name ParentGroupId
    Forum / Trying to undo Umbraco update broke my site. Invalid Column name ParentGroupId
    Created: March 24, 2017 - Last update: March 24, 2017
    I accidentally upgraded umbraco via nuget from 7.3.7 to 7.5x I then logged into my sites back office and proceeded (regretfully) to follow the upgrade/install steps until completion. Everything was working fine. *Important: I did not back up the DB before upgrade. Then I realized that I did not w…
  • Do Not delete media from blob storage
    Forum / Do Not delete media from blob storage
    Created: August 29, 2016 - Last update: August 29, 2016
    Using the UmbracoFileSystemProviders.Azure project and ImageProcessor. We have an issue where we are using a single blob storage and the user deletes media from either our dev or staging. This is causing us a bit of grief because it then kills our courier migrations. Is there a setting in the .conf…
  • Guide for custom tables in UaaS
    Forum / Guide for custom tables in UaaS
    Created: March 12, 2016 - Last update: March 14, 2016
    So we have a client that use UaaS. They have now asked for a feature that requires a couple of custom DB tables. So the big question - how do you do this with UaaS?? Normally I would just connect to the DB, create the two tables and use the PetaPoco in Umbraco to add entries and fetch them. A comple…
  • Database failed to upgrade 8.18.5 -> 9.0.0
    Forum / Database failed to upgrade 8.18.5 -> 9.0.0
    Created: December 12, 2022 - Last update: June 11, 2024
    Hello I have a website from an Umbraco site that is the latest 8 version, 8.18.5. I have create a project with version 9.0.0. When I start the site pointing to that database I get the following error: The database failed to upgrade. ERROR: The database configuration failed with the following mes…
  • 1.11.0 Download
    Created: October 22, 2015 - Last update: October 26, 2015
    Hi I'm trying to do an upgrade but upgrade 1.10 to 1.12 does not work and the 1.11 upgrade files arent available on the website. Please adviseAny Feedback?Uplgrading from 1.10 to 1.12 gives the following error A duplicate value cannot be inserted into a unique index. [ Table name = merchTypeFie…
  • Content Migration v7 > v10
    Forum / Content Migration v7 > v10
    Created: November 25, 2022 - Last update: December 06, 2022
    Hi, I need to migrate content from a v7 umbraco site to a new v10 install. What is the best approach for this ? Will uSync work i.e. will the structure of the data being exported from the v7 work with v10? I need to migrate content, media and members. If anyone has any other ideas, I'd really app…
  • Umbraco Cloud Database Customization
    Forum / Umbraco Cloud Database Customization
    Created: December 17, 2018 - Last update: January 03, 2019
    I want to add some more tables to my existing cloud database. I selected the SQL Server CE as my database connection type. So it creates the Umbraco.sdf file in App_Data folder. So what can I do for this to add and update new tables?Hi Ram! If you follow the docs on how to work with databases on Um…
  • Anyone tried uSyncMigrations to migrate Nested Content to Block List with V10
    Forum / Anyone tried uSyncMigrations to migrate Nested Content to Block List with V10
    Created: January 05, 2024 - Last update: October 22, 2024
    Hi All, Was wondering if anyone tried the uSync Migration tool before? https://github.com/Jumoo/uSyncMigrations/blob/main/GETTING-STARTED.md I've been trying it out to convert Nested Content from V10.8.3 to Block List. The property seems to be converted nicely to Block List, but the old content…
  • Creating a Subscribe List
    Forum / Creating a Subscribe List
    Created: June 09, 2020 - Last update: June 10, 2020
    Hello, Can someone help me or point me in the right direction? I'm trying to create a subscribe list for my website using the API. Do I need to use migrations to create a table? I'm finding migrations confusing and haven't found anything to help me understand this better. I've read the database…
  • How do you create a composite primary key with Umbraco's Migration system?
    Forum / How do you create a composite primary key with Umbraco's Migration system?
    Created: June 05, 2020 - Last update: June 08, 2020
    I am trying to create a simple table using Umbraco's database migration system, and I can't figure out how to create a table with a composite primary key. Here's an example of the code I am trying to use: using Umbraco.Core.Migrations; using Umbraco.Core.Persistence.DatabaseModelDefinition…
  • Inconsistent dataTypeId's - Migration Issues
    Forum / Inconsistent dataTypeId's - Migration Issues
    Created: March 25, 2020 - Last update: March 25, 2020
    Morning all! Hope everyone is safe and well. I've noticed that a data type record gets created in the cmsDataType table only once it is used for the first time. The reason I noticed this is that we run migrations via the api for creating properties on nodes. The issue we've found is that then whe…
  • How to remove unused package files?
    Forum / How to remove unused package files?
    Created: February 13, 2018 - Last update: February 15, 2018
    Hi all, when you release a new version of your package and you have removed some files. How can we do the same when someone upgrades to this new version using the **Packages** tree in the Developer section? Can we use Package Actions to perform this task? Its about .html files that we want to…
  • Create new table in umbraco database from package
    Forum / Create new table in umbraco database from package
    Created: April 12, 2017 - Last update: April 12, 2017
    How can I create a custom table in umbraco CMS from a package? I wanted to create a table in umbraco CMS where I will save my License key and other key values. Please help in this regard or any other way to save License keys in Umbraco against the package?Hi Amna, You can use the migrations framew…
  • Error when attempting to fulfill order
    Created: March 21, 2017 - Last update: March 21, 2017
    When I attempt to fulfill an order in the backend I receive a generic error message with no detail and no stack trace. When I capture the request via fiddler I see it returning the following. Does this mean my database schema somehow got messed up during install/upgrade? If so, does anyone have an i…
  • Updating documents via razor code?
    Forum / Updating documents via razor code?
    Created: August 25, 2016 - Last update: August 25, 2016
    From time to time, with any CMS we come across the need to mass update a set of documents in some way - something needs changing that we hadn't planned for. For example a mass replace of the values in a specific property on a number of pages. I have looked at the SQL tables in Umbraco and could pro…
  • What happens when you upgrade 7.3.2 to 7.4.2?
    Forum / What happens when you upgrade 7.3.2 to 7.4.2?
    Created: March 29, 2016 - Last update: March 29, 2016
    Hi! I wonder what actually happens when you "install" (upgrade) a version? Do I need to do it on the server, or is it only "messing" with the database? My question is probably more exact: What happens when I go into the system for the first time after an upgrade (this time between 7.3.2 - 7.4.2) a…
  • Creating a Custom Database Table
    Documentation / Extending / Database
    Created: - Last update: May 16, 2025
    Creating a Custom Database Table In Umbraco it is possible to add custom database tables to your site if you want to store additional data that should not be stored as normal content nodes Below you will find an example that sets up a database table by registering a component in a composerImplem…
  • Adding custom uSync.Migration.Migrator file
    Forum / Adding custom uSync.Migration.Migrator file
    Created: January 21, 2025 - Last update: January 21, 2025
    I'm using uSync Migrations to go from 8 to 13 and it's working great. However I'm confused about adding my own migrators. I compiled uSync.Migrations.Migrators.dll with my own additions and added it to the website project in a /lib folder. I added it as a project reference from there. Whenever t…
  • IContentService in Custom Migration
    Forum / IContentService in Custom Migration
    Created: March 04, 2024 - Last update: March 05, 2024
    Is IContentService the only way to retrieve content when running a custom migration (inheriting from MigrationBase) Is there any way I can get PublishedContent Context? I want rapid read-only access without hitting the database.Hi Drummerboy, The answer kind of depends, you could inject in a IUmbr…
  • Upgrading from 8.17 to Umbraco 10
    Forum / Upgrading from 8.17 to Umbraco 10
    Created: June 29, 2023 - Last update: June 29, 2023
    Hi I have a website which is running on Umbraco 8.17. I would like to upgrade this to the latest version of Umbraco 10. What steps would i need to take in order to get this to the latest version of Umbraco 10? After reading around some suggest to upgrade to 9 then 10. Could i continue using the…
  • Encountered initialization error after installing umarketing via nuget
    Created: June 19, 2020 - Last update: July 17, 2020
    **Umbraco Version:** 8.2.2 **uMarketing Version:** 1.1.2 I installed the nuget package, but when I run it, it fails to finish running the migrations. Here is the error I'm getting. System.InvalidOperationException: A transaction with minimum RepeatableRead isolation level is required. at U…
  • Invalid object name 'cmsPropertyTypeGroup'.
    Forum / Invalid object name 'cmsPropertyTypeGroup'.
    Created: July 30, 2018 - Last update: July 30, 2018
    I want to update Umbraco From version 4.11.3 to 6.0.7. In wizard when database configuration I get this error : The database configuration failed with the following message: Invalid object name 'cmsPropertyTypeGroup'. Please check log file for additional information (can be found in '/App_Data…
  • Package documentation gone?
    Forum / Package documentation gone?
    Created: January 12, 2017 - Last update: January 19, 2017
    Hi there. If I click on "Package actions documentation" in Developer Packages Package Actions I am sent to a 404: https://our.umbraco.org/wiki/reference/packaging/package-actions Anyone know where the documentation has been moved to?Note: If it should be in anyones interest, I found the documen…
  • Migrating Form Entries from Umbraco 8 to Umbraco 13
    Forum / Migrating Form Entries from Umbraco 8 to Umbraco 13
    Created: July 30, 2024 - Last update: July 30, 2024
    Hi everyone, I am in the process of upgrading an Umbraco 8 project to Umbraco 13. I’ve successfully migrated document types, data types, and translations using uSync migrations. I also used the uSync.Forms package to migrate the Umbraco Forms themselves. However, I’m now looking to migrate the for…
  • Error State-Batching
    Forum / Error State-Batching
    Created: July 28, 2021 - Last update: July 29, 2021
    We ran into this error after being in production for one day. Had to take it offline and revert. I can't find any info on it. Server Error in '/' Application. Boot failed: Umbraco cannot run. See Umbraco's log file for more details. - Umbraco.Core.Exceptions.BootFailedExcepti…
  • Upgrade - DB update script?
    Forum / Upgrade - DB update script?
    Created: May 15, 2015 - Last update: May 15, 2015
    Hi, I'm upgrading umbraco from 4.11.10 to latest (7.2.5). I've read general upgrade guide and version specific guides and they all makes sense. I already went (on dev) from v4.11 - v6.0 and after hitting problem when going directly to v7: Umbraco.Web.Install.InstallException: The database fa…
  • Custom database migration not applied
    Forum / Custom database migration not applied
    Created: April 24, 2020 - Last update: April 24, 2020
    Hi Devs, I developed a new feature in an Umbraco v7 website where a new custom table is needed. In order to automatically update the database schema I developed a new custom migration (not the first time for me with migrations). The migration is executed correctly in development and staging environm…
  • Error while upgrading umbraco 8.02 to 8.1
    Forum / Error while upgrading umbraco 8.02 to 8.1
    Created: July 11, 2019 - Last update: July 24, 2019
    Hi, We are trying to upgrade our umbraco project ( v8.02) to the latest version (8.1). But after starting the upgrade, an error occurs. (See screenshot + logging for details. What can we do to fix this issue? Arie ![enter image description here][1] [1]: /media/upload/447bd4d1-e396-4948-9475…
  • DTO based Schema Migration Considerations
    Forum / DTO based Schema Migration Considerations
    Created: February 22, 2019 - Last update: February 22, 2019
    Within Umbraco there are some really handy tools for creating tables from DTO object definitions, saving you having to explicitly define your DB table structures. public class MyModel { public int Prop1 { get; set; } public int Prop2 { get; set; } public int Prop3 { get…
  • Package uninstall via migration
    Forum / Package uninstall via migration
    Created: May 31, 2017 - Last update: January 27, 2021
    Guys, I have created an umbraco package during install i have to update examine config files the nuget install / uninstall all works fine. For the umbraco package I have got update to config files working via migration. Issue i am having is on uninstall package the down part of migration does n…
  • Package actions
    Forum / Package actions
    Created: November 04, 2015 - Last update: March 24, 2017
    Is there any decent documentation regarding package actions anywhere? Most of the the documentation and articles that I've found are either out of date or link to sites that don't exist anymore!Hi Kevin, Thanks for the info, this is a great help. Thanks for the links. Cheers, MarcHi I can't tal…
  • System.InvalidOperationException: Nullable object must have a value. in the Umbraco Database Migration from 7.15 to 8
    Forum / System.InvalidOperationException: Nullable object must have a value. in the Umbraco Database Migration from 7.15 to 8
    Created: May 21, 2021 - Last update: May 22, 2021
    Hi there, I have an issue with many people encountering the same issue when they migrate from Umbraco 7.15 to Umbraco 8.1, that is the System.InvalidOperationException: Nullable object must have a value error in the logs, I have specified in the web config to debug with further info, but there is no…
  • XML Sitemap extremely slow
    Created: November 19, 2020 - Last update: January 26, 2022
    Hi, we're currently having an issue with the XML sitemap being extremely slow to regenerate after making content changes. We'll make a change in Umbraco, hit /sitemap.xml and it'll take around 10 minutes to load. Is there a way of improving the speed? Any kind of caching we could do? Any help would…
  • Updating from vendr 1.2.10 leaves site unbootable
    Created: February 23, 2021 - Last update: February 24, 2021
    The current version of my site is Umbraco 8.6.6, and I'm using Vendr 1.2.10. I would like to update to Vendr 1.4.2. When I go to "Manage Nuget Packages for Solution…" in Visual Studio and update each of my projects to use the appropriate Vendr packages for a new version (I've tried 1.4.2 and 1.3.5…
  • Umbraco upgrade from 7 to 10 or 11
    Forum / Umbraco upgrade from 7 to 10 or 11
    Created: June 02, 2023 - Last update: June 17, 2024
    Hi, I wonder, has anyone successfully upgraded an Umbraco v7 site with extensive custom code to Umbraco v10 or 11? If so, how did it go? Additionally, what are some key issues that I should keep in mind during the upgrade process? There is a website written on Umbraco v7.16.13 which needs to be u…
  • Umbraco 7.4.0 has a breaking change that affect Merchello (for upgrades) - Here's the fix
    Created: February 11, 2016 - Last update: August 11, 2016
    **Issue - Breaking Change in Umbraco** http://issues.umbraco.org/issue/U4-7738 Umbraco runs "migrations" during the upgrade process. This happens right after you are redirected to the login screen, authenticate and press the button to "Upgrade Umbraco". One of the migrations, included a change th…
  • Umbraco 8 fails to Boot
    Forum / Umbraco 8 fails to Boot
    Created: July 24, 2020 - Last update: April 16, 2021
    Hi Been working on a Umbraco 8 website, all working fine in 8.6.2, added in Vendr and all fine. Been working on the site for a couple of weeks. I added in an API Controller last night, ran Umbraco to test the API call and got hit by this: Boot failed: Umbraco cannot run. See Umbraco's log fil…
  • Quick opinion(s) please on upgrade
    Created: February 01, 2017 - Last update: February 07, 2017
    Hi, I wonder if I could quickly ask for opinions. I have a client with limited budget on v1.13 of Merchello. There are a couple complex issues with the site but largely it is straightforward. So my query is: 1. How strongly should I advise them to upgrade to v2/ what are the benefits for them? 2. H…
  • Best Practices (Autofac, extending umbraco DB, asp.net Identity, git)
    Forum / Best Practices (Autofac, extending umbraco DB, asp.net Identity, git)
    Created: December 06, 2016 - Last update: December 29, 2016
    Hi everyone, so, a bunch of questions on the best practices :) there are 2 projects 1) vanilla umbraco project with custom macro and designs 2) asp.net mvc project, with ef6 code-first db derived from IdentityDbContext as of now those are 2 separate projects, 2 different databases, and 2 differen…
  • Bizarre and incorrect change logs in rollback
    Forum / Bizarre and incorrect change logs in rollback
    Created: October 19, 2023 - Last update: October 19, 2023
    We recently migrated our major web project to Umbraco 11 from Umbraco 7 using uSync Migrations. Everything went fairly smoothly, but since we've gone live I've noticed the rollback section isn't reporting changes correctly, if at all! It seems to be stuck on the same red and green changes on every…
  • Custom database CRUD (or, where is my IScopeProvider?)
    Forum / Custom database CRUD (or, where is my IScopeProvider?)
    Created: July 15, 2021 - Last update: July 26, 2023
    Ahoy-hoy people! I'm working with v9 RC1, trying to create repositories/services for my custom tables (created via migrations), and I thought it would be pretty much same procedure as last version, but... [the docs say there should be an IScopeProvider][1] but it's nowhere to be found? I've even ch…
  • Implementing a sequential order number generator
    Created: February 22, 2023 - Last update: February 23, 2023
    Is there any sample code out there implementing a sequential order number generator? I'm particularly looking for code which could create a custom table on demand and then load and save a single record. I guess this question could also be "how to do custom database access from Vendr". Disclaimer,…
  • Migrate to Umbraco 11.1 - Property gone from Document type
    Forum / Migrate to Umbraco 11.1 - Property gone from Document type
    Created: January 25, 2023 - Last update: January 26, 2023
    Hi, I migrated from 7 to 8, 9, 10, 11 Somehow, when I upgraded to 11, when I click on each item in the tree I only have Meta data, but the Properties tab somehow gone, disappear. Not sure what happened - when I migrated to 8/9 etc. it was still there. Then suddenly on 11.1 I can't see it on any i…
  • New Nuget and file removal on uninstall
    Forum / New Nuget and file removal on uninstall
    Created: June 09, 2022 - Last update: June 09, 2022
    Hi, As of recent, it would appear that Powershell scripts are no longer used to populate and remove files on Nuget package installation/ uninstallation. It would appear that it is all managed using MsBuild. I am creating a package for Umbraco and have successful migrations on installation. The file…
  • Create Custom Database Table in Umbraco 8
    Forum / Create Custom Database Table in Umbraco 8
    Created: August 02, 2019 - Last update: September 21, 2021
    This has been so incredibly frustrating trying to get everything working in Umbraco 8, so much so that I'm almost to the point where I'm either going to downgrade or else find a different CMS. Prior to v8 it was seemingly a lot simpler to create a custom database table, but I can't seem to figure…
  • Move Members from Umbraco 7 to Umbraco 8
    Forum / Move Members from Umbraco 7 to Umbraco 8
    Created: May 14, 2020 - Last update: May 30, 2020
    Hi, Does anyone have any experience moving members between Umbraco V7 and V8. I'm struggling to find any examples or instructions for this. Cheers, MarcHi Alex, Late reply because I had issues getting into my account, Umbraco have now sorted this. I havent had a chance to look at this yet. Wil…
  • Umbraco 8 Migration Plan re-run?
    Forum / Umbraco 8 Migration Plan re-run?
    Created: April 16, 2020 - Last update: April 16, 2020
    Hi, We've got some custom tables in out Umbraco 8 solution. Whilst in development it's common for a migration to not be "quite right" and generally we'd roll back the migration manually, fix the migration, delete the migration from umbracoMigrations and allow it to run again. In umbraco 8 however…

Code Of Conduct - Privacy Policy

 

Our.umbraco.com is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.