fix migration error

This commit is contained in:
Ruben Fiszel
2025-10-17 03:42:41 +00:00
parent cc64f8acef
commit 34cd68676b
34 changed files with 3 additions and 614 deletions
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM v2_job",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "04ce5c530c80ae6f911dfe0dc9ed7d1a2e10342bbbc7f8486df0b73f5657a493"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM v2_job_completed",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "08e5832c4002a0970d4105bb80371dcc58cb037a59afe08cd1372b51791b4165"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM app_version WHERE app_id = '2'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "1c047fef05e8cfc07aef7ea9a5454334eb7375b483e8ffd80364c60c3aad04b4"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT runnable_id FROM v2_job ORDER BY created_at DESC",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "runnable_id",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
true
]
},
"hash": "1c739fddea33331fdb5acbfe614dc18a4db630616b3aa80c27b54e4bb4e20f30"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT versions FROM flow WHERE path = 'f/dre/flow'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "versions",
"type_info": "Int8Array"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "3528fbb71569b9bfd2a66d0692f9f0d1ecabb750d3d508f5c6a5cb3eaf3cd209"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT (scheduled_for - created_at) FROM v2_job_queue WHERE running = false",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Interval"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "3af3c1080cde18cfbeb08e290f63b465b4bbf83bc86c0efacd6133bb432ee13d"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM flow_version WHERE path = 'f/dre/flow'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "421c7e0388326889b33fae4c8fa2fd7cb4a7be6dc50c9f7507eaa15f138484dc"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT hash FROM script WHERE path = 'f/dre_script/script' AND archived = false",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "hash",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "44d3e7dce67967471fa638f2beedf8567579218d5c4332b01e169732c836ebdc"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM v2_job_queue WHERE running = false",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "47a55edc0f5c54ac9f5e48665c8dafc044d1861048857ec2fc70f929ab358373"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) from debounce_key",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "53b236c65e8790b7474e919daa0583902596c4faed6d83e668be85aba8eb644a"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM v2_job_queue WHERE running = false",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "5848d416e2d96eb20c7417dec608f8ca36db091c67cf9ec5e7cec40486532ab9"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT versions FROM app WHERE path = 'f/dre_app/app'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "versions",
"type_info": "Int8Array"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "5bedbfe98b3cacd1c6f4b2344a9a626245abe58c306392a76710252d16d0bd44"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM debounce_stale_data",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "6641d63a691d712bc24be9c972646fed29a76e579e72d6c8539cd0de73b424db"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) from debounce_stale_data",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "720d7f0d258d52a6b89e2f4b32ea0fd360da8a9f06e0ab59d9e724851ced4247"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT hash FROM script WHERE path = 'f/dre_script/script' AND archived = true",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "hash",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "77f33de1d95e38a44968ea7f026476226c66fe42c9f992bd4c6c232a68ade2bd"
}
@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM _sqlx_migrations WHERE\n version=20250131115248 OR version=20250902085503 OR version=20250201145630 OR\n version=20250201145631 OR version=20250201145632",
"query": "DELETE FROM _sqlx_migrations WHERE\n version=20250131115248 OR version=20250902085503 OR version=20250201145630 OR\n version=20250201145631 OR version=20250201145632 OR version=20251006143821",
"describe": {
"columns": [],
"parameters": {
@@ -8,5 +8,5 @@
},
"nullable": []
},
"hash": "618ec69c9c78f1c9e3539d2770392e3f783f29cd2cc58c0fc87d14ecef32b467"
"hash": "8d4ad4ee75fb149c36a9f6a0c4cf5fd981473f45d1b71b4b8236e021f7c8682d"
}
@@ -1,22 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT running FROM v2_job_queue WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "running",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false
]
},
"hash": "91a13927f7e0577e52755fd8463a4fc58818c109deda6678c79474bf45428966"
}
@@ -1,26 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT\n dsd.to_relock,\n dk.key\n FROM debounce_key dk\n JOIN debounce_stale_data dsd ON dk.job_id = dsd.job_id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "to_relock",
"type_info": "TextArray"
},
{
"ordinal": 1,
"name": "key",
"type_info": "Varchar"
}
],
"parameters": {
"Left": []
},
"nullable": [
true,
false
]
},
"hash": "9b37ec5aa9b979393c6e5c8d98f467dcabc2c3367fb33592e5608bd985c9e436"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT versions[1] FROM flow WHERE path = 'f/dre/flow'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "versions",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "9d1bd189940d345f27e4850651c423b891b57e9a65a02b52966377c1960ab89e"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM v2_job_completed",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "a14270c6a2af936539c7d7e4a950b45df00a1ae022b3c29730af2347bd76deef"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT (scheduled_for - created_at) FROM v2_job_queue",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Interval"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "a206326b6c13c88b773adcd1f7b3e0822cb91bde2324327f1828236112d278b1"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT parent_hashes FROM script WHERE path = 'f/dre_script/script' AND archived = false",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "parent_hashes",
"type_info": "Int8Array"
}
],
"parameters": {
"Left": []
},
"nullable": [
true
]
},
"hash": "bfc96c870fe0c50ebb9e9bc5ccff231912db86c05c881aff1ffb5460f9711390"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT runnable_path FROM v2_job",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "runnable_path",
"type_info": "Varchar"
}
],
"parameters": {
"Left": []
},
"nullable": [
true
]
},
"hash": "c42326e2121b79d1381a3c91ef90f6929f5dcbf29f3938e40c7f93d98aa7f49c"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT key FROM debounce_key",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "key",
"type_info": "Varchar"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "cbc8e3e22862a76e1a8386cca247694378b2be15f3a40e7e6690f31157bdb5af"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT lock FROM script WHERE path = 'f/dre_script/script'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "lock",
"type_info": "Text"
}
],
"parameters": {
"Left": []
},
"nullable": [
true
]
},
"hash": "d6a060b255f02a2a776a6a3ac4024d3b06170d3a02a06a4c209e49e5ef175916"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT versions[2] FROM flow WHERE path = 'f/dre/flow'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "versions",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "db7a756d541dbedbdeb23ab8f914d0ab538043fff345a0438a40708c4066771b"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT jsonb_array_elements(value->'modules')->'value'->>'lock' AS lock FROM flow",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "lock",
"type_info": "Text"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "e49b72cf5a05b47f76ebcdc5306928e1be4696120c5d78c1649d5e430a5dae4c"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM v2_job_queue",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "e7bc612ccdbb2532a321ed83e26a0854975ad4c3f6fe24557b87a197485dff39"
}
@@ -1,23 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "\nSELECT\n j1.completed_at < j2.started_at\nFROM\n v2_job_completed j1,\n v2_job_completed j2\nWHERE\n j1.id = $1 \n AND j2.id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
null
]
},
"hash": "eaeeb4708a6d9bf6be3265dcaaaf97f2301599a39668fcd20e1642fd828e3eec"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) from v2_job_queue",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "ee96e97f1a8bd2ac592665ad3e02680159db11c8aeef82056ec30b498f8129da"
}
@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM debounce_key",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "eff9926fa211497ddbc53866444768ab79733e33bf8f9110a4f4d75a3c07da67"
}
+1 -1
View File
@@ -212,7 +212,7 @@ pub async fn migrate(
if let Err(err) = sqlx::query!(
"DELETE FROM _sqlx_migrations WHERE
version=20250131115248 OR version=20250902085503 OR version=20250201145630 OR
version=20250201145631 OR version=20250201145632"
version=20250201145631 OR version=20250201145632 OR version=20251006143821"
)
.execute(db)
.await