cookbook 'database_upgrader', '~> 1.0.0'
database_upgrader (2) Versions 1.0.0 Follow1
Manage database schema upgrades with SQL Server
cookbook 'database_upgrader', '~> 1.0.0', :supermarket
knife supermarket install database_upgrader
knife supermarket download database_upgrader
database-upgrader-cookbook
Manages database schema updates by persisting what schema updates occur on the database in a Version table.
Supported Platforms
Windows platforms with SQL Server installed
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td>['database_upgrader']['cache_path']</td>
<td>String</td>
<td>where to cache the database upgrader files</td>
<td><tt>database_upgrader within the chef file cache directory</tt></td>
</tr>
<tr>
<td>['database_upgrader']['cache_archive']</td>
<td>String</td>
<td>where the archive file that contains the DatabaseUpgrader.exe should be copied to</td>
<td>DatabaseUpgrader.zip inside of the cache_path</td>
</tr>
<tr>
<td>['database_upgrader']['install_directory']</td>
<td>String</td>
<td>where the database upgrader should be installed</td>
<td>DatabaseUpgrader inside of the cache_path</td>
</tr>
</table>
Usage
On your application cookbook, use the resource:
include_recipe 'database_upgrader' # to ensure that it's installed database_upgrader_checked "make sure database is up to date" do connection_string 'Server=(local);Database=test;Integrated Security=SSPI' scripts_directory 'C:\\temp\\scripts' application_version '1.2.3.4' end
License and Authors
Author:: Michael Hedgpeth (mhedgpeth@gmail.com)
Dependent cookbooks
windows >= 0.0.0 |
dsc >= 0.0.0 |
resource >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of database-upgrader
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.0 failed this metric
FC016: LWRP does not declare a default action: database_upgrader/resources/checked.rb:1
FC064: Ensure issues_url is set in metadata: database_upgrader/metadata.rb:1
FC065: Ensure source_url is set in metadata: database_upgrader/metadata.rb:1
FC066: Ensure chef_version is set in metadata: database_upgrader/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: database_upgrader/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
database_upgrader/files/default/DatabaseUpgrader.zip
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.0 failed this metric
FC016: LWRP does not declare a default action: database_upgrader/resources/checked.rb:1
FC064: Ensure issues_url is set in metadata: database_upgrader/metadata.rb:1
FC065: Ensure source_url is set in metadata: database_upgrader/metadata.rb:1
FC066: Ensure chef_version is set in metadata: database_upgrader/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: database_upgrader/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
database_upgrader/files/default/DatabaseUpgrader.zip
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
FC064: Ensure issues_url is set in metadata: database_upgrader/metadata.rb:1
FC065: Ensure source_url is set in metadata: database_upgrader/metadata.rb:1
FC066: Ensure chef_version is set in metadata: database_upgrader/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: database_upgrader/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
database_upgrader/files/default/DatabaseUpgrader.zip
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number