Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

[RFC] Discontinue #13

Open
cursedcoder opened this issue Mar 18, 2020 · 4 comments
Open

[RFC] Discontinue #13

cursedcoder opened this issue Mar 18, 2020 · 4 comments
Assignees

Comments

@cursedcoder
Copy link
Member

In the favour of https://github.com/Floby/node-umzug-dynamodb-storage.

Umzug handles migrations extremely well and is storage-agnostic.

Also, it is used by sequelize and knox.

I do not see this repo should live anymore.

@shmuga do you want to transfer it to your account?

@cursedcoder cursedcoder assigned shmuga, dchertousov and Smotrov and unassigned shmuga Mar 18, 2020
@cursedcoder
Copy link
Member Author

Any users can workaround using:

const AWS = require('aws-sdk');
const Umzug = require('umzug');
const path = require('path');

module.exports = async function umzug() {
  const awsConfig = AWS.config;
  const dynamodb = new AWS.DynamoDB();
  const client = new AWS.DynamoDB.DocumentClient();

  return Umzug({
    storage: 'umzug-dynamodb-storage',
    storageOptions: {
      dynamodb,
      table: 'migrations',
    },
    migrations: {
      params: [
        awsConfig,
        dynamodb,
        client,
      ],
    },
    pattern: /\.js$/,
    path: path.join(__dirname, '../migrations/ddb'),
  });
};

@cursedcoder cursedcoder changed the title [RFC] Discountinue [RFC] Discontinue Mar 18, 2020
@dchertousov
Copy link
Member

@cursedcoder update the docs and let it rest in peace

@shmuga
Copy link
Member

shmuga commented Mar 19, 2020

I'm easy!

image

@dchertousov
Copy link
Member

F

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants