Skip to content

Commit

Permalink
Edit DB migration example to the correct schema execute method call
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Aug 10, 2023
1 parent 18166aa commit 9e07a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user_guide/databases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1219,14 +1219,14 @@ that table when rolled back:
->varchar('password', 255)
->primary('id');
$this->db->query($schema);
$schema->execute();
}
public function down()
{
$schema = $this->db->createSchema();
$schema->drop('users');
$this->db->query($schema);
$schema->execute();
}
}
Expand Down

0 comments on commit 9e07a25

Please sign in to comment.