mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 18:04:32 +02:00
Corrected imports in migrations docs
This commit is contained in:
parent
8bc9213a8e
commit
353baf280d
1 changed files with 3 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ Here is a simple example of a ``migrations.py`` file which creates a table, then
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
from sqlite_utils import Database, Migrations
|
||||
from sqlite_utils import Migrations
|
||||
|
||||
migrations = Migrations("creatures")
|
||||
|
||||
|
|
@ -51,6 +51,8 @@ Once you have a ``Migrations(name)`` collection with one or more migrations regi
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
from sqlite_utils import Database
|
||||
|
||||
db = Database("creatures.db")
|
||||
migrations.apply(db)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue