diff --git a/Aliases/sem b/Aliases/sem new file mode 120000 index 0000000000..6ed2ae61bd --- /dev/null +++ b/Aliases/sem @@ -0,0 +1 @@ +../Formula/schema-evolution-manager.rb \ No newline at end of file diff --git a/Formula/schema-evolution-manager.rb b/Formula/schema-evolution-manager.rb new file mode 100644 index 0000000000..6a5b5d2ecb --- /dev/null +++ b/Formula/schema-evolution-manager.rb @@ -0,0 +1,20 @@ +class SchemaEvolutionManager < Formula + desc "Manage postgresql database schema migrations" + homepage "https://github.com/mbryzek/schema-evolution-manager" + url "https://github.com/mbryzek/schema-evolution-manager/archive/0.9.40.tar.gz" + sha256 "cf5aab3f2fe81e3daca400811f46a11d4ebd25d7325eca92a83dbe0494e25d5a" + + bottle :unneeded + + def install + system "./install.sh", prefix + end + + test do + (testpath/"new.sql").write <<~EOS + CREATE TABLE IF NOT EXISTS test (id text); + EOS + system "git", "init", "." + assert_match "File staged in git", shell_output("#{bin}/sem-add ./new.sql") + end +end