Skip to content

Difference in using migrations between v4.1 and v5 #1480

Answered by thetutlage
zarkones asked this question in Help
Discussion options

You must be logged in to vote

Inside up() method I wasn't able to get this.fn.now() to work, in a matter of fact, I failed to obtain Knex reference at all. From which variable may I obtain that reference to Knex variable?

Yes, the this.fn property has been removed in favor of this.now method. We are trying to keep the interactions with knex transparent and provide the helper methods directly.

Using on() in context of table.foreign(. . .).references(. . .).on(. . .) I'm prompt with "Property 'on' does not exist on type 'ReferencingColumnBuilder'".

I am not able to find any documentation related to on. It has always been inTable

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zarkones
Comment options

Comment options

You must be logged in to vote
1 reply
@zarkones
Comment options

Answer selected by RomainLanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants