Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backfilling plugin_schema_migrations broken plugin_schema_migrations already exists #2

Open
joemoore opened this issue Aug 3, 2009 · 0 comments

Comments

@joemoore
Copy link

joemoore commented Aug 3, 2009

On our project we collapsed our migrations, and after the first migration runs we have a plugin_schema_info table that looks like this:

  +----------------+---------+
  | plugin_name    | version |
  +----------------+---------+
  | tags           |       3 |
  | user           |      17 |
  +----------------+---------+

We also have an empty plugin_schema_migrations table.

Later, we run the following:

  class UpgradeUserPluginTo18 < ActiveRecord::Migration
    def self.up
      migrate_plugin('user', 18)
    end
  ...

The code on line 6 of lib/desert/plugin_migrations/2.1/extensions/schema_statements.rb blows up and the exception is eaten silently when the plugin_schema_migrations already exists. The plugin versions are not backfilled and the User plugin migrations run from migration 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant