Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
6324173
Delete incorrectly-placed update guide
gefjon Feb 20, 2026
7b7332a
Expand & reorg migration guide, leaving TODOs for C# and TypeScript
gefjon Feb 20, 2026
45c9d52
`deal_damage` should be `on_deal_damage` in this position
gefjon Feb 20, 2026
bc7c902
Add missing `#[reducer]`
gefjon Feb 20, 2026
a054672
Minor changes to examples to make 'em build
gefjon Feb 20, 2026
7d6e0c5
Add forgotten imports
gefjon Feb 20, 2026
1da7c19
Add source code block around example, to prevent it parsing as an export
gefjon Feb 20, 2026
d0fa82f
Updated C# TODOs with examples
JasonAtClockwork Feb 20, 2026
b5d78ce
Merge branch 'phoebe/docs/v2-migration-guide' of https://github.com/c…
JasonAtClockwork Feb 20, 2026
cd5c1ab
Small fix for .with_module_name to .with_database_name
JasonAtClockwork Feb 20, 2026
b85da85
Implemented TypeScript migration guide examples
cloutiertyler Feb 20, 2026
dc906b5
Fix typos and syntax errors in v2 migration guide
cloutiertyler Feb 20, 2026
5a31e1b
Move migration guide to `/upgrade`
gefjon Feb 20, 2026
84d93b2
Add migration guide to docs sidebar
gefjon Feb 20, 2026
de3ebd2
Merge remote-tracking branch 'origin/master' into phoebe/docs/v2-migr…
gefjon Feb 21, 2026
4e279f4
Fix links to removed upgrade path page
gefjon Feb 21, 2026
27ab8e7
Extra ..
gefjon Feb 21, 2026
1dbf0ba
Merge remote-tracking branch 'origin/master' into phoebe/docs/v2-migr…
gefjon Feb 21, 2026
a5775d0
Use `type: 'ref'` in sidebar
gefjon Feb 21, 2026
1c23e4a
Correct document id of sidebar item
gefjon Feb 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/00200-core-concepts/00100-databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ See [`spacetime publish`](./00100-databases/00300-spacetime-publish.md) for deta

When you republish to an existing database, SpacetimeDB attempts to automatically migrate the schema. For details on what changes are supported and migration strategies:

- [1.x to 2.0 Upgrade Notes](./00100-databases/00500-migrations/00100-upgrade-notes-2-0.md) - Required reading before major-version upgrades.
- [1.x to 2.0 Upgrade Notes](../00300-resources/00100-how-to/00600-migrating-to-2.0.md) - Required reading before major-version upgrades.
- [Automatic Migrations](./00100-databases/00500-migrations/00200-automatic-migrations.md) - Learn which schema changes are safe, breaking, or forbidden.
- [Incremental Migrations](./00100-databases/00500-migrations/00300-incremental-migrations.md) - Advanced pattern for complex schema changes.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spacetime publish --break-clients <DATABASE_NAME>

⚠️ **Warning:** This will break existing clients that haven't been updated to match your new schema.

If this publish is a major upgrade from 1.x to 2.0, read [1.x to 2.0 Upgrade Notes](./00500-migrations/00100-upgrade-notes-2-0.md) first.
If this publish is a major upgrade from 1.x to 2.0, read [1.x to 2.0 Upgrade Notes](../../00300-resources/00100-how-to/00600-migrating-to-2.0.md) first.

#### Clearing Data

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The "schema" refers to the collection of tables, reducers, procedures, views, an
:::

:::warning
If you are upgrading an existing 1.x database to 2.0, review [1.x to 2.0 Upgrade Notes](./00100-upgrade-notes-2-0.md) before publishing.
If you are upgrading an existing 1.x database to 2.0, review [1.x to 2.0 Upgrade Notes](../../../00300-resources/00100-how-to/00600-migrating-to-2.0.md) before publishing.
:::

## ✅ Safe Changes (Always Allowed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ type Event<Reducer> =
| { tag: 'SubscribeApplied' }
| { tag: 'UnsubscribeApplied' }
| { tag: 'Error'; value: Error }
| { tag: 'UnknownTransaction' };
| { tag: 'Transaction' };
```

| Name | Description |
Expand All @@ -628,7 +628,7 @@ type Event<Reducer> =
| [`SubscribeApplied` variant](#variant-subscribeapplied) | A new subscription was applied to the client cache. |
| [`UnsubscribeApplied` variant](#variant-unsubscribeapplied) | A previous subscription was removed from the client cache after a call to [`unsubscribe`](#method-unsubscribe). |
| [`Error` variant](#variant-error) | A previous subscription was removed from the client cache due to an error. |
| [`UnknownTransaction` variant](#variant-unknowntransaction) | A transaction ran in the remote database, but was not attributed to a known reducer. |
| [`Transaction` variant](#variant-transaction) | A transaction ran in the remote database, but was not attributed to a known reducer. |
| [`ReducerEvent` type](#type-reducerevent) | Metadata about a reducer run. Contained in [`Event::Reducer`](#variant-reducer) and [`ReducerEventContext`](#type-reducereventcontext). |
| [`UpdateStatus` type](#type-updatestatus) | Completion status of a reducer run. |
| [`Reducer` type](#type-reducer) | Module-specific generated enum with a variant for each reducer defined by the module. |
Expand Down Expand Up @@ -683,11 +683,11 @@ Event when a subscription ends unexpectedly due to an error.

This event is passed to [row `onDelete` callbacks](#callback-ondelete) resulting from the subscription ending.

#### Variant `UnknownTransaction`
#### Variant `Transaction`

```typescript
{
tag: 'UnknownTransaction';
tag: 'Transaction';
}
```

Expand Down
Loading
Loading