dzql 0.3.6 → 0.3.7

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.
Files changed (2) hide show
  1. package/bin/cli.js +2 -5
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -186,8 +186,7 @@ CREATE TABLE IF NOT EXISTS dzql.events (
186
186
  table_name text NOT NULL,
187
187
  op text NOT NULL,
188
188
  pk jsonb NOT NULL,
189
- before jsonb,
190
- after jsonb,
189
+ data jsonb,
191
190
  user_id int,
192
191
  notify_users int[],
193
192
  at timestamptz DEFAULT now()
@@ -206,9 +205,7 @@ BEGIN
206
205
  'table', NEW.table_name,
207
206
  'op', NEW.op,
208
207
  'pk', NEW.pk,
209
- 'data', COALESCE(NEW.after, NEW.before),
210
- 'before', NEW.before,
211
- 'after', NEW.after,
208
+ 'data', NEW.data,
212
209
  'user_id', NEW.user_id,
213
210
  'at', NEW.at,
214
211
  'notify_users', NEW.notify_users
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dzql",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "PostgreSQL-powered framework with zero boilerplate CRUD operations and real-time WebSocket synchronization",
5
5
  "type": "module",
6
6
  "main": "src/server/index.js",