sqitchers / sqitch

Sensible database change management
https://sqitch.org
MIT License
2.74k stars 214 forks source link
cockroachdb database exasol firebird mysql oracle postgresql snowflake sqitch sqlite vertica yugabytedb

App/Sqitch version v1.4.2-dev

Release Coverage Database
CPAN OSes Exasol Oracle
Docker Perl Firebird Snowflake
Homebrew Coverage MySQL SQLite
Debian Postgres Vertica
Yugabyte Cockroach

Sqitch is a database change management application. It currently supports:

What makes it different from your typical migration approaches? A few things:

Want to learn more? The best place to start is in the tutorials:

There have also been a number of presentations on Sqitch:

Installation

To install Sqitch from a distribution download, type the following:

perl Build.PL
./Build installdeps
./Build
./Build test
./Build install

To install Sqitch and all of its dependencies into a single directory named sqitch_bundle, install the Menlo CPAN client and build the bundle:

cpanm Menlo::CLI::Compat
./Build bundle --install_base sqitch_bundle

After which, Sqitch can be run from ./sqitch_bundle/bin/sqitch. By default, no modules that are included in the core Perl distribution are included. To require that dual-life modules also be bundled, pass --dual_life 1:

./Build bundle --install_base sqitch_bundle --dual_life 1

To include support for a feature in the bundle, pass the --with option naming the feature:

./Build bundle --install_base sqitch_bundle --with postgres --with sqlite

The feature names generally correspond to the supported engines. The currently supported features are:

To build from a Git clone, first install Dist::Zilla, then use it to install Sqitch and all dependencies:

cpanm Dist::Zilla
dzil authordeps --missing | cpanm
dzil listdeps --missing | cpanm
dzil install

To run Sqitch directly from the Git clone, execute t/sqitch.

To install Sqitch on a specific platform, including Debian- and RedHat-derived Linux distributions and Windows, see the Installation documentation.

License

Copyright (c) 2012-2024 iovation Inc., David E. Wheeler

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

"Stack Overflow: “What is the mathematical structure that represents a Git repo”"
"Medium: “Blockchain Fundamentals #1: What is a Merkle Tree?”"