This rewrites the database migration code to: - avoid deadlocks when running multiple migration processes at the same time with a `CREATE INDEX CONCURRENTLY` statement - allow us to remove some migrations from the code base and mark them as intentionally removed - allow us to modify some migrations and declare alternate checksums for previous versions of the migration
21 lines
538 B
JSON
21 lines
538 B
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n SELECT EXISTS (\n SELECT 1\n FROM information_schema.tables\n WHERE table_name = '_sqlx_migrations'\n ) AS \"exists!\"\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "exists!",
|
|
"type_info": "Bool"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
},
|
|
"nullable": [
|
|
null
|
|
]
|
|
},
|
|
"hash": "fbf926f630df5d588df4f1c9c0dc0f594332be5829d5d7c6b66183ac25b3d166"
|
|
}
|