Skip to content

Can't rename table with schema specified on PostgreSQL #32

Closed
@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Dmitriy Bogomolov (@dvbogomolov)

op.rename_table('a', 'b', 'my_schema') gives invalid DDL:
ALTER TABLE my_schema.a RENAME TO my_schema.b

Valid DDL is: ALTER TABLE my_schema.a RENAME TO b
http://www.postgresql.org/docs/9.0/static/sql-altertable.html

op.rename_table('my_schema.a', 'b') also gives invalid DDL:
ALTER TABLE "my_schema.a" RENAME TO b

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions