January 2019
Intermediate to advanced
460 pages
10h 33m
English
Until now, MySQL has not known anything about our plan to save posts inside of it. Our database tables and columns need to be created, of course, and this is why the migration file was created.
A migration file has multiple advantages, such as the following:
Our first migration file creates a Posts table and adds all required columns, as follows:
'use strict';module.exports = { up: (queryInterface, Sequelize) ...Read now
Unlock full access