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

fix(me): make @db.Float migrations idempotent on MSSQL #3066

Merged
merged 2 commits into from
Jul 14, 2022
Merged

Conversation

tomhoule
Copy link
Contributor

We weren't properly handling the implicit precision: we sent FLOAT, got
back FLOAT(53), and interpreted that as different types, but they're the
same.

closes prisma/prisma#14052


The first commit is a follow-up to yesterday's introspection tests improvements.

  • Use the actual test name for database names. This was probably a bug
    that would have shown up with a few more tests, because we were going
    to reuse the same database name.
  • Nest existing tests under per-connector folders.
  • Port a few cockroach tests to see how things work and feel. The new
    tests feel great.

- Use the actual test name for database names. This was probably a bug
  that would have shown up with a few more tests, because we were going
  to reuse the same database name.
- Nest existing tests under per-connector folders.
- Port a few cockroach tests to see how things work and feel. The new
  tests feel great.
We weren't properly handling the implicit precision: we sent FLOAT, got
back FLOAT(53), and interpreted that as different types, but they're the
same.

closes prisma/prisma#14052
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.

Nitpick: Take the first postgres_ away from that one test filename. Otherwise nice.

@tomhoule
Copy link
Contributor Author

Doing the renaming on the branch for my next PR now, so we can merge this right away.

@tomhoule tomhoule merged commit 69d1899 into main Jul 14, 2022
@tomhoule tomhoule deleted the me/prisma-14052 branch July 14, 2022 10:10
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.

Float cause duplicate alter table in all migrations
2 participants