database_patcher 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/database_patcher/patch_entity.rb +2 -0
- data/lib/database_patcher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6659af235149f32f5629e7095ceac864e523cf2a
|
|
4
|
+
data.tar.gz: 337328496b5c7a7a4418775d96d3041c0c93bbf0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d3486c1d47ace4f8e23eef4173ea7ccf9403fcd1546ded667e1dce4438d490cd7272bcd60747ec02ec2d3d3173362ffb7dce67449e48044c2f34004866f43e5
|
|
7
|
+
data.tar.gz: 3dc05f74d3e46c07336d3c1a4ac086c0af6fe6685369d6d55150c6b0a76736808c2c969704f2b8cc8a50ac5b9911b99cc0c7ad50a681693446ecf3b6503ed60e
|
|
@@ -46,10 +46,12 @@ class DatabasePatcher::PatchEntity
|
|
|
46
46
|
|
|
47
47
|
def register_this_patch(connection)
|
|
48
48
|
connection[:installed_patches].insert(patch_record)
|
|
49
|
+
$stdout.puts("Patch applied: #{uniq_indentifier[:timestamp]}")
|
|
49
50
|
end
|
|
50
51
|
|
|
51
52
|
def unregister_this_patch(connection)
|
|
52
53
|
connection[:installed_patches].where(uniq_indentifier).delete
|
|
54
|
+
$stdout.puts("Patch removed: #{uniq_indentifier[:timestamp]}")
|
|
53
55
|
end
|
|
54
56
|
|
|
55
57
|
def uniq_indentifier
|