database-migration

Using liquibase on the existing database

做~自己de王妃 提交于 2020-07-31 09:45:53
问题 We have a existing database in production. We have decided to use liquibase for all further updates and create any new database (like development or integration). We have created liquibase scripts based on the existing production schema (to create any new database like development, integration, etc). On top of that script we have also added two more updates. Going forward all further updates to production DB will be done by liquibase. If we execute the liquibase on production, it will try do

Change database column type to decimal

笑着哭i 提交于 2020-06-29 05:59:05
问题 I am using Rails 3.2.3, and MySQL for my database I have created a model affiliate_payment.rb, with a column :amount , initially with datatype float . I tried to change this to a decimal with the following migration: class ChangeAffiliateIdAmountToDecimal < ActiveRecord::Migration def up change_column :affiliate_payments, :amount, :decimal end def down change_column :affiliate_payments, :amount, :float end end Ran rake db:migrate ... But when I check the column type to confirm, I find that

Understanding the behaviour of logicalFilePath in liquibase

删除回忆录丶 提交于 2020-06-08 20:07:50
问题 One of my changesets had a logicalFilePath which was incorrect(two changesets accidentally had the same logicalFilePath) and upon editing the logicalFilePath in an existing changeset, liquibase update failed with an error of duplicate column, which would mean that liquibase thought the changeset to be not executed and re-ran it. Does liquibase identify if a changeset has already been executed based on the 'EXECUTED' flag or the combination of 'id','author' and 'logicalFilePath'? Also, how do

Understanding the behaviour of logicalFilePath in liquibase

瘦欲@ 提交于 2020-06-08 20:07:06
问题 One of my changesets had a logicalFilePath which was incorrect(two changesets accidentally had the same logicalFilePath) and upon editing the logicalFilePath in an existing changeset, liquibase update failed with an error of duplicate column, which would mean that liquibase thought the changeset to be not executed and re-ran it. Does liquibase identify if a changeset has already been executed based on the 'EXECUTED' flag or the combination of 'id','author' and 'logicalFilePath'? Also, how do

How to migrate collections from TFS 2017 to Azure DevOps Server 2019 (Different DB servers)

≯℡__Kan透↙ 提交于 2020-05-29 10:36:10
问题 I have been handling an aging Windows Server 2008 machine with TFS upgraded in place to 2017.2. Now, with Azure DevOps Server 2019, support for Windows Server 2008 is no longer available. Also, the existing SQL Server is 2012 and is no longer supported as well. I cannot upgrade the database to SQL Server 2014+ as there is the OS restriction. and in our company, upgrading OS in-place is not allowed. Existing setup is as follows: Windows Server 2008 (One VM) TFS 2017.2 SQL Server 2012 Ent (On