hdgarrood / redmine_release_notes

A plugin to add release notes to Redmine
GNU General Public License v3.0
73 stars 47 forks source link

does not work with Redmine 3.0.1 #120

Open abatista75 opened 9 years ago

abatista75 commented 9 years ago

With a fresh Redmine 3.0.1 install, the plugin does not work when installing the plugin ("can't redefine the primary key column Id")

mhiemstrapodiumtv commented 9 years ago

Change the content of db/migrate/001_create_release-notes.rb into

class CreateReleaseNotes < ActiveRecord::Migration
  def up
    create_table :release_notes, :primary_key => :id do |t|
      t.column :issue_id, :integer
      t.column :text, :string
    end
  end

  def down
    drop_table :release_notes
  end
end
jniltinho commented 8 years ago

rake aborted! StandardError: An error has occurred, all later migrations canceled:

you can't redefine the primary key column 'id'. To define a custom primary key, pass { id: false } to redmine/plugins/redmine_release_notes/db/migrate/001_create_release_notes.rb:20:in block in up' redmine/plugins/redmine_release_notes/db/migrate/001_create_release_notes.rb:19:inup'

class CreateReleaseNotes < ActiveRecord::Migration
  def up
    create_table :release_notes do |t|
      #t.column :id, :integer
      t.column :issue_id, :integer
      t.column :text, :string
    end
  end

  def down
    drop_table :release_notes
  end
end