Skip to content

Commit

Permalink
Merge pull request #1740 from filipedeschamps/feat/content-types
Browse files Browse the repository at this point in the history
feat: add content type enum and column to contents table
  • Loading branch information
aprendendofelipe authored Jul 11, 2024
2 parents 8f70541 + 7f15f73 commit 114679c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions infra/migrations/1720619007506_alter-table-contents-add-type.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
exports.up = (pgm) => {
pgm.createType('content_types_enum', ['content', 'pitch', 'ad']);

pgm.addColumns('contents', {
type: {
type: 'content_types_enum',
notNull: true,
default: 'content',
},
});
};

exports.down = false;

0 comments on commit 114679c

Please sign in to comment.