activerecord-clean-db-structure 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/activerecord-clean-db-structure/clean_dump.rb +7 -1
- data/lib/activerecord-clean-db-structure/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a79966dcd7df589f990e003885acf3eb866f26a3
|
4
|
+
data.tar.gz: 8e1e597876d1b84ece45dd0fecbf4d295f2fa6c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 855f003d911bb68edc49d3dd58f4c4e290e2f6ab74e4060667da8a852e9a4296696e7753b15e4bbf3450f0cf9a539ca5062015cbc0dde5379f9ed078b0ed11ab
|
7
|
+
data.tar.gz: 10c93aee292993bd84cb480f5c88009d17789c909f85835c12799265ef3a8110d44e8ff63abb42b7f673819ba1127335b4fe6b88f80becd15f432510bf46a0df
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.2.4 2017-11-02
|
4
|
+
|
5
|
+
* Remove pg_buffercache extension if present (its only used for statistics purposes)
|
6
|
+
* Remove extension comments if present - they can prevent non-superusers from
|
7
|
+
restoring the tables, and are never used together with Rails anyway
|
8
|
+
|
9
|
+
|
3
10
|
## 0.2.3 2017-10-21
|
4
11
|
|
5
12
|
* pg 10.x adds AS Integer to structure.sql format [Nathan Woodhull](https://github.com/woodhull)
|
data/Gemfile.lock
CHANGED
@@ -18,9 +18,15 @@ module ActiveRecordCleanDbStructure
|
|
18
18
|
|
19
19
|
# Remove pg_stat_statements extension (its not relevant to the code)
|
20
20
|
dump.gsub!(/^CREATE EXTENSION IF NOT EXISTS pg_stat_statements.*/, '')
|
21
|
-
dump.gsub!(/^COMMENT ON EXTENSION pg_stat_statements.*/, '')
|
22
21
|
dump.gsub!(/^-- Name: (EXTENSION )?pg_stat_statements;.*/, '')
|
23
22
|
|
23
|
+
# Remove pg_buffercache extension (its not relevant to the code)
|
24
|
+
dump.gsub!(/^CREATE EXTENSION IF NOT EXISTS pg_buffercache.*/, '')
|
25
|
+
dump.gsub!(/^-- Name: (EXTENSION )?pg_buffercache;.*/, '')
|
26
|
+
|
27
|
+
# Remove comments on extensions, they create problems if the extension is owned by another user
|
28
|
+
dump.gsub!(/^COMMENT ON EXTENSION .*/, '')
|
29
|
+
|
24
30
|
# Remove useless, version-specific parts of comments
|
25
31
|
dump.gsub!(/^-- (.*); Schema: (public|-); Owner: -.*/, '-- \1')
|
26
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-clean-db-structure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Fittl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|