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
338
votes
8 answers

Copy tables from one database to another in SQL Server

I have a database called foo and a database called bar. I have a table in foo called tblFoobar that I want to move (data and all) to database bar from database foo. What is the SQL statement to do this?
RyanKeeter
  • 5,939
  • 7
  • 32
  • 40
276
votes
14 answers

Moving Git repository content to another repository preserving history

I am trying to move only the contents of one repository (repo1) to another existing repository (repo2) using the following commands: git clone repo1 git clone repo2 cd repo1 git remote rm origin git remote add repo1 git push But it's not working. I…
Mario
  • 2,803
  • 3
  • 14
  • 11
125
votes
7 answers

How do you migrate an IIS 7 site to another server?

I'm wondering what is the best practice for moving a website to another server (along with all settings, etc.) Manually recreate the site on the new server (not maintainable for obvious reasons) Copy the applicationHost.config settings file Use…
Kalid
  • 22,218
  • 14
  • 44
  • 46
70
votes
15 answers

Django: dependencies reference nonexistent parent node

When I run the following command python manage.py migrate I receive this error from django so can't step forward in my practice: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) …
NIKHIL RANE
  • 4,012
  • 2
  • 22
  • 45
66
votes
3 answers

How to force migrations to a DB if some tables already exist in Django?

I have a Python/Django proyect. Due to some rolls back, and other mixed stuff we ended up in a kind of odd scenario. The current scenario is like this: DB has the correct tables DB can't be rolled back or dropped Code is up to date Migrations…
Pablo Viacheslav
  • 873
  • 1
  • 8
  • 15
65
votes
4 answers

How to efficiently manage frequent schema changes using sqlalchemy?

I'm programming a web application using sqlalchemy. Everything was smooth during the first phase of development when the site was not in production. I could easily change the database schema by simply deleting the old sqlite database and creating a…
ascobol
  • 7,554
  • 7
  • 49
  • 70
51
votes
9 answers

SyntaxError: Generator expression must be parenthezised / python manage.py migrate

I'm really new in programming and I wanted to follow the Djangogirls tutorial, but I'm stucked now. In the tutorial, I am here: To create a database for our blog, let's run the following in the console: python manage.py migrate (we need to be in…
julo6
  • 511
  • 1
  • 4
  • 3
42
votes
28 answers

"no such table" exception

In Django I added models into models.py. After manage.py makemigrations, manage.py migrate raised this exception: django.db.utils.OperationalError: no such table: auth_test_usertranslatorprofile I removed all old migrations and run makemigrations…
Milano
  • 18,048
  • 37
  • 153
  • 353
41
votes
4 answers

How to migrate existing asp.net application to asp.net MVC pattern format

I want to migrate an existing ASP.NET application to an ASP.NET MVC pattern format. What procedure should I follow? Any step-by-step instructions would be very helpful.
prabu
35
votes
2 answers

How to change schema of multiple PostgreSQL tables in one operation?

I have a PostgreSQL 9.1 database with 100 or so tables that were loaded into the 'public' schema. I would like to move those tables (but not all of the functions in 'public') to a 'data' schema. I know that I can use the following to move 1 table…
RyanKDalton
  • 1,271
  • 3
  • 14
  • 30
33
votes
4 answers

new to rails, setting up db then running rake db:create/migrate

hi im currently learning rails, and following a tutorial. the instructions were to edit the migration file after i've created the app, then running rake db:migrate, then rake db:create. i've edited the migration file to this: class CreateUsers <…
Harvey Katrina
  • 898
  • 1
  • 8
  • 14
31
votes
11 answers

Django migrations error KeyError: ('list', u'user')

I am trying to run python manage.py migrate or python manage.py makemigrations I got this error: Running migrations: No migrations to apply. Traceback (most recent call last): File "manage.py", line 10, in
Roberto
  • 1,472
  • 2
  • 16
  • 18
30
votes
7 answers

Laravel migration transaction

When developing i'm having so many issues with migrations in laravel. I create a migration. When i finish creating it, there's a small error by the middle of the migration (say, a foreign key constraint) that makes "php artisan migrate" fail. He…
olivarra1
  • 3,269
  • 3
  • 23
  • 34
29
votes
7 answers

How to update a database schema without losing your data with Hibernate?

Imagine you are developing a Java EE app using Hibernate and JBoss. You have a running server that has some important data on it. You release the next version of the app once in a while (1-2 weeks) and they have a bunch of changes in the persistence…
artemb
  • 9,251
  • 9
  • 48
  • 68
28
votes
6 answers

TFS shelveset migration from one branch to another

I have to migrate the shelveset created in one branch say "development" to another say "release". so that I can directly merge the shelveset then to release which was created for development branch. the command I have used is: tfpt unshelve…
superman
  • 377
  • 1
  • 5
  • 12
1
2 3
73 74