Created
March 28, 2019 17:17
-
-
Save mccun934/b25876d81d8940be1f758370b84b4e30 to your computer and use it in GitHub Desktop.
Sequel::Migrator::Error: More than 1 row in migrator table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# foreman-rake db:migrate --trace | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
TABLE dynflow_schema_info | |
rake aborted! | |
Sequel::Migrator::Error: More than 1 row in migrator table | |
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/extensions/migration.rb:590:in `schema_dataset' | |
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/extensions/migration.rb:444:in `initialize' | |
foreman=# select * from dynflow_schema_info; | |
version | |
--------- | |
10 | |
10 | |
(2 rows) | |
^ | |
foreman=# delete from dynflow_schema_info; | |
DELETE 2 | |
^ | |
foreman=# insert into dynflow_schema_info (version) values ('10'); | |
INSERT 0 1 | |
foreman=# select * from dynflow_schema_info; | |
version | |
--------- | |
10 | |
(1 row) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment