Closed boyang9602 closed 3 years ago
The error is caused by passing the column names for a composite primary key as two args rather than an explicit array.
I suspect you're installing the latest version of the ghtorrent
gem which currently on rubygems is v0.11.01
this version was uploaded back in September 2015.
That version has different code to what you're seeing above which was fixed in this commit.
To fix this I'd recommend installing from GitHub instead of RubyGems.
gem install bundler
)source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.7.0'
gem 'ghtorrent', github: 'gousiosg/github-mirror'
gem 'sqlite'
bundle install
to install the gems including the latest version of ghtorrent
.🎉
Try to set up at local, this error occured: SQLite3::SQLException: AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY /home/ubuntu/.rvm/gems/ruby-2.5.7/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:147:in `initialize'
I think the problem is in the
011_add_issues.rb
, where the primary key is a combination ofevent_id
andissue_id
.Below is the full output:
below is the "adding issue history" part in
011_add_issues.rb
: