departure 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +10 -28
- data/README.md +0 -15
- data/bin/console +1 -1
- data/departure.gemspec +1 -1
- data/departure_error.log +1 -0
- data/lib/departure/cli_generator.rb +1 -0
- data/lib/departure/connection_details.rb +2 -10
- data/lib/departure/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5b9dd5a54f70a99b3471d272b91532e4227c865
|
4
|
+
data.tar.gz: bb4d2da3ba3cd339fde67f3cb811f2f78e3c65ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66b7cfefcd27c06466d1c2c0324ea89d89ad9fae594d33f8c56ab50c4cef0823d00dcb51c5b67983d9879b81de1e848359706191019aa5b3582a34bcc35ac448
|
7
|
+
data.tar.gz: 62129654e7c27998881ecc28cdfad93eaf5b4abf3b1fbef192cfdd2c59cd94feba6693986d20e521dcf6bfb273aa322c67a8d2e955150fd75d3249dc05fef5a0
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -12,40 +12,15 @@ Please follow the format in [Keep a Changelog](http://keepachangelog.com/)
|
|
12
12
|
### Removed
|
13
13
|
### Fixed
|
14
14
|
|
15
|
-
## [
|
16
|
-
|
17
|
-
### Added
|
18
|
-
|
19
|
-
- Allow running on other than default MySQL port
|
20
|
-
|
21
|
-
### Changed
|
22
|
-
### Removed
|
23
|
-
### Fixed
|
24
|
-
|
25
|
-
- Handle special characters in connection's password
|
26
|
-
|
27
|
-
## [2.0.0 - 2017-04-20]
|
28
|
-
|
29
|
-
### Added
|
30
|
-
### Changed
|
31
|
-
|
32
|
-
- Rename the gem from percona_migrator to departure
|
33
|
-
|
34
|
-
### Removed
|
35
|
-
|
36
|
-
- Percona_migrator's deprecation warnings when installing and running the gem.
|
37
|
-
|
38
|
-
### Fixed
|
39
|
-
|
40
|
-
## [1.1.0] - 2017-04-07
|
15
|
+
## [3.0.0] - 2017-05-02
|
41
16
|
|
42
17
|
### Added
|
43
18
|
|
44
19
|
- Allow passing any `pt-online-schema-change`'s arguments through the
|
45
20
|
`PERCONA_ARGS` env var when executing a migration with `rake db:migrate:up`
|
46
21
|
or `db:migrate:down`.
|
47
|
-
-
|
48
|
-
-
|
22
|
+
- Filter MySQL's password from logs.
|
23
|
+
- Allow setting global percona arguments via gem configuration.
|
49
24
|
|
50
25
|
### Changed
|
51
26
|
|
@@ -53,6 +28,13 @@ Please follow the format in [Keep a Changelog](http://keepachangelog.com/)
|
|
53
28
|
So far, this was purposely set to `none`. To keep this same behaviour
|
54
29
|
provide the `PERCONA_ARGS=--recursion-method=none` env var when running the
|
55
30
|
migration.
|
31
|
+
- Rename the gem from percona_migrator to departure.
|
32
|
+
|
33
|
+
### Removed
|
34
|
+
|
35
|
+
- Percona_migrator's deprecation warnings when installing and running the gem.
|
36
|
+
|
37
|
+
### Fixed
|
56
38
|
|
57
39
|
## [1.0.0] - 2016-11-30
|
58
40
|
|
data/README.md
CHANGED
@@ -26,21 +26,6 @@ Toolkit](https://www.percona.com/doc/percona-toolkit/2.0/pt-online-schema-change
|
|
26
26
|
|
27
27
|
`brew install percona-toolkit`
|
28
28
|
|
29
|
-
If when running a migration you see an error like:
|
30
|
-
|
31
|
-
```
|
32
|
-
PerconaMigrator::Error: Cannot connect to MySQL: Cannot connect to MySQL because
|
33
|
-
the Perl DBI module is not installed or not found.
|
34
|
-
```
|
35
|
-
|
36
|
-
You also need to install the DBI and DBD::MySQL modules from `cpan`.
|
37
|
-
|
38
|
-
```
|
39
|
-
$ sudo cpan
|
40
|
-
cpan> install DBI
|
41
|
-
cpan> install DBD::mysql
|
42
|
-
```
|
43
|
-
|
44
29
|
### Linux
|
45
30
|
|
46
31
|
#### Ubuntu/Debian based
|
data/bin/console
CHANGED
data/departure.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'rails', '~> 4.
|
21
|
+
spec.add_runtime_dependency 'rails', '~> 4.1.0'
|
22
22
|
spec.add_runtime_dependency 'mysql2', '0.3.20'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
data/departure_error.log
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
No foreign keys reference `percona_migrator_test`.`comments`; ignoring --alter-foreign-keys-method.
|
@@ -2,7 +2,6 @@ module Departure
|
|
2
2
|
# Holds the parameters of the DB connection and formats them to string
|
3
3
|
class ConnectionDetails
|
4
4
|
|
5
|
-
DEFAULT_PORT = 3306
|
6
5
|
# Constructor
|
7
6
|
#
|
8
7
|
# @param [Hash] connection parametes as used in #establish_conneciton
|
@@ -15,7 +14,7 @@ module Departure
|
|
15
14
|
#
|
16
15
|
# @return [String]
|
17
16
|
def to_s
|
18
|
-
@to_s ||= "-h #{host} -
|
17
|
+
@to_s ||= "-h #{host} -u #{user} #{password_argument}"
|
19
18
|
end
|
20
19
|
|
21
20
|
# TODO: Doesn't the abstract adapter already handle this somehow?
|
@@ -34,7 +33,7 @@ module Departure
|
|
34
33
|
# @return [String]
|
35
34
|
def password_argument
|
36
35
|
if password.present?
|
37
|
-
|
36
|
+
"-p #{password}"
|
38
37
|
else
|
39
38
|
''
|
40
39
|
end
|
@@ -67,12 +66,5 @@ module Departure
|
|
67
66
|
def password
|
68
67
|
ENV.fetch('PERCONA_DB_PASSWORD', connection_data[:password])
|
69
68
|
end
|
70
|
-
|
71
|
-
# Returns the database's port.
|
72
|
-
#
|
73
|
-
# @return [String]
|
74
|
-
def port
|
75
|
-
connection_data.fetch(:port, DEFAULT_PORT)
|
76
|
-
end
|
77
69
|
end
|
78
70
|
end
|
data/lib/departure/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: departure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Zayats
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2017-05-
|
16
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|
@@ -21,14 +21,14 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - "~>"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 4.
|
24
|
+
version: 4.1.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - "~>"
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: 4.
|
31
|
+
version: 4.1.0
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: mysql2
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
213
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.6.
|
214
|
+
rubygems_version: 2.6.11
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: pt-online-schema-change runner for ActiveRecord migrations
|