question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve interop between windows <-> linux mariadb development workflow

See original GitHub issue

Problem

This issue is outcome of discussion in https://github.com/prisma/prisma/issues/6962

Right now when you create migrations in Windows Maria db, migrate tends to lowercase certain statements like ALTER TABLE. Either this is a bug or we should improve the user experience here. When user tries to deploy this migration to their linux production environment, it will fail.

Suggested solution

  • Generate migrations with same case on every system.
  • Add a flag in migrations.toml that migration was generated on windows and using lowercase names and somehow fix those when migrating the same db engine on linux.

Alternatives

Warn the user about this quirk and ask them to use docker/wsl/hosted mariadb instance.

Additional context

https://github.com/prisma/prisma/issues/6962

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hruegercommented, Feb 26, 2022

See #12053

0reactions
hruegercommented, Feb 26, 2022

Sure! Working on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2.24.0 Milestone - GitHub
Improve interop between windows <-> linux mariadb development workflow kind/docs A documentation change is required. ; Improve Timezone Support ...
Read more >
Setting up WSL 2 for Web Development - xzhan's blog
Install the extensions you need and enjoy the Linux dev workflow on Windows! Summary. In this post, I discussed how to set up...
Read more >
Improved Developer Experience, Interoperability, and ...
Today we are announcing multiple updates to Windows Azure that improve ease of use, interoperability, and overall value.
Read more >
Challenges and Visions for MariaDB Server
One pain point is the state of the development tree. ... and the interoperability of MariaDB Server with the user's data and software...
Read more >
10 reasons to migrate to MariaDB (if still using MySQL)
Out of distrust in Oracle stewardship of MySQL, the original developers of ... Oracle does indeed still develop MySQL and to our knowledge...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found