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

Remove residual NamedConstraint gating #2199

Merged
merged 1 commit into from Sep 2, 2021

Conversation

tomhoule
Copy link
Contributor

@tomhoule tomhoule commented Sep 1, 2021

In particular:

  • Foreign key constraint names were not rendered in introspection
  • Default constraint names were not diffed in migrations

@tomhoule tomhoule added this to the 2.31.0 / 3.0.x milestone Sep 1, 2021
@tomhoule tomhoule force-pushed the named-constraint-forgotten-gates branch 7 times, most recently from 5da5746 to 50233b0 Compare September 1, 2021 15:17
@tomhoule tomhoule changed the title Delete residual NamedConstraint gating Remove residual NamedConstraint gating Sep 2, 2021
@tomhoule tomhoule force-pushed the named-constraint-forgotten-gates branch 2 times, most recently from 295f998 to 96f5c12 Compare September 2, 2021 06:12
@tomhoule tomhoule marked this pull request as ready for review September 2, 2021 06:12
@tomhoule tomhoule force-pushed the named-constraint-forgotten-gates branch 3 times, most recently from 3bef1ff to cbc229d Compare September 2, 2021 07:07
In particular:

- Foreign key constraint names were not rendered in introspection
- Default constraint names were not diffed in migrations
@tomhoule tomhoule force-pushed the named-constraint-forgotten-gates branch from cbc229d to de76a9d Compare September 2, 2021 07:11
@tomhoule tomhoule merged commit 587d59c into master Sep 2, 2021
@tomhoule tomhoule deleted the named-constraint-forgotten-gates branch September 2, 2021 11:38
Copy link
Contributor

@pimeys pimeys left a comment

Choose a reason for hiding this comment

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

Posthumous approval.

use barrel::types;
use enumflags2::BitFlags;
use expect_test::expect;
use introspection_engine_tests::test_api::*;
use introspection_engine_tests::TestResult;
use test_macros::test_connector;

#[test_connector(exclude(Mysql, Mssql))]
#[test_connector(exclude(Mysql, Mssql, Sqlite))]
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -131,7 +131,10 @@ async fn a_one_to_one_relation(api: &TestApi) -> TestResult {
t.add_column("id", types::integer().increments(true));
t.add_column("user_id", types::integer().nullable(true));

t.add_foreign_key(&["user_id"], "User", &["id"]);
t.add_constraint(
Copy link
Contributor

Choose a reason for hiding this comment

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

ngggh this API from Barrel (I wrote). We should maybe just stop using it...

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.

None yet

2 participants