migrate

Migrating Subversion Repositories across servers

吃可爱长大的小学妹 提交于 2019-12-18 12:22:11
问题 We're in the process of moving servers and one of the last items is moving over the svn repositories. There are about 10 gigs of various svn repositories. They were created using this command: svnadmin create --fs-type fsfs Server A(original) has svn 1.4 while Server B(target) has svn 1.6. My thought was to use rsync to migrate the whole set of repositories (they are all in 1 folder on the server), but I am worried that some things might either not get migrated or I need special switches for

Django 1.8 RC1: ProgrammingError when creating database tables

荒凉一梦 提交于 2019-12-18 03:59:10
问题 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 error: python manage.py migrate >>> ... >>> ... >>> django.db.utils.ProgrammingError: relation "auth_group" does not exist All works perfectly with Django 1.7.x and I cannot find anything about this issue elsewhere. So, is it a big with the RC1

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

丶灬走出姿态 提交于 2019-12-17 21:53:08
问题 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 at a time. ALTER TABLE [tablename] SET SCHEMA [new_schema] Is it possible to move all of the tables to the new schema in one operation? If so, what would be the most efficient way to accomplish this task? 回答1: DO will do the trick: DO $$ DECLARE row

at least one unnamed head error when converting mercurial repo to git using fast-export

☆樱花仙子☆ 提交于 2019-12-13 15:27:42
问题 I am attempting to migrate from a mercurial repository to a git repository using fast-export, but I am getting Error: repository has at least one unnamed head: hg r491 回答1: I wrote a plugin for fast-export that allows you to specify the divergent commit for an unnamed head along with a new branch name, and that entire line will be moved to that new branch. /path/to/hg-fast-export.sh -r /path/to/hg_repo -f --plugin head2branch=aliases,373 --plugin head2branch=threads,374 Until this is

TFS Power tools Migrate doesn't actually migrate

只愿长相守 提交于 2019-12-13 14:19:02
问题 I would like to migrate a shelveset from one branch to another. Here is my command: tfpt unshelve MigrateShelf /migrate /source:"$/Code/OldBranch/Source" /target:"$/Code/NewBranch/Source" When I execute it, I the window pops up, but it is still unshelving into OldBranch. I see this question tfpt migrate for TFS doesn't do anything and it looks like he has the same question, but he accepted an answer, then complained that it didn't solve his issue? 回答1: I also had the same problem. After

Bootstrap Migrating or Updating Between v3.X

北慕城南 提交于 2019-12-13 09:18:42
问题 Is there is a guide to migrate or update between v3.X For example migrate from v3.1.0 to v3.2.0 Is it safe to update without making any changes? 回答1: Bootstrap adheres to Semantic Versioning, so there should be no incompatibilities when upgrading within the v3 release series. No changes should be necessary unless you want to use the new features added in 3.2. The only conscious derogation from SemVer within v3 so far has been a change in v3.1.0 to the markup expected for remote modals. And

Cannot migrate on Heroku

时光总嘲笑我的痴心妄想 提交于 2019-12-13 01:43:53
问题 I'd like to migrate database to production environment on Heroku. I typed the following code, however I got error. I have no idea what to do. I'm looking forward to your advice. Thank you for your kindness. $ heroku run rake db:migrate Running `rake db:migrate --trace` attached to terminal... up, run.2338 rake aborted! LoadError: libruby.so.2.2: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg_ext.so /app/vendor/bundle/ruby/2.2.0

Converting non-standard Subversion repository to git

别等时光非礼了梦想. 提交于 2019-12-12 16:19:01
问题 I have a repository whose layout is like this: trunk/ projectA projectB branches/ projectA-1.0 projectB-1.0 tags/ projectA-1.0.1 projectB-1.0.1 I want to convert them to separate git repositories with the trunk/projectA as the top-level directory and all it's branches as git branches. Whenever I try to specify a git svn init like git svn init -T trunk/projectA -b branches -t tags http://svn.example.com , the follow-up git svn fetch fails mysteriously on different revisions. Sometimes it gets

How to migrate Struts from 2.0 to 2.5?

瘦欲@ 提交于 2019-12-12 09:55:11
问题 I am working in a Struts 2.0 Project. What are the steps and precautions needed to do while upgrading Struts from 2.0 to 2.5? 回答1: Many things have changed since Struts 2.0 (that is 10 years old). They're all described in the version notes of each release, that you should read. The best shot you have, however, is to bring your 2.0 project to a 2.3 one (the latest version, that currently is 2.3.32). The biggest things that you'll need to refactor ( from 2.0 to 2.3.32 ) are: remove DMI (this

odoo 9 migrate binary field db to filestore

删除回忆录丶 提交于 2019-12-12 05:19:54
问题 Odoo 9 custom module binary field attachment=True parameter added later after that new record will be stored in filesystem storage. Binary Fields some old records attachment = True not used, so old record entry not created in ir.attachment table and filesystem not saved. I would like to know how to migrate old records binary field value store in filesystem storage?. How to create/insert records in ir_attachment row based on old records binary field value? Is any script available? 回答1: You