diff --git a/packages/api/src/entity/search_history.ts b/packages/api/src/entity/search_history.ts index 99cf4044f..6796c1997 100644 --- a/packages/api/src/entity/search_history.ts +++ b/packages/api/src/entity/search_history.ts @@ -19,7 +19,7 @@ export class SearchHistory { user!: User @Column('varchar', { length: 255 }) - keyword!: string + term!: string @CreateDateColumn({ default: () => 'CURRENT_TIMESTAMP' }) createdAt!: Date diff --git a/packages/db/migrations/0097.do.search_history.sql b/packages/db/migrations/0097.do.search_history.sql index 205bb66c0..74486d70f 100755 --- a/packages/db/migrations/0097.do.search_history.sql +++ b/packages/db/migrations/0097.do.search_history.sql @@ -7,7 +7,7 @@ BEGIN; CREATE TABLE omnivore.search_history ( id uuid PRIMARY KEY DEFAULT uuid_generate_v1mc(), user_id uuid NOT NULL REFERENCES omnivore.user ON DELETE CASCADE, - keyword VARCHAR(255) NOT NULL, + term VARCHAR(255) NOT NULL, created_at timestamptz NOT NULL DEFAULT current_timestamp, updated_at timestamptz NOT NULL DEFAULT current_timestamp );