chore(migrations): renumber 0020/0021 -> 0021/0022 to avoid clash with berth-parity

berth-schema-parity branch already shipped its own migration 0020 (berth
schema parity: text -> numeric, +status_override_mode). Dedup's two
migrations need to land on top of that, not collide.

Renames:
  0020_unusual_azazel.sql       -> 0021_unusual_azazel.sql
  0021_magenta_madame_hydra.sql -> 0022_magenta_madame_hydra.sql
  meta/0020_snapshot.json       -> meta/0021_snapshot.json
  meta/0021_snapshot.json       -> meta/0022_snapshot.json

_journal.json idx + tag fields updated to match.

Snapshot CONTENTS remain dedup-branch state (no berths-numeric awareness).
A `pnpm drizzle-kit generate` after main merges the berth changes will
produce a consistent forward path; until then the snapshots are slightly
out-of-sync with the post-merge live schema, which is harmless because
the dev DB applies migrations forward, not from snapshots.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Ciaccio
2026-05-03 16:22:58 +02:00
parent 4bcc7f8be6
commit 7574c3b575
5 changed files with 29 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
{ {
"id": "9f6ae433-f075-4348-8109-3cd368344fa8", "id": "e9d830fc-ec81-42ab-bea6-232dd99d20d1",
"prevId": "e9d830fc-ec81-42ab-bea6-232dd99d20d1", "prevId": "6326a9a7-0b30-4647-bf86-b3d79e6a08bf",
"version": "7", "version": "7",
"dialect": "postgresql", "dialect": "postgresql",
"tables": { "tables": {
@@ -1870,12 +1870,6 @@
"primaryKey": false, "primaryKey": false,
"notNull": false "notNull": false
}, },
"merged_into_client_id": {
"name": "merged_into_client_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": { "created_at": {
"name": "created_at", "name": "created_at",
"type": "timestamp with time zone", "type": "timestamp with time zone",
@@ -1963,21 +1957,6 @@
"concurrently": false, "concurrently": false,
"method": "btree", "method": "btree",
"with": {} "with": {}
},
"idx_clients_merged_into": {
"name": "idx_clients_merged_into",
"columns": [
{
"expression": "merged_into_client_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
} }
}, },
"foreignKeys": { "foreignKeys": {

View File

@@ -1,6 +1,6 @@
{ {
"id": "e9d830fc-ec81-42ab-bea6-232dd99d20d1", "id": "9f6ae433-f075-4348-8109-3cd368344fa8",
"prevId": "6326a9a7-0b30-4647-bf86-b3d79e6a08bf", "prevId": "e9d830fc-ec81-42ab-bea6-232dd99d20d1",
"version": "7", "version": "7",
"dialect": "postgresql", "dialect": "postgresql",
"tables": { "tables": {
@@ -1870,6 +1870,12 @@
"primaryKey": false, "primaryKey": false,
"notNull": false "notNull": false
}, },
"merged_into_client_id": {
"name": "merged_into_client_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": { "created_at": {
"name": "created_at", "name": "created_at",
"type": "timestamp with time zone", "type": "timestamp with time zone",
@@ -1957,6 +1963,21 @@
"concurrently": false, "concurrently": false,
"method": "btree", "method": "btree",
"with": {} "with": {}
},
"idx_clients_merged_into": {
"name": "idx_clients_merged_into",
"columns": [
{
"expression": "merged_into_client_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
} }
}, },
"foreignKeys": { "foreignKeys": {

View File

@@ -143,17 +143,17 @@
"breakpoints": true "breakpoints": true
}, },
{ {
"idx": 20, "idx": 21,
"version": "7", "version": "7",
"when": 1777811835982, "when": 1777811835982,
"tag": "0020_unusual_azazel", "tag": "0021_unusual_azazel",
"breakpoints": true "breakpoints": true
}, },
{ {
"idx": 21, "idx": 22,
"version": "7", "version": "7",
"when": 1777812671833, "when": 1777812671833,
"tag": "0021_magenta_madame_hydra", "tag": "0022_magenta_madame_hydra",
"breakpoints": true "breakpoints": true
} }
] ]