descala/haltr — Issue #19: Problem completing migration?
Author: nroach
Created: 2011-12-05 20:20:03+00:00
State: open

Hi, I was trying to get haltr installed on a bitnami redmine 1.2.1 stack but have run into table creation problems on db:migrate_plugins.

Do: rake db:migrate_plugins RAILS_ENV='production'
Gives:
Migrating haltr...
== ChangeDiscountPercentDefault: migrating ===================================
-- change_column_default(:invoices, :discount_percent, 0)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Table ''$DATABASE.invoices' doesn't exist: SHOW FIELDS FROM `invoices`

Do: mysql mysql> show tables;
Gives:
+-------------------------------------+
| Tables_in_$DATABASE |
+-------------------------------------+
| attachments |
| auth_sources |
| boards |
| changes |
| changesets |
| changesets_issues |
| clients |
| comments |
| companies |
| custom_fields |
| custom_fields_projects |
| custom_fields_trackers |
| custom_values |
| customers |
| dmsf_file_locks |
| dmsf_file_revision_accesses |
| dmsf_file_revisions |
| dmsf_files |
| dmsf_folders |
| documents |
| enabled_modules |
| enumerations |
| groups_users |
| issue_categories |
| issue_relations |
| issue_statuses |
| issues |
| journal_details |
| journals |
| member_roles |
| members |
| messages |
| news |
| open_id_authentication_associations |
| open_id_authentication_nonces |
| projects |
| projects_trackers |
| queries |
| repositories |
| roles |
| schema_migrations |
| settings |
| time_entries |
| time_trackers |
| tokens |
| trackers |
| user_preferences |
| users |
| versions |
| watchers |
| wiki_content_versions |
| wiki_contents |
| wiki_pages |
| wiki_redirects |
| wikis |
| workflows |
+-------------------------------------+
56 rows in set (0.00 sec)