diff options
| author | rtkay123 <dev@kanjala.com> | 2026-04-01 09:05:33 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-04-01 09:05:33 +0200 |
| commit | daeb5311840680599a0ce6e49d181b9289010f68 (patch) | |
| tree | d0c9c040ca003a6d431781b867c4290cbe5c9ef2 /migrations | |
| parent | 2c336f0339747aa77a8fe6613b83200c8d4902a5 (diff) | |
| download | warden-daeb5311840680599a0ce6e49d181b9289010f68.tar.bz2 warden-daeb5311840680599a0ce6e49d181b9289010f68.zip | |
feat(schema): cursor pagination
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20260329120645_transaction_schema.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/migrations/20260329120645_transaction_schema.sql b/migrations/20260329120645_transaction_schema.sql index 8496c80..7868591 100644 --- a/migrations/20260329120645_transaction_schema.sql +++ b/migrations/20260329120645_transaction_schema.sql @@ -1,6 +1,7 @@ -- Add migration script here -- The transaction's blueprint to be checked on each request create table transaction_schema ( + id bigserial primary key, -- The transaction type schema_type text not null, -- The schema's version (to allow for multiple revisions - maybe) @@ -9,7 +10,7 @@ create table transaction_schema ( schema jsonb not null, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), - primary key (schema_type, schema_version) + unique (schema_type, schema_version) ); create trigger update_transaction_schema_modtime |
