Questions tagged [migration]

An action of moving between major versions of any framework, product or language, or, just as commonly, alteration to the data schema of an application. This might involve modifying existing data to make it work with the new version.

An action of moving between major versions of any framework, product or language, or, just as commonly, alteration to the data schema of an application. This might involve modifying existing data to make it work with the new version.

11009 questions
4
votes
2 answers

rake aborted! undefined method `migration_error=' for ActiveRecord::Base:Class

I am developing project on Ruby on Rails Till the present moment I used Rails 4 and everything was fine before I faced incapability issues with gems. I decided to rollback to Rails 3, changed my Gemfile, removed Gemfile.lock, all rails installations…
Iliya Stepanov
  • 113
  • 1
  • 9
4
votes
1 answer

How to change ActionForward with dynamic params in Struts 2

While migrating the application from Struts 1 to Struts 2 In some of the places, the same action class has been used for different type of views, based on the request params. For example: if the createType is 1 means need to append one param or if…
john
  • 859
  • 2
  • 12
  • 25
4
votes
2 answers

Rails / Mina Gem Creating Custom task to do seeding

I'm using the mina gem since 2 weeks and I've searched online to find a nice way to do my seeding in my rails staging. The seed must be a task so it is not called every time a deploy is done. What I already have is the following: desc "Seed data to…
FastSolutions
  • 1,809
  • 1
  • 25
  • 49
4
votes
0 answers

EF migrations boilerplate - where is it?

I'm up to speed with code first migrations and my project has evolved over several months to the stage where there are already dozens of migrations and I expect dozens more before the project closes. Each time I use package manager to add a…
Brian Lowe
  • 4,943
  • 1
  • 18
  • 20
4
votes
1 answer

MySQL Migration error: Invalid timestamp literal detected

I am trying to migrate a MS SQL 2008 R2 database to MySQL 5.6 CE. I am using the MySQL WorkBench 5.2. The migration finished with tons of errors. Most of the errors are: [WRN][ copytable]: Invalid timestamp literal detected: ''. This error…
elty123
  • 277
  • 3
  • 13
4
votes
1 answer

Flyway not finding migraions only in my jar file

I have a similar problem to this but I've migrate to version 2.1.1 and the problem are still here. I just do something like that Flyway flyway = new Flyway(); flyway.setLocations(MIGRATION_PACKAGES); flyway.setDataSource(getDatasource()); …
agonist_
  • 4,890
  • 6
  • 32
  • 55
4
votes
2 answers

Migrate (monolithic) Classic ASP to ASP.Net

For many years I have had an objective of moving out of ASP/VBScript to a "better" language - my preference would be C# as I have skills in C - but I would consider other languages too (including PHP etc. so not just DotNet) Objective is to have the…
Kristen
  • 4,227
  • 2
  • 29
  • 36
4
votes
1 answer

Disable project migration dialogue when opening a SharePoint 2010 project

We need to develop for SharePoint 2013 and SharePoint 2010 concurrently, so I installed Windows Server 2012 on my machine with a SharePoint 2013 installed, because of the downward compatibility of SharePoint 2013. When opening a solution containing…
4
votes
4 answers

Add auto increment with scope to existing column in migration-file rails

I have posts and organisations in my database. Posts belongs_to organisation and organisation has_many posts. I have an existing post_id column in my post table which I by now increment manually when I create a new post. How can I add auto…
4
votes
1 answer

Destroying an invalid migration

New to Rails here. Couple of questions about migrations: I created a migration that I no longer want. I want to remove it. Is the correct command simply rails destroy migration AddMyColumnToMyModel ? Let's say I mistype that migration name that I…
Ricky
  • 2,850
  • 5
  • 28
  • 41
4
votes
1 answer

Django South migration history causing an integrity error

My south migration history table is causing integrity errors every time I try to run a new migration. Here is the error: django.db.utils.IntegrityError: duplicate key value violates unique constraint "south_migrationhistory_pkey" DETAIL: Key…
JazzTpt
  • 93
  • 8
4
votes
1 answer

configuration.rb:140:in `const_get': uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError)

I've been stuck on this error for about 3 days now and I can't figure out how to correct it. Any help would be appreciated. I'm on a Windows machine by the way and I'm using Ruby v.1.9.3p392 & Rails v. 3.2.13 The command I issued before the error…
LilithX
  • 137
  • 1
  • 2
  • 10
4
votes
2 answers

Migrating GXT 2.x to GXT 3.x. What to do with the models?

I am now migrating an applicaition from GXT 2 to GXT 3. One of the major differences between the two is that GXT 3.x allows POJOs to be used in widgets, whereas GXT 2.x widgets require objects which implement ModelData. The problem is that I cannot…
Andrew
  • 2,663
  • 6
  • 28
  • 50
4
votes
1 answer

Heroku - how to remove table and run migration again?

I just discovered that one of my tables in Heroku app has a different structure than the one on my localhost. In the best way I would need to run the migration that create a new table again, but what is the best way to do that? Just simply manually…
user984621
  • 46,344
  • 73
  • 224
  • 412
4
votes
3 answers

Entity Framework Automatic Migrations Existing Database

I am building an ASP.Net MVC4 web application with Entity Framework 5. I had to use an existing sql server database but also wanted to use Code First, so I followed this tutorial http://msdn.microsoft.com/en-us/data/jj200620.aspx My application uses…
tcode
  • 5,055
  • 19
  • 65
  • 124