Skip to content

Commit

Permalink
Add alias column to favorites table via migration (#33)
Browse files Browse the repository at this point in the history
* Bump version to 0.115.0 [release]

* Migration file which adds alias column to favorites table

* Update package versions

---------

Co-authored-by: GitHub Release <>
Co-authored-by: Stanislav Kiselev <“[email protected]”>
  • Loading branch information
stankis and Stanislav Kiselev authored Dec 4, 2023
1 parent b50ae3e commit 389d71c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/db/migrations/20231204125203_add_alias_column_to_favorites.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type {Knex} from 'knex';

export async function up(knex: Knex): Promise<void> {
return knex.raw(`
ALTER TABLE favorites
ADD COLUMN alias TEXT;
`);
}

export async function down(knex: Knex): Promise<void> {
return knex.raw(`
ALTER TABLE favorites
DROP COLUMN alias;
`);
}

0 comments on commit 389d71c

Please sign in to comment.