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

Saving external JSON to DB with Rails

I'm making a GET call to an external source using the gem 'httparty'; here's my Controller.rb: def show response = HTTParty.get('URI') user = JSON.parse(response) user.each {|line| puts line['user']['id']} #the "['user']['id']" is because of…
asing
  • 385
  • 2
  • 7
  • 16
8
votes
2 answers

Django: migrate Table 'forum_user' already exists

I have changed the Django models, and I use the Django schemamigration to update the database. But, when I do python manager.py migrate app, it throws this error message: _mysql_exceptions.OperationalError: (1050, "Table 'forum_user' already…
mike
  • 1,127
  • 4
  • 17
  • 34
8
votes
5 answers

How to replace $*=1 with an alternative now $* is no longer supported

I'm a complete perl novice, am running a perl script using perl 5.10 and getting this warning: $* is no longer supported at migrate.pl line 380. Can anyone describe what $* did and what the recommended replacement of it is now? Alternatively if…
Rory
  • 40,559
  • 52
  • 175
  • 261
8
votes
8 answers

Connection refused SQL: select * from information_schema.tables where table_schema = firstdb and table_name = migrations and table_type = 'BASE TABLE

I have XAMPP installed and turned on which is how I access my phpmyadmin page. I have created a database in phpmyadmin called "firstdb". I have also created auth in laravel files stored locally. I am trying to migrate tables using php artisan…
Andres Osorio
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

Angular 5 -> Angular 6 Rxjs .map() to .pipe(map())

I have an Angular 5 project which has many modules and hundreds of components. Since RxJs 6 you have to use someObservable.pipe(map(...)) instead of someObservable.map(...) I want to migrate this project from Angular 5 to 6, but dont want to…
lynxSven
  • 555
  • 1
  • 10
  • 27
8
votes
2 answers

Refresh laravel migration for specific table

Can I run php artisan migrate:refresh for specific table? Or can I refresh specific table migration in general? I tried this: php artisan migrate --path=/database/migrations/selected/ But it's not working!
CairoCoder
  • 3,091
  • 11
  • 46
  • 68
8
votes
4 answers

Php artisan migrate no such file or directory

I created a make:migration when I try to run the migration I get the following error No such file or directory (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations). In my env file my db name…
Aaron
  • 4,380
  • 19
  • 85
  • 141
8
votes
4 answers

rake db:migrate produces "rake aborted! could not find table" error

I'm new to Rails and I'm building a simple project-tracking app for my employer. I've been developing the app on my Mac and pushing it to github. I just managed to clone my github repo to a windows box behind my company's firewall in hopes of…
hikari17
  • 143
  • 1
  • 2
  • 6
8
votes
1 answer

django, squash migrations, too many circular dependencies

I tried to squash migrations. Unfortunately there are just too many circular dependencies. Is there a way to start over the migrations (although my project is already deployed in production) than trying to squash the migrations? I don't have to…
eugene
  • 39,839
  • 68
  • 255
  • 489
8
votes
4 answers

Laravel artisan migrate fail

I am getting this problem: http://pastebin.com/B5MKqD0T PHP Fatal error: Uncaught TypeError: Argument 1 passed to Illuminate\Exception\WhoopsDisplayer::display() must be an instance of Exception, instance of ParseError given But I have no…
Jacob Lane
  • 103
  • 3
  • 8
8
votes
4 answers

Laravel php artisan migrate not working

When I try to use 'php artisan migrate' in Laravel I get 2 errors: [Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database (SQL: select * from sqlite_master where type = 'table' and name =…
S. Hantz
  • 81
  • 1
  • 3
8
votes
3 answers

Migrating MySQL UTF8 to UTF8MB4 problems and questions

Im trying to convert my UTF8 MySQL 5.5.30 database to UTF8MB4. I have looked at this article https://mathiasbynens.be/notes/mysql-utf8mb4 but have some questions. I have done these ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE =…
Banshee
  • 15,376
  • 38
  • 128
  • 219
8
votes
1 answer

Ignoring existing table when ./manage.py migrate

I have a question about Django's migration feature when there is an existing table. ContentData ContentType Faq UserLog TB_TEAM_INF When I try to do "./manage.py migrate" so it can create the 5 tables above from models.py, I got an error message…
ronnefeldt
  • 2,083
  • 23
  • 24
8
votes
1 answer

Unknown Attribute Error after Adding Columns to table Rails 3

i am incredibly new to Rails and am completely stumped. I really just need this too work as it is part of another larger mostly Javascript project, and the Rails portion just got dumped on me. I had to add columns to the page_events table (columns…
celeriko
  • 1,564
  • 1
  • 13
  • 26
8
votes
2 answers

Best way to Migrate Anonymous Profile

Is there an alternate way that migrates all parameters implicit? Or any other advantages. From MSDN: public void Profile_OnMigrateAnonymous(object sender, ProfileMigrateEventArgs args) { ProfileCommon anonymousProfile =…
Thomas Sandberg
  • 943
  • 2
  • 9
  • 19