Playing Next Lesson In
seconds

Let's Learn AdonisJS 6 #4.11

Altering Tables with Migrations

In This Lesson

We'll learn how to alter our database tables using migrations both while in development, where we can delete our data, and once our data has already hit production where we need to persist all data.

Created by
@tomgobich
Published

Join the Discussion 2 comments

Create a free account to join in on the discussion
  1. @christoxz

    In case you already using ace migration:refresh- —seed like me, you would face an error with current code, this is because fake_seeder will run before start_seeder, because it will run in alphabetic order.
    You can solve this by renaming start seeder to 00_start_seeder.
    Tom will implement the same solution is lesson 4.15.
    Hope this tip might save someone some time, because I lost some :D

    2
    1. Responding to christoxz
      @tomgobich

      Terribly sorry you lost some time on that christoxz!! I've written down a note to circle back to lesson 4.8, where we introduce the fake_seeder, and add a note about the seeder order of execution.

      1