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
13
votes
9 answers

django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

My model: class Course(models.Model): language = models.ForeignKey(Language) name = models.CharField(max_length=50, unique=True, default='course') title = models.CharField(max_length=1024, default='no title') foreign_title =…
Stan Zeez
  • 1,138
  • 2
  • 16
  • 38
13
votes
4 answers

Django 1.8 RC1: ProgrammingError when creating database tables

I'm using AbstractBaseUser for my user models in various projects. Updating to Django 1.8 RC1 works smoothly and I can run the migrate management command. However, when trying to create a fresh database table layout from scratch, I get the following…
Simon Steinberger
  • 6,605
  • 5
  • 55
  • 97
13
votes
1 answer

Converting big bzr repository to git, what to expect?

I'm trying to convert some old Bazaar repositories to git, and while everything seem to go through smoothly, I'm a bit unsure if it really went as well as it claimed. My Bazaar repository is structured like…
Soraz
  • 6,610
  • 4
  • 31
  • 48
13
votes
2 answers

How to 'switch' from MySQL to Amazon RDS with minimal application impact?

Amazon officially states: "Amazon RDS gives you access to the full capabilities of a familiar MySQL database. This means the code, applications, and tools you already use today with your existing MySQL databases work seamlessly with Amazon RDS." I…
Kabeer
  • 4,138
  • 7
  • 40
  • 62
13
votes
6 answers

Rails mysql2 undefined method `accept' for nil:NilClass

I know that was a million times here but tried everything and I am still getting this error: $ rake db:migrate rake aborted! undefined method `accept' for nil:NilClass Tasks: TOP => db:migrate (See full trace by running task with --trace) This is…
mitch
  • 2,235
  • 3
  • 27
  • 46
12
votes
4 answers

return database_name == ':memory:' or 'mode=memory' in database_name TypeError: argument of type 'WindowsPath' is not iterable

I am practicing Django but when I command python manage.py makemigration and python manage.py migrate then I got an error as show in the title. the full error is mentioned below: C:\Users\Manan\python projects\djangoandmongo\new_Socrai>python…
Mannan
  • 156
  • 1
  • 1
  • 7
12
votes
3 answers

Relation already exists during rake migration

I have installed a blog engine to refinerycms which is working perfectly. Now I have generated a migration with some table fields changes (of course not refinerycms or blog tables), but I'm getting an error: == CreateBlogStructure: migrating…
Vaibhav Rajput
  • 189
  • 1
  • 2
  • 14
12
votes
2 answers

How to migrate from Gallery to HorizontalScrollView & ViewPager?

I need simple control for icon choosing on Android 2.2 and higher. Gallery was a better solution for me, but it is deprecated and I have to use HorizontalScrollView and ViewPager instead. But how to migrate easy? How to use this classes and controls…
BArtWell
  • 4,176
  • 10
  • 63
  • 106
10
votes
1 answer

Renaming models(tables) in Django

so I've already created models in Django for my db, but now want to rename the model. I've change the names in the Meta class and then make migrations/migrate but that just creates brand new tables. I've also tried schemamigration but also not…
Toby Green
  • 101
  • 1
  • 1
  • 3
10
votes
2 answers

Laravel: Base table or view not found: 1146 Table 'database.pages doesn't exist

I'm working on a CMS and I have a little problem with my migrations. I added a new migration file and I wanted to add that one. That didn't work so I ran this bit: php artisan migrate:reset After that I ran this bit: php artisan migrate:install php…
bobbybouwmann
  • 983
  • 3
  • 12
  • 24
10
votes
4 answers

Migrating a Gerrit project into a different instance of Gerrit

I have MainGerritServer which hosts many projects. Also, I have RogueGerritServer which also hosts many projects. I'm looking for a way to move a ProjectA from RogueGerritServer to MainGerritServer while preserving both Git commit history as well as…
Calvin
  • 622
  • 2
  • 8
  • 19
9
votes
0 answers

Migration from maven-jaxb2-plugin 0.14.0 to jaxb2-maven-plugin 2.5.0

Sharing my experience about migrating from org.jvnet.jaxb2.maven2 maven-jaxb2-plugin 0.14.0 to org.codehaus.mojo
9
votes
2 answers

AppBarLayout inflating error after migrating to AndroidX

When migrating to AndroidX I faced this problem: Java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mandarine.android/com.mandarine.android.features.root.RootActivity}: android.view.InflateException: Binary XML file line #18:…
Morozov
  • 4,968
  • 6
  • 39
  • 70
9
votes
9 answers

mysql server has gone away error during installing migration (laravel)

So I am using my cmd on my laravel folder and I tried to do (php artisan migrate:install). 2 errors came up. [PDOException] SQLSTATE[HY000] [2006] MySQL server has gone away [ErrorException] PDO::__construct(): MySQL server has gone away Can…
Mackinley
  • 107
  • 2
  • 3
  • 7
9
votes
8 answers

KeyError: ('profiles', 'talk') - How do I resolve?

Newbie here. Trying to build an app using Django and Postgres db. I am struggling to migrate at the moment getting this error "KeyError: ('profiles', 'talk')" Here is my error from my command line after trying to migrate: (myvenv) Abbys-iMac:talks…
bibby3316
  • 103
  • 1
  • 1
  • 6
1 2
3
73 74