Skip to content

Commit

Permalink
Added dummy migration for 1.9.0 => 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Perki committed May 22, 2024
1 parent 97bfcf2 commit d80e253
Show file tree
Hide file tree
Showing 6 changed files with 2,665 additions and 1,776 deletions.
2 changes: 1 addition & 1 deletion components/storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storage",
"version": "1.9.0",
"version": "1.9.2",
"private": true,
"description": "Handles storage of user data on MongoDB",
"homepage": "https://pryv.com",
Expand Down
2 changes: 1 addition & 1 deletion components/storage/src/migrations/1.9.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const path = require('path');
*/
module.exports = async function (context, callback) {
const logger = getLogger('migration-1.9.0');
logger.info('V1.9.0 => v1.9.0 Migration started');
logger.info('V1.98.0 => v1.9.0 Migration started');
await SystemStreamsSerializer.init();
try {
await moveAttachments();
Expand Down
45 changes: 45 additions & 0 deletions components/storage/src/migrations/1.9.2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* @license
* Copyright (C) 2020–2024 Pryv S.A. https://pryv.com
*
* This file is part of Open-Pryv.io and released under BSD-Clause-3 License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
const { getLogger, getConfig } = require('@pryv/boiler');

/**
* v1.9.2:
* - nothing to do
*/
module.exports = async function (context, callback) {
const logger = getLogger('migration-1.9.2');
logger.info('V1.9.0 => v1.9.2 Migration started');
logger.info('V1.8.0 => v1.9.2 Migration finished');
callback();
};
3 changes: 2 additions & 1 deletion components/storage/src/migrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ module.exports = {
'1.7.1': require('./1.7.1.js'),
'1.7.5': require('./1.7.5'),
'1.8.0': require('./1.8.0'),
'1.9.0': require('./1.9.0')
'1.9.0': require('./1.9.0'),
'1.9.2': require('./1.9.2')
};
Loading

0 comments on commit d80e253

Please sign in to comment.