Skip to content

Comments

Use UUID for TaskInstanceHistory primary key#47015

Closed
ephraimbuddy wants to merge 5 commits intoapache:mainfrom
astronomer:update-tihistory-id
Closed

Use UUID for TaskInstanceHistory primary key#47015
ephraimbuddy wants to merge 5 commits intoapache:mainfrom
astronomer:update-tihistory-id

Conversation

@ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Feb 24, 2025

This PR updates the TaskInstanceHistory table to use UUID for the primary key. The primary is tied to TaskInstance.id as foreignkey so whatever value in TaskInstnace.id is the value we would have as TaskInstanceHistory.id.

Manually tested the upgrades by rerunning a task instance, and upgrading/downgrading with the data

Closes: #43437

This PR updates the TaskInstanceHistory table to use UUID for the primary key.
The primary is tied to TaskInstance.id as foreignkey so whatever value in
TaskInstnace.id is the value we would have as TaskInstanceHistory.id.

Manually tested the upgrades by rerunning a task instance, and upgrading/downgrading with the data
@ephraimbuddy ephraimbuddy added the area:task-execution-interface-aip72 AIP-72: Task Execution Interface (TEI) aka Task SDK label Feb 24, 2025
Copy link
Contributor

@bugraoz93 bugraoz93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! It seems MySQL slowly disappearing :D

@jedcunningham
Copy link
Member

This is superseded by #47065.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:db-migrations PRs with DB migration area:task-execution-interface-aip72 AIP-72: Task Execution Interface (TEI) aka Task SDK kind:documentation

Development

Successfully merging this pull request may close these issues.

Evaluate if the TI History table requires similar updates (TI pk) for UUID v7 compatibility

3 participants