mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add syncedAt field in integrations table
This commit is contained in:
parent
8aa7ccdd1e
commit
bd73da0571
2 changed files with 4 additions and 0 deletions
|
|
@ -36,4 +36,7 @@ export class Integration {
|
|||
|
||||
@UpdateDateColumn({ default: () => 'CURRENT_TIMESTAMP' })
|
||||
updatedAt!: Date
|
||||
|
||||
@Column('timestamp', { nullable: true })
|
||||
syncedAt?: Date | null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ CREATE TABLE omnivore.integrations (
|
|||
"enabled" boolean NOT NULL DEFAULT true,
|
||||
created_at timestamptz NOT NULL DEFAULT current_timestamp,
|
||||
updated_at timestamptz NOT NULL DEFAULT current_timestamp,
|
||||
synced_at timestamptz,
|
||||
UNIQUE (user_id, "type")
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue