https://github.com/bradymholt/dbup-consolescripts
Package Manager Console scripts for DbUp
https://github.com/bradymholt/dbup-consolescripts
Last synced: 9 days ago
JSON representation
Package Manager Console scripts for DbUp
- Host: GitHub
- URL: https://github.com/bradymholt/dbup-consolescripts
- Owner: bradymholt
- License: mit
- Created: 2015-04-12T00:19:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T17:45:50.000Z (over 6 years ago)
- Last Synced: 2025-04-09T17:06:34.374Z (19 days ago)
- Language: PowerShell
- Size: 40 KB
- Stars: 11
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DbUp Package Manager Console Scripts
[](https://www.nuget.org/packages/dbup-consolescripts/)
Package Manager Console scripts for [DbUp](http://dbup.github.io/).
## Install
This package is hosted on [NuGet](https://www.nuget.org/packages/dbup-consolescripts/).Install-Package dbup-consolescripts
Although dbup-consolescripts does not have a dependency on the [dbup](https://www.nuget.org/packages/dbup/) package, it is assumed you are using the following commands against a [DbUp](http://dbup.github.io/) project.
## Commands
- **New-Migration "[Name]"** - Creates a new migration .sql file in the \Scripts folder of the current project and marks it as an *Embedded Resource*. Uses the timestamped name format %y%m%d%H%M%S.sql (i.e. 150411194108.sql for 04/11/2015 7:41:08 PM). Optionally, specify a [Name] which will be appended to the file name.
- **New-Migration-Dynamic "[Name]"** - Same as above, but doesn't include the file in csproj.Csproj needs to have a "BeforeBuild"
- **Start-Migrations** - Runs any pending migrations by building and running the current project.When this package is installed, the above commands can be run from the Package Manager Console. **Note: make sure the "Default project" selected in the Package Manager Console is your DbUp project** before running these commands.
## Development
### Release Process
1. Install the latest version of Mono.
2. Ensure Ruby and RubyGems is installed
3. Ensure NUGET_API_KEY environment variable is set
4. From root project folder, run:
- `bundle install`
- `rake "release[1.2.0,Release notes here...]"`.