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.

9601 questions
3
votes
2 answers

How do you deal with breaking changes in a Rails migration?

Let's say I'm starting out with this model: class Location < ActiveRecord::Base attr_accessible :company_name, :location_name end Now I want to refactor one of the values into an associated model. class CreateCompanies < ActiveRecord::Migration …
Adam Lassek
  • 34,137
  • 13
  • 87
  • 104
3
votes
1 answer

Java EJB migration to Spring

I'm migrating my EJBs to Spring beans and i have an issue with concurrency on some beans i have annotation @Lock(LockType.READ) or @Lock(LockType.WRITE) on methods and class when concurrency was managed by container, but in Spring concurrency is…
Dziuzepe
  • 51
  • 1
  • 5
3
votes
4 answers

Mixing stored procedures business logic and ORM

The company I work for develops a large application which is almost entirely based on stored procedures. We use classic ASP and SQL Server and the major part of the business logic is contained inside those stored procedures. For example, (I know,…
Jason
  • 4,197
  • 5
  • 28
  • 38
3
votes
2 answers

Why am I getting ExclusiveLock errors during a rails migration on postgres

getting error when trying to run a migration WARNING: you don't own a lock of type ExclusiveLock rake aborted! StandardError: An error has occurred, this and all later migrations canceled: the migration looks something like def up …
user2167582
  • 5,103
  • 10
  • 50
  • 95
3
votes
2 answers

Laravel migration - is it possible to use SQL instead of schema commands to create tables and fields etc?

We have an existing complex database schema complete with indexes, constraints, triggers, tables etc. With liquibase, you can point to pure sql files in your changesets, which could be a dump of the whole DB for the first (initial schema creation)…
John Little
  • 7,993
  • 14
  • 62
  • 108
3
votes
1 answer

Migration from MariaDB to MySQL

We need to move a db from MariaDB to MySQL db but are having trouble finding any documentation about this. Does anyone have any experience doing this? We currently have multiple dbs in MySQL and are trying to add a relatively small one from MariaDB…
db_gg
  • 119
  • 1
  • 9
3
votes
3 answers

How can I migrate my new migration file in Laravel?

sorry for silly question but I'm really facing problem. After migrating all the migration files. When I need another features for my project I have to make another table but When I'm going to migrate the new table using "php artisan…
3
votes
1 answer

How use DbContext in migration?

How can I use DbContext which works with the current database (that now use in migration). Example: namespace Data.SqlServer.Migrations { [DbContext(typeof(MyDbContext))] // I want use this context …
3
votes
2 answers

Rails: From UUID to ID

I've created a model Order with UUID as the primary key. Now, I'd like to change it back to a normal incremental integer. I've tried to run a migration like: add_column :orders, :id, :primary_key But it obviously doesn't work because there is…
hcarreras
  • 3,616
  • 2
  • 18
  • 26
3
votes
1 answer

Liquibase replace tag value?

How to replace tag value for next change set if I'm about to use the same variables but with different values. Example
M_F
  • 356
  • 4
  • 16
3
votes
1 answer

Magento 1.9 to 2 Migration : General error: 1419 You do not have the SUPER privilege and binary logging is enabled

I m migrating magento 1.9 to 2.x and when i try to migrate data using the migrate:data command it stops with the following error [Zend_Db_Statement_Exception] SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege and binary…
3
votes
4 answers

Update Angular CLI in existing project

I'm working on angular-cli 1.0.4 in existing project, I would like to update the version to 1.2.4. What is the best way to uninstall the old one and update to the newer one using npm with effecting my existing project? which updates the version on…
Aakash N
  • 61
  • 1
  • 7
3
votes
1 answer

Best practice for migrate data to production database Rails?

I have an rails 4 app running, with large migrations done, and i need a better way to do some push and update for data in production. my team use sql in migrations files for update data, but it's no the better aproach to do this, because when i go…
3
votes
1 answer

Django failing migration - Cannot query "peterson": Must be "User" instance

I'm on Django 1.9, Python 3.6. I made this migration to try and fill in UserProfiles for any users missing them. But I'm getting the error below. What's strange is the "user" variable seems to be a User instance. from __future__ import…
Greg
  • 39,830
  • 86
  • 217
  • 286
3
votes
1 answer

In Realm on android im getting "Field already exists" error but its on a fresh install?

ok. so i delete my app completely from android. Then on a fresh install i get the error Field already exists in 'PortfolioCoin': color. Why is realm trying to migrate on a fresh install? I got this in my application file Realm.init(this); …
MrRed
  • 567
  • 1
  • 5
  • 17
1 2 3
99
100