Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

New Migrate #17

Closed
duard opened this issue Nov 12, 2017 · 2 comments
Closed

New Migrate #17

duard opened this issue Nov 12, 2017 · 2 comments
Labels

Comments

@duard
Copy link

duard commented Nov 12, 2017

What is the way to generate ES6 migrations from knex ?
I try to create a new migration but it looks diferent

**knex migrate:make usuarios** 

exports.up = function(knex, Promise) {
  
};

exports.down = function(knex, Promise) {
  
};

@mesaugat
Copy link
Owner

There is no way to generate ES6 migrations from knex. You'll have to create a generator yourself.

I would simply change those two lines.

export function up(knex) {

};

export function down(knex) {

};

@duard
Copy link
Author

duard commented Nov 12, 2017

Thanks !

@duard duard closed this as completed Nov 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants