meher1993 commented on PR #56100:
URL: https://github.com/apache/airflow/pull/56100#issuecomment-3357732310
Hello @ashb - Facing a similar issue when migrating from 2.10.4 to 3.1.0.
Shouldn't similar changes be applied to the batch_alter_table during creation
of indexes for the following ?
idx_user_group_id
idx_user_id
idx_group_id
idx_group_role_id
For example,
```
batch_op.create_index("idx_group_id", ["group_id"], unique=False)
```
will be
```
batch_op.create_index("idx_group_id", ["group_id"], unique=False,
if_not_exists=True)`
```
```
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DuplicateTable) relation
"idx_group_id" already exists
[SQL: CREATE INDEX idx_group_id ON ab_group_role (group_id)]
(Background on this error at: https://sqlalche.me/e/14/f405)`
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]