Questions tagged [migrate]

Migration is the process of moving data from container to another. This includes migration to and from physical containers (e.g. hard disks) and migration to and from logical containers.

Migration is the process of moving data from container to another. This includes migration to and from physical containers (e.g. hard disks) and migration to and from logical containers.

Migration often involves some form of reorganization of the data.

Physical migration includes (but is not limited to):

  • moving data from an old hard disk to a newer one
  • moving data from one server to another

Logical migration includes (but is not limited to):

  • migrating data from one database system to another (e.g. Oracle 10g to MySQL 5)
  • migrating existing web applications from one web server to another
  • migrating a cell phones contact list to another cell phone

In contrast to , the data held in the original system after the migration process has been successfully completed is not necessarily used any more.

1099 questions
6
votes
2 answers

Error when migrating: django.db.utils.IntegrityError: column "primary_language_id" contains null values

I am working on a Django project and made a model with several instances of a models.ForeignKey with the same Model. class Country(models.Model): name = models.CharField(max_length=100) primary_language = models.ForeignKey('Language',…
Johan Vergeer
  • 5,208
  • 10
  • 48
  • 105
6
votes
2 answers

Find the definer of a view in MySQL

I have moved a database that contains views from one machine to another, and now the views have become broken. I know I need to recreate the old user on the new machine in order to fix it, but my question is: How do I find out the username of the…
user3640967
  • 528
  • 2
  • 9
  • 16
6
votes
3 answers

Why does php artisan migrate nothing?

Running "php artisan migrate" does nothing: no database modifications, no message(olso no "nothing to migrate"), no error. No records are being added to table migrations as well. Previously, the command "php artisan migrate" was working fine. One of…
Charles Vlug
  • 79
  • 1
  • 7
6
votes
3 answers

Mongoose migrate

Anyone got a migrate module that they use to migrate mongodb data with the mongoose plugin? I am currently using the 'migrate' module and it works great except for the fact that I need to create/destroy my connection in each up/down. I.E. // Setup…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
6
votes
4 answers

Laravel Seeding Does not Fill in Fields

I have a database seed file: class ContactTableSeeder extends Seeder { public function run() { $contacts = array( array( 'first_name' => 'Test', 'last_name' => 'Contact', …
Gareth Daine
  • 4,016
  • 5
  • 40
  • 67
6
votes
2 answers

Successful heroku run rake db:migrate but columns don't seem to work

I added a new column called level to my table called ClassRequest, ran a rake db:migrate on localhost and the view worked perfectly. Pushed the changes to heroku and the view met an error "NoMethodError: undefined method `level' for #" So I ran…
Elisha
  • 63
  • 6
6
votes
1 answer

Hibernate swap out embeddable class for migrating existing data

I'm at a loss here, and perhaps it's something obvious because my Hibernate expertise is weaker than other areas. In legacy code there is a Hibernate @Entity class Foo. One of the its properties is this: private OldBar bar = new OldBar(); OldBar is…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
5
votes
2 answers

Errors when migrating extension to Manifest v3

Trying to migrate the Chrome extension from manifest v2 to v3 but running into some errors. The popup script appears to be working (home page pops up when I click the extension icon) but it seems to not see the background script at all. When…
5
votes
2 answers

How do I migrate my website, mySQL, php pages, files, settings etc to Amazon EC2?

Hi I am completely new to EC2 and new to server admin and have been working on a windows 2003 server with our current web application made with PHP pages, mySQL database, and serving image files from a single standalone windows 2003 server. I would…
undefined
  • 5,190
  • 11
  • 56
  • 90
5
votes
2 answers

Migrating user-level custom settings when upgrading app

I have an application that uses a custom configuration section for user-level settings. It's done this way instead of using Settings files so that the settings can be centralized in a single app.config for the program, instead of having one per…
KeithS
  • 70,210
  • 21
  • 112
  • 164
5
votes
2 answers

Move Mongo Embeded Document into Own Collection

Can someone point me in the right direction, i have a Collection (Forms) each Form has an embedded document array (Responses). Responses for each form have gotten massive and in hindsight embedding them was a bad idea (mongo documents including…
Question Mark
  • 3,557
  • 1
  • 25
  • 30
5
votes
2 answers

insert foreign key value laravel with migration in laravel

I want to insert foreign key when I will migration than add a foreign key value in 1 `public function up() { Schema::table('users', function (Blueprint $table) { $table->integer('role_id')->unsigned()->after('email')->nullable(); …
5
votes
1 answer

Laravel migrate error

I have a weird error when I lunch any migrate command (reset refresh rollback etc..), the error is : [ErrorException] session_start(): open({APACHEPATH}/sessions\sess_0pb5924dau2oehuo4h32lqnem3 , O_RDWR) failed: No such file or directory…
Soufiane Touil
  • 803
  • 2
  • 8
  • 17
5
votes
2 answers

Prepend to existing rake task

Defining an existing rake task again appends to the original, but I'd like to prepend to the db:migrate task. I want to raise an error beforehand in some cases. Is there a good way to prepend to an existing rake task?
Qaz
  • 1,556
  • 2
  • 20
  • 34
5
votes
4 answers

Upgrade from prestashop 1.6.1.9 to 1.7

Is it posible to upgrade from prestashop 1.6.1.9 to 1.7? Where is the official documentation?
Inbloo
  • 105
  • 1
  • 11