@rotorsoft/act-pg 1.13.14 → 1.13.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -157,8 +157,10 @@ Idempotent. Creates the events table, the streams (subscription) table, and the
157
157
 
158
158
  Created by `seed()`:
159
159
 
160
- - **Events** (`{schema}.{table}`): `id` (serial PK), `name`, `data` (jsonb), `stream`, `version`, `created` (timestamptz), `meta` (jsonb). Unique index on `(stream, version)`.
161
- - **Streams** (`{schema}.{table}_streams`): `stream` (PK), `source`, `at`, `retry`, `blocked`, `error`, `leased_by`, `leased_until`, `priority`. Composite index on `(blocked, priority DESC, at)` for the saturated-claim ordering.
160
+ - **Events** (`{schema}.{table}`): `id` (serial PK), `name` (text), `data` (jsonb), `stream` (text), `version`, `created` (timestamptz), `meta` (jsonb). Unique index on `(stream, version)`.
161
+ - **Streams** (`{schema}.{table}_streams`): `stream` (text, PK), `source` (text), `at`, `retry`, `blocked`, `error`, `leased_by`, `leased_until`, `priority`. Composite index on `(blocked, priority DESC, at)` for the saturated-claim ordering.
162
+
163
+ Identifier columns are `text`, not a bounded `varchar`. They were `varchar(100)` before [#1420](https://github.com/Rotorsoft/act-root/issues/1420); the seed ladder widens existing tables in place. The cap mattered because the framework *derives* identifiers from stream names — an `.autocloses` target is `"__autoclose__:" + stream` — so an 87-character stream committed fine and then failed to subscribe, which pinned the correlate checkpoint and stalled every dynamic reaction in the app. `text` and `varchar` are byte-identical in PG storage and indexing, so there is no cost to the wider type.
162
164
 
163
165
  ## Operational concerns
164
166