Coder Social home page Coder Social logo

Comments (3)

moodysalem avatar moodysalem commented on June 11, 2024 2

Could you explain a bit more?

How is your file-structure? How do you call node-pg-migrate? How do you want to call it instead? Do you have an example Open Source repo you could link to show how it should be improved?

This is how I currently do schema https://github.com/EkuboProtocol/indexer/blob/84392cc4809fa02dc54a4c16c1333f26f583e03c/src/dao.ts#L101

I just want something that lets me organize this into a list of changesets and creates/manages a DB table for tracking migration state. I still want to use all typescript everywhere

from node-pg-migrate.

Shinigami92 avatar Shinigami92 commented on June 11, 2024

Could you explain a bit more?

How is your file-structure?
How do you call node-pg-migrate?
How do you want to call it instead?
Do you have an example Open Source repo you could link to show how it should be improved?

from node-pg-migrate.

Shinigami92 avatar Shinigami92 commented on June 11, 2024

Ok, yeah, that is a lot 🤔
node-pg-migrate could only handle the createSchema stuff, but you have far more other stuff also below as well.
Did you considered trying out knex?

Either way, node-pg-migrate can use .ts migration files, but these would fully be moved to a separate migration folder. I would need to check myself how to execute these migrations then programmatically from inside a project startup.

I think I will come back to this issue later, and currently focus priority to some other more minor stuff. I hope that's ok. 🙂

from node-pg-migrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.