[GH-ISSUE #91] The sql generated for indexes is incorrect. #61

Open
opened 2026-02-25 21:33:10 +03:00 by kerem · 1 comment
Owner

Originally created by @jianwubayiba on GitHub (Apr 12, 2019).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/91

example:
ALTER TABLE logsDROP INDEXid; ALTER TABLE logs ADD PRIMARY KEY (id) USING BTREE;

But the index are both in server1 and 2,why it shown in the sql file?

Originally created by @jianwubayiba on GitHub (Apr 12, 2019). Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/91 example: `ALTER TABLE `logs` DROP INDEX `id`; ALTER TABLE `logs` ADD PRIMARY KEY (`id`) USING BTREE;` But the index are both in server1 and 2,why it shown in the sql file?
Author
Owner

@raducumbogdan commented on GitHub (Aug 3, 2021):

Bump, have the same issue, and not just for the "id" but for other indexes as well.
The script generates alters to delete and create same indexes.

<!-- gh-comment-id:891871419 --> @raducumbogdan commented on GitHub (Aug 3, 2021): Bump, have the same issue, and not just for the "id" but for other indexes as well. The script generates alters to delete and create same indexes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DBDiff#61
No description provided.