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

Add snippets with most frequently used migrations #2

Open
drednout opened this issue May 31, 2022 · 1 comment
Open

Add snippets with most frequently used migrations #2

drednout opened this issue May 31, 2022 · 1 comment

Comments

@drednout
Copy link
Contributor

Following frequently used code should be wrapped as snippets for sdbmigrate:

  1. stored procedure
  2. plain migration
  3. sharded migration
  4. alter table add uniq column
  5. alter table add constraint
  6. alter table add column boolean default True

See article and video:
https://www.youtube.com/watch?v=P3ctIoICkOc
https://habr.com/ru/company/yandex/blog/435880/

@drednout
Copy link
Contributor Author

drednout commented Oct 12, 2023

sdbmigrate 1.1.0 has generate action, which may be extended by new templates to generate snippets above.

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

No branches or pull requests

1 participant