Skip to content

Commit df32ea5

Browse files
committed
docs(agent-context): move the renames section after the migration workflow list
The section split the numbered workflow, leaving step 3 (Apply) detached after it. Conformance fixtures regenerated.
1 parent 60a4384 commit df32ea5

6 files changed

Lines changed: 72 additions & 72 deletions

File tree

  • agent-context/skills/metaobjects-verify/references
  • fixtures/agent-context-conformance
    • csharp/expected/.claude/skills/metaobjects-verify/references
    • java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-verify/references
    • java-react/expected/.claude/skills/metaobjects-verify/references
    • python/expected/.claude/skills/metaobjects-verify/references
    • ts-react-tanstack/expected/.claude/skills/metaobjects-verify/references

‎agent-context/skills/metaobjects-verify/references/migration.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ meta migrate baseline --from-db --db postgresql://... --dialect postgres
114114
below), and an ambiguous rename-vs-drop+add aborts unless you declare the rename
115115
or choose with `--on-ambiguous`. It never guesses.
116116

117+
3. **Apply** the pending migrations against the DB; migration history is tracked in
118+
a ledger table:
119+
120+
```bash
121+
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
122+
# generate ...and apply it
123+
meta migrate apply-pending --db postgresql://... --dialect postgres
124+
# replay committed migrations, no diff (fresh DB / CI)
125+
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
126+
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
127+
```
128+
117129
## Renames and destructive changes
118130

119131
A renamed field or object is a renamed column or table, and the diff cannot tell that
@@ -147,18 +159,6 @@ meta migrate --dialect postgres --slug rename-stop --rename-table stop=port_ca
147159
`docs/features/migrations-and-drift.md`, "Renames and populated tables", covers what a
148160
rename carries with it (constraint names, views) and changes that need a backfill.
149161

150-
3. **Apply** the pending migrations against the DB; migration history is tracked in
151-
a ledger table:
152-
153-
```bash
154-
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
155-
# generate ...and apply it
156-
meta migrate apply-pending --db postgresql://... --dialect postgres
157-
# replay committed migrations, no diff (fresh DB / CI)
158-
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
159-
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
160-
```
161-
162162
## Dialects
163163

164164
- `postgres` (default) — native `ALTER`s.

‎fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-verify/references/migration.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ meta migrate baseline --from-db --db postgresql://... --dialect postgres
114114
below), and an ambiguous rename-vs-drop+add aborts unless you declare the rename
115115
or choose with `--on-ambiguous`. It never guesses.
116116

117+
3. **Apply** the pending migrations against the DB; migration history is tracked in
118+
a ledger table:
119+
120+
```bash
121+
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
122+
# generate ...and apply it
123+
meta migrate apply-pending --db postgresql://... --dialect postgres
124+
# replay committed migrations, no diff (fresh DB / CI)
125+
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
126+
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
127+
```
128+
117129
## Renames and destructive changes
118130

119131
A renamed field or object is a renamed column or table, and the diff cannot tell that
@@ -147,18 +159,6 @@ meta migrate --dialect postgres --slug rename-stop --rename-table stop=port_ca
147159
`docs/features/migrations-and-drift.md`, "Renames and populated tables", covers what a
148160
rename carries with it (constraint names, views) and changes that need a backfill.
149161

150-
3. **Apply** the pending migrations against the DB; migration history is tracked in
151-
a ledger table:
152-
153-
```bash
154-
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
155-
# generate ...and apply it
156-
meta migrate apply-pending --db postgresql://... --dialect postgres
157-
# replay committed migrations, no diff (fresh DB / CI)
158-
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
159-
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
160-
```
161-
162162
## Dialects
163163

164164
- `postgres` (default) — native `ALTER`s.

‎fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-verify/references/migration.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ meta migrate baseline --from-db --db postgresql://... --dialect postgres
114114
below), and an ambiguous rename-vs-drop+add aborts unless you declare the rename
115115
or choose with `--on-ambiguous`. It never guesses.
116116

117+
3. **Apply** the pending migrations against the DB; migration history is tracked in
118+
a ledger table:
119+
120+
```bash
121+
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
122+
# generate ...and apply it
123+
meta migrate apply-pending --db postgresql://... --dialect postgres
124+
# replay committed migrations, no diff (fresh DB / CI)
125+
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
126+
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
127+
```
128+
117129
## Renames and destructive changes
118130

119131
A renamed field or object is a renamed column or table, and the diff cannot tell that
@@ -147,18 +159,6 @@ meta migrate --dialect postgres --slug rename-stop --rename-table stop=port_ca
147159
`docs/features/migrations-and-drift.md`, "Renames and populated tables", covers what a
148160
rename carries with it (constraint names, views) and changes that need a backfill.
149161

150-
3. **Apply** the pending migrations against the DB; migration history is tracked in
151-
a ledger table:
152-
153-
```bash
154-
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
155-
# generate ...and apply it
156-
meta migrate apply-pending --db postgresql://... --dialect postgres
157-
# replay committed migrations, no diff (fresh DB / CI)
158-
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
159-
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
160-
```
161-
162162
## Dialects
163163

164164
- `postgres` (default) — native `ALTER`s.

‎fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-verify/references/migration.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ meta migrate baseline --from-db --db postgresql://... --dialect postgres
114114
below), and an ambiguous rename-vs-drop+add aborts unless you declare the rename
115115
or choose with `--on-ambiguous`. It never guesses.
116116

117+
3. **Apply** the pending migrations against the DB; migration history is tracked in
118+
a ledger table:
119+
120+
```bash
121+
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
122+
# generate ...and apply it
123+
meta migrate apply-pending --db postgresql://... --dialect postgres
124+
# replay committed migrations, no diff (fresh DB / CI)
125+
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
126+
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
127+
```
128+
117129
## Renames and destructive changes
118130

119131
A renamed field or object is a renamed column or table, and the diff cannot tell that
@@ -147,18 +159,6 @@ meta migrate --dialect postgres --slug rename-stop --rename-table stop=port_ca
147159
`docs/features/migrations-and-drift.md`, "Renames and populated tables", covers what a
148160
rename carries with it (constraint names, views) and changes that need a backfill.
149161

150-
3. **Apply** the pending migrations against the DB; migration history is tracked in
151-
a ledger table:
152-
153-
```bash
154-
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
155-
# generate ...and apply it
156-
meta migrate apply-pending --db postgresql://... --dialect postgres
157-
# replay committed migrations, no diff (fresh DB / CI)
158-
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
159-
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
160-
```
161-
162162
## Dialects
163163

164164
- `postgres` (default) — native `ALTER`s.

‎fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-verify/references/migration.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ meta migrate baseline --from-db --db postgresql://... --dialect postgres
114114
below), and an ambiguous rename-vs-drop+add aborts unless you declare the rename
115115
or choose with `--on-ambiguous`. It never guesses.
116116

117+
3. **Apply** the pending migrations against the DB; migration history is tracked in
118+
a ledger table:
119+
120+
```bash
121+
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
122+
# generate ...and apply it
123+
meta migrate apply-pending --db postgresql://... --dialect postgres
124+
# replay committed migrations, no diff (fresh DB / CI)
125+
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
126+
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
127+
```
128+
117129
## Renames and destructive changes
118130

119131
A renamed field or object is a renamed column or table, and the diff cannot tell that
@@ -147,18 +159,6 @@ meta migrate --dialect postgres --slug rename-stop --rename-table stop=port_ca
147159
`docs/features/migrations-and-drift.md`, "Renames and populated tables", covers what a
148160
rename carries with it (constraint names, views) and changes that need a backfill.
149161

150-
3. **Apply** the pending migrations against the DB; migration history is tracked in
151-
a ledger table:
152-
153-
```bash
154-
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
155-
# generate ...and apply it
156-
meta migrate apply-pending --db postgresql://... --dialect postgres
157-
# replay committed migrations, no diff (fresh DB / CI)
158-
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
159-
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
160-
```
161-
162162
## Dialects
163163

164164
- `postgres` (default) — native `ALTER`s.

‎fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-verify/references/migration.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ meta migrate baseline --from-db --db postgresql://... --dialect postgres
114114
below), and an ambiguous rename-vs-drop+add aborts unless you declare the rename
115115
or choose with `--on-ambiguous`. It never guesses.
116116

117+
3. **Apply** the pending migrations against the DB; migration history is tracked in
118+
a ledger table:
119+
120+
```bash
121+
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
122+
# generate ...and apply it
123+
meta migrate apply-pending --db postgresql://... --dialect postgres
124+
# replay committed migrations, no diff (fresh DB / CI)
125+
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
126+
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
127+
```
128+
117129
## Renames and destructive changes
118130

119131
A renamed field or object is a renamed column or table, and the diff cannot tell that
@@ -147,18 +159,6 @@ meta migrate --dialect postgres --slug rename-stop --rename-table stop=port_ca
147159
`docs/features/migrations-and-drift.md`, "Renames and populated tables", covers what a
148160
rename carries with it (constraint names, views) and changes that need a backfill.
149161

150-
3. **Apply** the pending migrations against the DB; migration history is tracked in
151-
a ledger table:
152-
153-
```bash
154-
meta migrate --dialect postgres --slug add-user-shipping --db postgresql://... --apply
155-
# generate ...and apply it
156-
meta migrate apply-pending --db postgresql://... --dialect postgres
157-
# replay committed migrations, no diff (fresh DB / CI)
158-
meta migrate --db postgresql://... --rollback <target> # run down.sql for migrations newer than <target>
159-
meta migrate --db postgresql://... --rollback "" # roll back everything (empty target)
160-
```
161-
162162
## Dialects
163163

164164
- `postgres` (default) — native `ALTER`s.

0 commit comments

Comments
 (0)