Skip to content

Commit

Permalink
fixed docs and script pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosthealex committed Apr 4, 2021
1 parent 96c6bee commit 46e9204
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ python:
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7-dev" # 3.7 development branch
- "nightly" # currently points to 3.7-dev
- "3.7"
- "3.8"
- "nightly"
# command to run tests
install: "pip install six coverage coveralls"
script: coverage run -m unittest -v tests.test_limigrations
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Usage
3. Create your first migration using the command-line, then edit the `up` and `down` methods
::

$ python -m limigrations new --new_migration "users_table" --migrations_dir "my-migrations"
$ limigrations new --new_migration "users_table" --migrations_dir "my-migrations"

Optionally, you can copy the `example <https://github.com/dragosthealex/limigrations/blob/master/migrations/example_migration.py>`_
and modifying the `up` and `down` methods, saving it in your migrations directory.
Expand All @@ -82,14 +82,14 @@ Command-Line
4a. Run
::

$ python -m limigrations migrate --db_file "my-database.db" --migrations_dir "my-migrations"
$ limigrations migrate --db_file "my-database.db" --migrations_dir "my-migrations"

5a. Done! You should now see the changes written in the `up` method being applied.

6a. If something goes wrong and you want to revert, run
::

$ python -m limigrations rollback --db_file "my-database.db" --migrations_dir "my-migrations"
$ limigrations rollback --db_file "my-database.db" --migrations_dir "my-migrations"

7a. You should see the changes written in the `down` method being applied.

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name='limigrations',
version='1.1.0',
version='1.1.1',
description='Lightweight migrations system for python / sqlite3',
long_description=long_description,

Expand Down Expand Up @@ -101,7 +101,7 @@
# pip to create the appropriate form of executable for the target platform.
entry_points={
'console_scripts': [
'limigrations=limigrations:main',
'limigrations=limigrations.limigrations:main',
],
},
)

0 comments on commit 46e9204

Please sign in to comment.