From 5cfe05fb3cc407465efcc23dbeb4d64063516c31 Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Thu, 5 Aug 2021 13:13:58 +0200 Subject: [PATCH] Add comment to migration files Signed-off-by: Oliver Sand --- .../search-backend-module-pg/migrations/20210311110000_init.js | 2 ++ .../migrations/20210727180000_delta_update.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/plugins/search-backend-module-pg/migrations/20210311110000_init.js b/plugins/search-backend-module-pg/migrations/20210311110000_init.js index 8eaf86d2b4..70ccf9406b 100644 --- a/plugins/search-backend-module-pg/migrations/20210311110000_init.js +++ b/plugins/search-backend-module-pg/migrations/20210311110000_init.js @@ -18,6 +18,8 @@ * @param {import('knex').Knex} knex */ exports.up = async function up(knex) { + // This database schema uses some postgres specific features (like tsvector + // and jsonb columns) and can not be used with other database engines. await knex.schema.createTable('documents', table => { table.comment('The table of documents'); table diff --git a/plugins/search-backend-module-pg/migrations/20210727180000_delta_update.js b/plugins/search-backend-module-pg/migrations/20210727180000_delta_update.js index 9ba4649b65..429c8aa805 100644 --- a/plugins/search-backend-module-pg/migrations/20210727180000_delta_update.js +++ b/plugins/search-backend-module-pg/migrations/20210727180000_delta_update.js @@ -18,6 +18,9 @@ * @param {import('knex').Knex} knex */ exports.up = async function up(knex) { + // This database migration uses some postgres specific features (like bytea + // columns and build in functions) and can not be used with other database + // engines. await knex.schema.alterTable('documents', table => { // Extend the documents table with a column that allows to check whether a // document with the same content is already indexed.