Comments (3)
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.
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.
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)
- I want a feature like `migrate status` in Mybatis Migration. HOT 1
- Rewrite full documentation to VitePress HOT 2
- Add --pretty option
- Rewrite CLI using Commander HOT 1
- Add a `strict` option to ensure migration step content was not changed
- Finish docs VitePress migration / convert docs over to tables HOT 1
- Imports in the mjs do not work out of the box with node ESM HOT 1
- Incorrect TypeScript definition for addConstraint
- `db.close()` should be awaited HOT 1
- Incorrect reference to __dirname when compiling to esmodules HOT 3
- PGliteral not defined . when using it in shorthands declaration as per documentation HOT 2
- Syntax error when adding constraint HOT 4
- Add support for GRANT ... ON SEQUENCE
- Add support for `SECURITY DEFINER` while creating a function
- Support ALTER INDEX expressions (or the same thing in ALTER TABLE) HOT 2
- Renaming tables breaks if you pass a Name with a schema HOT 2
- Allow for check constraints in shorthands
- Migration file resolution fails inside docker container
- node-pg-migrate 7.4.0 ignores schema in config file
- TypeError: pg.Client is not a constructor HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-pg-migrate.