Released:
Schema migration made easy
Project description
dbschema is a tool to run MySQL or PostgreSQL migrationsautomatically. Using a table, it keeps a state of previous migrations toavoid duplicates.
Features:
- Support for MySQL and PostgreSQL
- Optional pre and post-migration queries (for example to updateprivileges)
- Multiple migrations in multiple databases can be processed as one.
Installation
DBSchema is a diagram-oriented database software developed by Wise Coders Solutions. You can use it to simplify complex schemas, generate test data, view information from multiple tables. It has a 64-bit installer that is compatible with most Windows devices with a built-in OpenJDK 12. Dbschema is a tool to run MySQL or PostgreSQL migrations automatically. Using a table, it keeps a state of previous migrations to avoid duplicates. Features: Support for MySQL and PostgreSQL.
Create a config file
Create the file ~/.dbschema.yml and add your databasesconfiguration. See example
Create migrations table
dbschema uses a table called migrations_applied to keep track ofmigrations already applied to avoid duplication. See the schema forMySQL or PostgreSQL.
Migrations folder structure
For each database, you need to have a migration path (setting pathin the migration file).
Within that path you need to create one folder per migration. Thisfolder must contain a file called up.sql with the SQL queries andoptionally a file called down.sql for rollbacks.
Usage
Rollback
Project details
Release historyRelease notifications | RSS feed
1.4.3
1.4.2
1.4
1.3
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2
1.1.2
1.1.1
Dbschema Download
1.1
1.0.2
1.0.1
Dbschema Informix
1.0.0
Download files
Dbschema Tool
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size dbschema-1.4.3-py2.py3-none-any.whl (7.2 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes |
Filename, size dbschema-1.4.3.tar.gz (6.0 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for dbschema-1.4.3-py2.py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | f35333580c28db9cdec26de2696978786974e587c2d261a401549de4303bccd1 |
MD5 | 2726718c6f703d4ec0d024f9b96c05e0 |
BLAKE2-256 | 8a19ed13c3f12e873f84be54220e57a6890ce3253885a42123c84f5ac4c600a7 |
Dbschema Pro
CloseHashes for dbschema-1.4.3.tar.gz
Dbschema Key
Algorithm | Hash digest |
---|---|
SHA256 | ee984c4e2dfd56c49b7ac444cc20ca80b38a4f62d5b3117c29b9f45ec46bf761 |
MD5 | 9cbef720ee1ea9f839002a4bc2349787 |
BLAKE2-256 | 31a9de084490940fb2a532bf9f662a1d31553d92ed532143083e8d74193fa3b5 |