Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:50
    alexeyoganezov edited #670
  • 13:50
    alexeyoganezov synchronize #670
  • 13:27
    lgtm-com[bot] commented #670
  • 13:23
    alexeyoganezov synchronize #670
  • 12:50
    alexeyoganezov edited #670
  • Feb 21 18:53
    alexeyoganezov edited #670
  • Feb 21 18:51
    alexeyoganezov edited #670
  • Feb 21 18:25
    alexeyoganezov edited #670
  • Feb 21 18:22
    alexeyoganezov synchronize #670
  • Feb 21 18:07
    alexeyoganezov edited #670
  • Feb 21 15:21
    alexeyoganezov synchronize #670
  • Feb 21 15:19
    alexeyoganezov synchronize #670
  • Feb 21 15:16
    alexeyoganezov synchronize #670
  • Feb 21 15:14
    alexeyoganezov synchronize #670
  • Feb 21 14:45
    commitlint-wzrdtales[bot] commented #670
  • Feb 21 14:45
    alexeyoganezov synchronize #670
  • Feb 21 14:42
    alexeyoganezov review_requested #670
  • Feb 21 14:41
    commitlint-wzrdtales[bot] commented #670
  • Feb 21 14:41
    alexeyoganezov opened #670
Nicholas Iannone
@nickiannone
I just put out a TS definitions file for two other libraries (twilio and winston-dynamodb) over the past week and a half
Tobias Gurtzick
@wzrdtales
yeah already seen it, also that it seems a bit unmaintainable to have so many definitions in just one repository, there is quite a lot in there.I definitely need to give TS a read, wanted to do that sometime anyway, maybe now is a good time :)
Nicholas Iannone
@nickiannone
I've been sold on it since I realized it lets me use Intellisense in VS Code :D
Tobias Gurtzick
@wzrdtales
I mostely use ternjs for that
Nicholas Iannone
@nickiannone
I used tern in eclipse, and it kept choking on ES6 stuff
after like a week on this project, it just stopped working altogether for our codebase
Tobias Gurtzick
@wzrdtales
that could be true, but in case of node not that big of a problem yet. at least not for the stuff of es6 that is supported in node natively yet.
Nicholas Iannone
@nickiannone
mhm
I think it's more a damning of Eclipse than of tern
Tobias Gurtzick
@wzrdtales
could be, I'm not a fan of IDEs anyway
mostly switching around emacs,vim,atom and sublime and the OS + lots of automation is doing the rest
Nicholas Iannone
@nickiannone
neither am I, outside of VSCode. Heading to lunch, will resume discussion later
Tobias Gurtzick
@wzrdtales
alright, feel free to reach out. have a good one.
Anthony Stansbridge
@Stansbridge
Hey... I was wondering how I actually make a seed?
The docs kinda gloss over it...
I tried making a seed scope, but I am clearly using it wrong since I get a WARN about a derecated feature and to use controlled seeds
I can't find how to create a controlled seed and any examples of a seed
Anthony Stansbridge
@Stansbridge
I am using db-migrate 0.10.0-beta.15
Oh shit, it looks like it's not implemented yet?
Eh
I am utterly confused
Tobias Gurtzick
@wzrdtales
@Stansbridge That is correct it is partially implemented, and the docs are going to be updated next. seeds have been postponed to a later version, to get v0.10.x released. After v0.10.x db-migrate also changes the way of doing releases though. sry for the confusion, just ignore seeders for now.
Anthony Stansbridge
@Stansbridge
@wzrdtales Thanks! Thanks for your open source work. It's appreciated.
Nicholas Iannone
@nickiannone
Hey @wzrdtales, DefinitelyTyped accepted my Typescript defs for db-migrate-base and db-migrate-pg, which we're trying to integrate into our workflow.
I'm looking into two more things: Integrating db-migrate as a component in gulp (which might be another short github project on my end), and getting db-migrate binary to spit out a Typescript file. That one might just be an experimental branch on our end, since there'd be a bit more involved than taking the db-migrate create command and modifying its output. For one, it'd need to know what driver the DB uses so it can load the appropriate plugin
ie. if the database.json file indicates a driver type of "pg", then it'd have to slap in a import * as DbMigratePg from 'db-migrate-pg' into the migration file.
Nicholas Iannone
@nickiannone
and then modify the type of db in export function up(db) and export function down(db) to match
Tobias Gurtzick
@wzrdtales
@nickiannone Ok, cool. Let me know if you need anything, very basic plugin support has also been added, needs more hooks to be actually useful. Next topic is the transition assitent and documentations
@wallyuva I have taken your question about how to use yaml by the way. It is the first example plugin that is indeed also a real plugin that is functional. You can see this here: https://github.com/db-migrate/plugin-yaml As soon as the latest changes are released which needs the transition helper first b/c of a breaking change that occured in the latest changes, this will be available.
Alla Abramova
@movadee
Hi guys! Doing some research. Wonder if there is any sample project repo of using db-migrate to migrate from mongo to postres?
Nenad Kostic
@nkostic
Hi Guys I have issue when adding create function in raw sql file. THe script works fine when i run it on mysql server but when I use dg-migrate I get :[ERROR] Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER //
CREATE FUNCTION
I am using the lates bersion of db-migrate and mysql driver
Abraham
@apolishch
is there any way way to add SSL to the migrations_config.js file?
Jeff Galbraith
@hawkeye64
In our database, we are using "sql-file": true for our migrations. I need to add some additional types to an ENUM, but according to the Postgress documentation: ALTER TYPE ... ADD VALUE (the form that adds a new value to an enum type) cannot be executed inside a transaction block.. Is there a way of turning off a transaction for a particular migration file?
Erik Trom
@eriktrom
howdy - brand new to this tool in node - is there a competing db migration tool or is the ‘the one’?
thanks!
Nicholas Bering
@nbering
I’ve seen some people use sequelize and sequelize-cli. It’s a bit more involved though since you’re pulling in a whole ORM.
It’s hard to judge market share with DB tools since you see a lot more library code in the public than you do actual application code. Tutorials are a poor indicator.
Erik Trom
@eriktrom
@nbering - i’ll check sequelize-cli as well, thanks
Tobias Gurtzick
@wzrdtales
There are some other solutions, some that are more simple and are really just up and downards migrations.
sequelize has as mentioned migrations, but as far as I remember no real migrations, that have been some reflection like migrations which is a different thing
Depends on what you search for, if you want zero downtime you probably want something more sophisticated
if you don't care about that and your application is not that critical you can go for comfortable, but less safe and with less control, solutions like sequelize and others
just weigh your options and decide
Scott Stern
@sstern6
Hello, I am trying to use the programmable API for getInstance and I am passing in options as an object but getting errors TypeError: Cannot read property 'charCodeAt' of undefined. Any ideas? Thank you
Daniel Bretoi
@danielb2
hi i'm getting TypeError: Promise.fromCallback is not a function from node_modules/db-migrate/api.js:195 anyone know what's up with that? Seems this fromCallback is no longer part of bluebird
ok, nm, i guess it's an older one it wasn't part of
and the older one got required first in the chain