jdaigle / horton Goto Github PK
View Code? Open in Web Editor NEWHorton is the simple database migration utility.
License: MIT License
Horton is the simple database migration utility.
License: MIT License
As a developer,
I want a Powershell Module
In order to be able to easily execute common database development tasks
E.g.
Given a file or files containing tuples, Horton should be able to synchronize a table with the values in this table. E.g. adding new rows, modifying exiting rows if different. Optionally removing rows that aren't in the "seed" data.
The schema_info
table is completely redesigned for as of 4.0.0. This renders horton.exe incompatible with existing schema_info
tables.
It likely possible to detect the old schema and seamlessly upgrade. Perhaps following this general flow:
Hi - I'm maintaining my own version of Horton that works slightly differently, but I recently found a bugfix that you might want to pull into the main version as well. Explanation and small change are here: mreishus@02c7a95
Does Horton support desired state for stored procedures? If so, could a quick example of this be added to the documentations?
I thought it did, from reading this blog post, but I tried and I can't get it to work.
Here's what I did:
Then:
Horton.exe UPDATE
which did create the proc on my db! Success. โ
Horton.exe UPDATE
and expected horton to bring the proc back to the committed state. It didn't. I also tried SYNC.Horton.exe UPDATE
. It didn't change anything, I still had the version I manually edited on the server. I also tried SYNC. Still nothing.Unless I'm missing something major here, it seems that horton no longer supports desired state for stored procedures? Am I doing anything wrong or was this removed in the 4.0 release?
database_dir/
|-- migrations/
|-- objects/
| |-- sprocs/ (optional)
| |-- views/ (optional)
| |-- functions/ (optional)
| |-- indexes/ (optional)
|-- misc/ (optional)
Usage: horton.exe [OPTIONS] COMMAND [PATH]
Path:
Path to directory containing migrations (leave blank for current directory)
Commands:
UPDATE Executes current migrations if no conflicts exist.
Options:
-f, --files=VALUE path to migrations directory
-s, --server=VALUE server hostname.
(leave blank for "localhost")
-d, --database=VALUE database name.
(leave blank to look for "database.name")
-u, --username=VALUE username of the database connection.
(leave blank for integrated security)
-p, --password=VALUE password of the database connection.
(required if username is provided)
-c, --connectionString=VALUE
ADO.NET connection string.
(optional, overrides other parameters)
-U, --UNATTEND Surpress user acknowledgement during
execution.
-v, --version Print version number and exit.
-h, --help, -? show help message and exit.
Examples:
horton.exe -m "\path\to\migrations" -s LOCALHOST -d Northwind -U
horton.exe -m "\path\to\migrations" -s LOCALHOST -d Northwind -u sa -p pa55w0rd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.