migration

Correct way to do a migrations diff

拥有回忆 提交于 2019-12-24 06:22:59
问题 I'm trying to perform a migrations diff between the schema yaml file and my database, using the following code $migration = new Doctrine_Migration($migrationsPath); $diff = new Doctrine_Migration_Diff(null, $yamlSchemaPath, $migration); $changes = $diff->generateMigrationClasses(); $numChanges = count($changes, true) - count($changes); From what I gather, $from = null here would imply that the from in comparison will be read from the database, but that does not seem to be the case. Reading

PGError: ERROR: column “email” of relation “users” already exists

北战南征 提交于 2019-12-24 03:16:12
问题 I've been developing a website on localhost and it wors fine. This morning, I've tried to push it to heroku using the command "git push heroku master" and then "heroku run rake db:migrate". When I try to do the second one, I have an error: Connecting to database specified by DATABASE_URL Migrating to DeviseCreateUsers (20130427200347) Migrating to CreateAuthentications (20130427210108) Migrating to AddTokenToAuth (20130427233400) Migrating to AddNotificationToAuth (20130427234836) Migrating

What code changes are required to migrate C++ from VS2003 to VS2005?

浪子不回头ぞ 提交于 2019-12-24 03:04:25
问题 We are considering moving the win32 build of our cross-platform C++ application from MS Visual Studio 2003 to MS Visual Studio 2005. (Yes, very forward-looking of us ;) Should we expect to many code changes to get it compiling and working? 回答1: I've just migrated a comparatively large codebase from VS2003 to VS2008 via VS2005 and the majority of issues I found were const/non-const issues like assigning the return value of a function that returns a const char * to char *. Both VS2005 and

What are the best practices for migrating an Oracle 10g database to Microsoft SQL 2008 R2? Application is using Hibernate

别说谁变了你拦得住时间么 提交于 2019-12-24 03:04:03
问题 Basically what the title says. Going forward, we need to start supporting both database platforms (and will start writing migrations accordingly), but we need to do the first initial "port". Our DBAs are confident they can convert the schema, tables, data types, etc. but our developers have less confidence that the DAOs will "just work". Can someone point us towards some resources we can review? Ideally common pitfalls to avoid, specific tests to run, etc. We will of course run the full suite

Getting InteropServices.SEHException on DllImport routine during debug after migrating project from .NET Framework 3.5 to 4.0

ⅰ亾dé卋堺 提交于 2019-12-24 01:55:25
问题 I have written an application that interfaces with the winspool print driver, and its been working just fine for months. I need to move my projects from .NET Framework 3.5 to 4.0 to include a coworkers assemblies, but doing this (and only doing this) causes one of my .dll imported method calls to fail when executing from the VS 2010 IDE. Both the debug and release binaries still work if I run them outside of the Visual Studio 2010 environment. Below is the line that now fails after moving to

Migrating code and history from SVN into TFS 2012

我只是一个虾纸丫 提交于 2019-12-24 01:24:00
问题 I have managed to setup SvnBridge v6.2 with TFS 2012. (Used this to make it work:How to upgrade codeplex solution with reference to TFS2012 library?) On Server PC we have installed TFS (server), SVN (servser) and IIS (on IIS SVNBridge is setup on port 8081). On Client PC we have installed VS2010 (TFS) and Tortoise SVN. Now I am following the SVNBridge website article which mentions that: Using TortoiseSVN, run a checkout using the following path: http://<yourwebserver>:8081/<TFSprojectname> I

How can I migrate versions from bugzilla into a new custom 'source version' field in redmine (what SQL syntax do I need)?

会有一股神秘感。 提交于 2019-12-24 00:56:12
问题 I'm in the process of migrating a bugzilla installation over to redmine. In bugzilla bugs were always logged against the version of software which caused the issue to be raised. Since redmine supports roadmaps I'd like to do a few things to migrate. The first part I'd like to do is to move all the current version settings over to a new custom 'source version' field. I've tried making a new custom field called 'source version' and manually altering a few bug reports to use that field. Some

Database migrations in Joomla

岁酱吖の 提交于 2019-12-24 00:54:19
问题 Is there any way of using database migrations with Joomla? I'm looking for a mechanism like the one found in Rails or Symfony. I would like to apply changes to the database whenever my model changes, e.g. adding a column, creating a new relationship, dropping some tables,... In this question, the accepted answer seems like a very cool option, but I don't know if there is something specific to Joomla. Thanks! 回答1: If you want to update your own component's DB schema you can refer to the

Migrating php4/mysql4 to php5/mysql5: expected php issues?

霸气de小男生 提交于 2019-12-24 00:36:00
问题 I have a legacy web application php4/mysql4 (MyISAM, db contains some cms, some user data, some calendar application). Now I am going to migrate to a new server with php5/mysql5. What are the typical php issues in such a migration scenary (php, sql queries, anything)? I've heard that the function parameter passing changed, call-by-reference / call-by-value. Can you give an example or explain? Anything else I should be aware of? (The mysql issues are covered in a different question: Migrating

What's the Django 1.7+ equivalent to South's add_ignored_fields()?

為{幸葍}努か 提交于 2019-12-23 22:24:59
问题 Back in previous versions of Django, we all used South to do migrations, and because it wasn't as smart as we might have liked, we sometimes needed to tell it to explicitly ignore some fields because such fields were too complicated for it to handle. We did this with add_ignored_fields and everything pretty much worked. In our case, we have a "field" on our model that's a subclass of CharField that actually attaches two additional fields to the model via the contribute_to_class method. It's