Skip to main content

No project description provided

Project description

simple-migrations (beta)

PyPI version Python versions

The feedback and contributions are appreciated!

Make your database migrations as simple as possible!

simple-migrations is a library that allows you to write database migrations in a pure SQL.

The order of migrations will be tracked in the database table.

You can specify the forwards and backwards command and even write your own scripts.

No need to apply the scripts manually, you can now automate your deployment flow!

Keep in mind that the library is still in development and is distributed "as is".

How to use

The example of the config can be found in simple_migrations.ini file.

Create a simple_migrations.ini file in the project root and set up the database credentials.

Run simple-migrations init to generate the migrations directory and migrations table.

Run simple-migrations generate to generate the migration file from the template.

Run simple-migrations migrate to apply all unapplied migrations.

Run simple-migrations migrate <num> to migrate or rollback to migration, for example:

  • If the last applied migration was #2, simple-migrations migrate 4 will apply migrations 3 and 4.
  • If the last applied migration was #4, simple-migrations migrate 2 will rollback migrations 3 and 4.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_migrations-0.3.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

simple_migrations-0.3.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file simple_migrations-0.3.0.tar.gz.

File metadata

  • Download URL: simple_migrations-0.3.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/22.6.0

File hashes

Hashes for simple_migrations-0.3.0.tar.gz
Algorithm Hash digest
SHA256 71cb1f09e55c5b23f5b3232d8a100197b470c9997f86959ed4cbdaafefc5f42f
MD5 ad411778af140bf9a7a7c2992a4c15c4
BLAKE2b-256 eb6296116787e3ae0b7c597b8ed2d9ee12fb7e4bc3a7de88a8e34a727114b746

See more details on using hashes here.

File details

Details for the file simple_migrations-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_migrations-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8648ae142de65514580e043d235cbeb868ede9dafb2851999421675c4b0d2aa
MD5 931d39251dd1aa8447ab023188563d10
BLAKE2b-256 abe21b773de032386d5959647d3b315c18a3d13abc4141b3b5bac9b41abc77ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page