Project

General

Profile

Bug #10802

relation "users" does not exist present when migrating

Added by Eric Helms about 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Database
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When running db:migrate, the following error is present:

<ActiveRecord::StatementInvalid> PG::UndefinedTable: ERROR:  relation "users" does not exist
LINE 5:              WHERE a.attrelid = '"users"'::regclass
                                        ^
:             SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
              FROM pg_attribute a LEFT JOIN pg_attrdef d
                ON a.attrelid = d.adrelid AND a.attnum = d.adnum
             WHERE a.attrelid = '"users"'::regclass
               AND a.attnum > 0 AND NOT a.attisdropped
             ORDER BY a.attnum


Related issues

Related to Foreman - Bug #12225: TopbarSweeper should invalidate on plugin installation/removalClosed2015-10-20

Associated revisions

Revision 7faa9966 (diff)
Added by Eric Helms about 4 years ago

Fixes #10802: Fix error that appears in migrations related to users.

History

#1 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2455 added
  • Pull request deleted ()

#2 Updated by Dominic Cleal about 4 years ago

  • Category set to Database
  • Assignee set to Eric Helms
  • Legacy Backlogs Release (now unused) set to 63

#3 Updated by Eric Helms about 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #12225: TopbarSweeper should invalidate on plugin installation/removal added

Also available in: Atom PDF