nidus-sync/migrations/00008_add_sync.sql
Eli Ribble b0432f3243
Add statistics on the sync and save org ID with fieldseeker tables
We need the org ID so that we can avoid bleedover between different
organizations.
2025-11-07 09:30:31 +00:00

12 lines
359 B
SQL

-- +goose Up
CREATE TABLE fieldseeker_sync (
id SERIAL PRIMARY KEY,
created TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL,
records_created INTEGER NOT NULL,
records_updated INTEGER NOT NULL,
records_unchanged INTEGER NOT NULL,
organization_id INTEGER REFERENCES organization(id) NOT NULL
);
-- +goose Down
DROP TABLE fieldseeker_sync;