Skip to content

schema changes broken on psql #6

@lathonez

Description

@lathonez

Was fairly confident this would be broken and it is:

2016-08-21 22:57:28 |---------------------|Schema Change - Column: page_order|---------------------|
2016-08-21 22:57:28   Column 'page_order' exists in the prod database but not in local
Traceback (most recent call last):
  File "/home/wherewolf/clone-row/CloneRow.py", line 668, in <module>
    DOLLY.show_schema_updates()
  File "/home/wherewolf/clone-row/CloneRow.py", line 580, in show_schema_updates
    info = con.get_column_sql(self.database['table'], column)
  File "/home/wherewolf/clone-row/PDBC.py", line 188, in get_column_sql
    self.query('show fields from {0} where field = \'{1}\''.format(table, column))
  File "/home/wherewolf/clone-row/PDBC.py", line 280, in query
    return self.con.query(sql)
AttributeError: 'psycopg2.extensions.connection' object has no attribute 'query'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions