diff --git a/infra/migrations/1720619007506_alter-table-contents-add-type.js b/infra/migrations/1720619007506_alter-table-contents-add-type.js new file mode 100644 index 000000000..1022570c7 --- /dev/null +++ b/infra/migrations/1720619007506_alter-table-contents-add-type.js @@ -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;