fix(migrations): normalize legacy column order
This commit is contained in:
1 parent
2759fde81f
commit
bbb9394911
2 files changed
+254
-7
No files matched your search
@@ -6,17 +6,15 @@ use super::authority::MigrationError;
|
||||
// Exact PostgreSQL 16 catalog contract produced by the last published
|
||||
// pre-ledger Community schema (commit 8318e4b).
|
||||
const LEDGERLESS_BASELINE_FINGERPRINT_SHA256: &str =
|
||||
"0dbd7357a80c0d772de03ea2833013932697187b32fbd7b54be594e224e5f82f";
|
||||
"36624ca42a28c1388f9c50e6d6c489a8e5ca1f73441a894d9af89e5e115b542c";
|
||||
const LEDGERLESS_MCP_FINGERPRINTS_SHA256: &[&str] = &[
|
||||
// Initial published session table.
|
||||
"53b58899dc388609cbd83fe8321a48878d610952a39d13b5fc8f05149b703683",
|
||||
"9240c3d85dbc9eeddb1cd99661ec8f7d8d6ece0e62ec486151dcc951a7f3c81c",
|
||||
// Published session table after supports_elicitation was added.
|
||||
"250e3e57f02283e9300bdff549305d49a6a875717ec4e4c332a2b9af3f883f09",
|
||||
// Same published contract after an in-place upgrade from the initial layout.
|
||||
"23c02db67cf83a3834b1ed7caa417eaafd7bcc69657d598ba831f06aeded4a62",
|
||||
"ac9f99a7e667552a07480d5d45379dd0a8b529b00ba98855ce6725535198249f",
|
||||
];
|
||||
const LEDGERLESS_EXTENSION_FINGERPRINT_SHA256: &str =
|
||||
"da06947028e3c18cc6ba93a58775722b425fd9989095f069316a146a2f45e921";
|
||||
"0809a80c0bb6e80f68d0557006c4b62f2e63556f61f6fdedc5abc324950e2587";
|
||||
|
||||
const BASELINE_RELATIONS: &[&str] = &[
|
||||
"workspaces",
|
||||
@@ -134,7 +132,7 @@ async fn catalog_fingerprint(
|
||||
where n.nspname = current_schema()
|
||||
), column_rows as (
|
||||
select jsonb_build_array(
|
||||
'column', c.table_name, c.ordinal_position, c.column_name,
|
||||
'column', c.table_name, c.column_name,
|
||||
c.data_type, c.udt_name, c.is_nullable, coalesce(c.column_default, '')
|
||||
) item
|
||||
from information_schema.columns c
|
||||
|
||||
Reference in new issue
Block a user