Skip to content

Commit

Permalink
Merge pull request #1506 from skyhound/master
Browse files Browse the repository at this point in the history
Model.table_exists() now checks whether table exists in its schema
  • Loading branch information
coleifer committed Feb 21, 2018
2 parents 327191b + 86746ab commit 94aee08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peewee.py
Original file line number Diff line number Diff line change
Expand Up @@ -5266,7 +5266,7 @@ def bind_ctx(cls, database, bind_refs=True, bind_backrefs=True):

@classmethod
def table_exists(cls):
return cls._meta.database.table_exists(cls._meta.table)
return cls._meta.database.table_exists(cls._meta.table, cls._meta.schema)

@classmethod
def create_table(cls, safe=True, **options):
Expand Down

0 comments on commit 94aee08

Please sign in to comment.