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

Create Auto inc fields #13

Open
guxx opened this issue Aug 6, 2018 · 2 comments
Open

Create Auto inc fields #13

guxx opened this issue Aug 6, 2018 · 2 comments
Milestone

Comments

@guxx
Copy link

guxx commented Aug 6, 2018

Hello

how do i create a migration with an integer field auto_incremental ? This field won't be the id or key.

@de-perotti
Copy link

I think you might want to have a look at this https://www.geeksforgeeks.org/sql-sequences/

@sio4 sio4 added this to the v1 / cleanup milestone Sep 7, 2022
@sio4 sio4 added the s: triage label Sep 7, 2022
@sio4
Copy link
Member

sio4 commented Sep 12, 2022

There could be several approaches to achieve it.

  1. Of course, the simplest way with the current version of Fizz could be using sql() so you can run your own SQL.
  2. Supporting a user-defined option (e.g. custom or constraint) could be one option. currently, only a few options are supported.
  3. Adding auto_increment option could also be an option but I am not sure how many developers need it

I would like to postpone this to the next version.

@sio4 sio4 modified the milestones: v1 / cleanup, v2 Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants