Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8371835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:15:24+00:00 2026-06-09T14:15:24+00:00

I am currently working on generating liquibase changelogs from an existing table in mySql.

  • 0

I am currently working on generating liquibase changelogs from an existing table in mySql. I have the id for a row set as it’s PK and have it set to autoincrement. Due to tests/different attempts to insert data into the table, the id’s do not start at 1.

So my question is this, when generating changelogs from an existing table, does liquibase define the primary key for the child table based on the PK of the parent table (the table the liquibase was generated from)? Or when running the changelog on another database, will the primary key’s for the new table start at 1 and autoincrement, regardless of the PK from the parent table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:15:25+00:00Added an answer on June 9, 2026 at 2:15 pm

    In MySQL, auto_increment is handled by the database, not Liquibase. So the new database’s rows will start from 1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with generating .pdf's from PHP using this library: http://www.fpdf.org/ I am currently
I'm currently working on generating a PDF from a simple html page that contains
I am currently working with generating dynamic types using Reflection.Emit. I have the majority
So I'm currently working on rebuilding an existing website that is used internally at
I'm currently generating a large number (100s) of SSIS packages from C# that are
I am generating large PNG files from a Scala program. Currently, I am doing
I am currently working on a project where I have to design / implement
I have the following problem using subversion: I'm currently working on the trunk of
I am currently working with generating a random number(1-20) and counting the number of
I am currently working on a project that involves generating sequences using stored procedures

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.