Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [api] The table UNIQUE INDEX is duplicated #362

Closed
2 of 3 tasks
liu-hai opened this issue Aug 4, 2023 · 1 comment · Fixed by #370
Closed
2 of 3 tasks

[Bug] [api] The table UNIQUE INDEX is duplicated #362

liu-hai opened this issue Aug 4, 2023 · 1 comment · Fixed by #370
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@liu-hai
Copy link
Contributor

liu-hai commented Aug 4, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

在将执行V1.1.0__DDL.sql 文件中的 DDL语句的时候发现建表语句的 UNIQUE INDEX 重复,如下图:
微信图片_20230804161807

What you expected to happen

mysql8中去创建该表的时候会有警告产生

How to reproduce

有可能是数据库里面重复定义了 然后脚本里面的sql语句是从数据库直接导出生成导致的,需要重新导出替换

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@liu-hai liu-hai added the bug Something isn't working label Aug 4, 2023
@github-actions
Copy link

github-actions bot commented Aug 4, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When the DDL statement in the V1.1.0__DDL.sql file is executed, it is found that the UNIQUE INDEX of the table creation statement is repeated, as shown in the following figure:
WeChat picture_20230804161807

What you expected to happen

There will be a warning when creating the table in mysql8

How to reproduce

It may be that the database is repeatedly defined, and the sql statement in the script is directly exported and generated from the database, which needs to be re-exported and replaced

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants