Skip to content

remove duplicate execute_ddl, @impl true, table prefixes #103

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

Merged
merged 5 commits into from
Feb 20, 2023
Merged

remove duplicate execute_ddl, @impl true, table prefixes #103

merged 5 commits into from
Feb 20, 2023

Conversation

ruslandoga
Copy link

closes #102

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rafaelcaricio Rafael Carício

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rafaelcaricio Rafael Carício

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rafaelcaricio Rafael Carício

assert execute_ddl(create) == [
"""
CREATE INDEX "posts_category_id_permalink_index" \
ON "foo"."posts" ("category_id", "permalink")\
ON "posts" ("category_id", "permalink")\
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the test is about comments, I just removed the prefix option here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good

@ruslandoga ruslandoga marked this pull request as ready for review February 17, 2023 15:18
@ruslandoga ruslandoga changed the title Cleanup connection cleanup connection (remove duplicate execute_ddl, @impl true, table prefixes) Feb 17, 2023
@ruslandoga ruslandoga changed the title cleanup connection (remove duplicate execute_ddl, @impl true, table prefixes) remove duplicate execute_ddl, @impl true, table prefixes Feb 17, 2023
Copy link
Member

@warmwaffles warmwaffles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less code to maintain. I'll do another pass at this when it is ready.


assert execute_ddl(create) == [
"""
CREATE INDEX "posts_category_id_permalink_index" \
ON "foo"."posts" ("category_id", "permalink")\
ON "posts" ("category_id", "permalink")\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rafaelcaricio Rafael Carício
Copy link
Member

@warmwaffles warmwaffles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ruslandoga can you add an entry to the changelog as well about this change? We have an unreleased section with some breaking changes that I'll roll this into a 1.0 release as well.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rafaelcaricio Rafael Carício
@warmwaffles warmwaffles merged commit 7882a01 into elixir-sqlite:main Feb 20, 2023
@ruslandoga ruslandoga deleted the cleanup-connection branch February 20, 2023 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

some ddl callback clauses are duplicated
2 participants