mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add scheduledAt to subscriptions
This commit is contained in:
parent
b27ff99bff
commit
18aece84e7
3 changed files with 21 additions and 0 deletions
|
|
@ -67,4 +67,7 @@ export class Subscription {
|
|||
|
||||
@UpdateDateColumn({ default: () => 'CURRENT_TIMESTAMP' })
|
||||
updatedAt!: Date
|
||||
|
||||
@Column('timestamp', { nullable: true })
|
||||
scheduledAt?: Date | null
|
||||
}
|
||||
|
|
|
|||
9
packages/db/migrations/0138.do.add_scheduled_at_to_subscription.sql
Executable file
9
packages/db/migrations/0138.do.add_scheduled_at_to_subscription.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: DO
|
||||
-- Name: add_scheduled_at_to_subscription
|
||||
-- Description: Add scheduled_at field to omnivore.subscriptions table
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.subscriptions ADD COLUMN scheduled_at timestamptz;
|
||||
|
||||
COMMIT;
|
||||
9
packages/db/migrations/0138.undo.add_scheduled_at_to_subscription.sql
Executable file
9
packages/db/migrations/0138.undo.add_scheduled_at_to_subscription.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: UNDO
|
||||
-- Name: add_scheduled_at_to_subscription
|
||||
-- Description: Add scheduled_at field to omnivore.subscriptions table
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.subscriptions DROP COLUMN IF EXISTS scheduled_at;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue