Project: Prefect (Orchestration & Management / Scheduling & Orchestration)
File: MIGRATION-NOTES.md

Each time a database migration is written, an entry is included here with: The purpose of the migration Concerns about upgrade / downgrade (if any) Revision numbers for sqlite/postgres This gives us a history of changes and will create merge conflicts if two migrations are made at once, flagging situations where a branch needs to be updated before merging. SQLite: `824e9edafa60` Postgres: `15768c2ec702` SQLite: `2b6c2b548f95` Postgres: `954db7517015` SQLite: `bacc60edce16` Postgres: `7a653837d9ba` SQLite: `342220764f0b` Postgres: `121699507574` SQLite: `265eb1a2da4c` Postgres: `8cf4d4933848` SQLite: `c63a0a6dc787` Postgres: `6b63c51c31b4` SQLite: `a299308852a7` Postgres: `7c453555d3a5` SQLite: `a299308852a7` Postgres: `733ca1903976` SQLite: `f3165ae0a213` Postgres: `bfe653bbf62e` SQLite: `05ea6f882b1d` Postgres: `05ea6f882b1d` SQLite: `8167af8df781` Postgres: `4e9a6f93eb6c` SQLite: `c2d001b7dd06` Postgres: `50f8c182c3ca` SQLite: `5b0bd3b41a23` Postgres: `5f623ddbf7fe` SQLite: `2dbcec43c857` Postgres: `15f5083c16bd` SQLite: `3d46e23593d6` Postgres: `310dda75f561` SQLite: `340f457b315f` Postgres: `43c94d4c7aa3` SQLite: `3e1eb8281d5e` Postgres: `6a1eb3d442e4` SQLite: `553920ec20e9` Postgres: `3bf47e3ce2dd` SQLite: `422f8ba9541d` Postgres: `46bd82c6279a` SQLite: `b9aafc3ab936` Postgres: `d20618ce678e` SQLite: `1d7441c031d0` Postgres: `aa84ac237ce8` SQLite: `cf1159bd0d3c` Postgres: `4a1a0e4f89de` SQLite: `f3df94dca3cc` Postgres: `7d918a392297` SQLite: `8d148e44e669` Postgres: `cfdfec5d7557` SQLite: `bfe42b7090d6` Postgres: `2a88656f4a23` SQLite: `1678f2fb8b33` Postgres: `f98ae6d8e2cc` SQLite: `b9bda9f142f1` Postgres: `0a1250a5aa25` SQLite: `f92143d30c27` Postgres: `2882cd2df466` SQLite: `f92143d30c26` Postgres: `2882cd2df465` SQLite: `f92143d30c25` Postgres: `2882cd2df464` SQLite: `f92143d30c24` Postgres: `2882cd2df463` This schema migration creates the artifact table with extra `state_id` columns in order speed up the data migration. SQLite: None Postgres: `9326a6aee18b` SQLite: `7201de756d85` Postgres: `5d526270ddb4` SQLite: None Postgres: `41e5ed9e1034` SQLite: `e757138e954a` Postgres: `2d5e000696f1` SQLite: `575634b7acd4` Postgres: `77eb737fc759` SQLite: `296e2665785f` Postgres: `60e428f92a75` SQLite: `53c19b31aa09` Postgres: `7737221bf8a4` SQLite: `24bb2e4a195c` Postgres: `97e212ea6545` SQLite: `88c2112b668f` Postgres: `add97ce1937d` SQLite: `f335f9633eec` Postgres: `4ff2f2bf81f4` SQLite: None Postgres: `0cf7311d6ea6` SQLite: `628a873f0d1a` Postgres: `bb4dc90d3e29` SQLite: `56be24fdb383` Postgres: `0f27d462bf6d` SQLite: `061c7e518b40` Postgres: `e905fd199258` SQLite: `e2dae764a603` Postgres: `4cdc2ba709a4` SQLite: `3bd87ecdac38` Postgres: `813ddf14e2de` SQLite: `42762c37b7bc` Postgres: `2f46fc3f3beb` SQLite: `dff8da7a6c2c` Postgres: `7296741dff68` SQLite: `a205b458d997` Postgres: `29ad9bef6147` SQLite: `9e2a1c08c6f1` Postgres: `d335ad57d5ba` SQLite: `2d900af9cd07` Postgres: `61c76ee09e02` SQLite: `84892301571a` Postgres: `3a7c41d3b464` SQLite: `f65b6ad0b869` Postgres: `77ebcc9cf355` SQLite: `d76326ed0d06` Postgres: `cdcb4018dd0e` SQLite: `33439667aeea` Postgres: `d76326ed0d06` SQLite: `888a0bb0df7b` Postgres: `dc7a3c6fd3e9` SQLite: `fd966d4ad99c` Postgres: `d38c5e6a9115` SQLite: `db6bde582447` Postgres: `14dc68cc5853` Data only migration that backfills FlowRun.statename and TaskRun.statename. SQLite: `7f5f335cace3` Postgres: `605ebb4e9155` Adds FlowRun.statename and TaskRun.statename columns for more efficient querying. SQLite: `c8ff35f94028` Postgres: `b68b3cad6b8a` SQLite: `f327e877e423` Postgres: `d115556a8ab6` Indexes FlowRun.flowrunnertype for more efficient querying. SQLite: `e1ff4973a9eb` Postgres: `4799f657a6a1` SQLite: `4c4a6a138053` Postgres: `d9d98a9ebb6f` Adds a table for storing key / value configuration options for Prefect REST API in the database. SQLite: `28ae48128c75` Postgres: `679e695af6ba` Adds tables for storing agent information and work queues. SQLite: `7c91cb86dc4e` Postgres: `5bff7878e700` Adds tables for storing block data. SQLite: `619bea85701a` Postgres: `5f376def75c3` Creates the database that previously was not managed by migrations. Upgrading to an existing database to use migrations requires the use of `prefect database alembic stamp` before a reset will drop existing tables. SQLite: `9725c1cbee35` Postgres: `25f4b90a7a42`