activerecord-clean-db-structure 0.2.2 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74075ad5bacc97daa51ec17089777e725696b476
4
- data.tar.gz: 9f4c8e237c1a41f78d09adb0cdcdf533cf6cba90
3
+ metadata.gz: 19fbf85c44fea762feb10a7f4e6fabaaddec6e6d
4
+ data.tar.gz: 7daa41aacfe2c08a238e96de8606d42ea5fe8f52
5
5
  SHA512:
6
- metadata.gz: 6f2449492e32925ffd7469678453dbf8ef22f7beadfdc85d316da5c99aaf292e9cfe2839544c1f0967f2ddbb61af1bd10317f3a868d98660f57df9e1c088b60d
7
- data.tar.gz: 565013be9fd41ce22a1cc7896f898f7cd58b4c29deb621319e2cd7a0542d18539698b39d66d45291af06ac3332f66daa8849446eddd551cc198d40f5247ca1ba
6
+ metadata.gz: 8ca702bb6d0cfedb412fb2d3dda34f87505e1a6bfecc68d94a9f86b94617348fe2369a6119f2dd4c10f3080b82f741dde24a6e360caf48bc3a48c1c46a9c9a59
7
+ data.tar.gz: 2b917375e35bb835da6d1e38168b3b6225247aa867f313f59c9011af22828dd185fe137a8bac43b359460f4d219b713c771c21ab88909ad0775b14fe1ce2c9af
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3 2017-10-21
4
+
5
+ * pg 10.x adds AS Integer to structure.sql format [Nathan Woodhull](https://github.com/woodhull)
6
+
7
+
3
8
  ## 0.2.2 2017-08-05
4
9
 
5
10
  * Support Rails 5.1 primary key UUIDs that rely on gen_random_uuid()
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-clean-db-structure (0.2.2)
4
+ activerecord-clean-db-structure (0.2.3)
5
5
  activerecord (>= 4.2)
6
6
 
7
7
  GEM
@@ -34,7 +34,7 @@ module ActiveRecordCleanDbStructure
34
34
  dump.gsub!(/^ id bigint NOT NULL(,)?$/, ' id BIGSERIAL PRIMARY KEY\1')
35
35
  dump.gsub!(/^ id uuid DEFAULT uuid_generate_v4\(\) NOT NULL(,)?$/, ' id uuid DEFAULT uuid_generate_v4() PRIMARY KEY\1')
36
36
  dump.gsub!(/^ id uuid DEFAULT gen_random_uuid\(\) NOT NULL(,)?$/, ' id uuid DEFAULT gen_random_uuid() PRIMARY KEY\1')
37
- dump.gsub!(/^CREATE SEQUENCE \w+_id_seq\s+START WITH 1\s+INCREMENT BY 1\s+NO MINVALUE\s+NO MAXVALUE\s+CACHE 1;$/, '')
37
+ dump.gsub!(/^CREATE SEQUENCE \w+_id_seq\s+(AS integer\s+)?START WITH 1\s+INCREMENT BY 1\s+NO MINVALUE\s+NO MAXVALUE\s+CACHE 1;$/, '')
38
38
  dump.gsub!(/^ALTER SEQUENCE \w+_id_seq OWNED BY .*;$/, '')
39
39
  dump.gsub!(/^ALTER TABLE ONLY \w+ ALTER COLUMN id SET DEFAULT nextval\('\w+_id_seq'::regclass\);$/, '')
40
40
  dump.gsub!(/^ALTER TABLE ONLY \w+\s+ADD CONSTRAINT \w+_pkey PRIMARY KEY \(id\);$/, '')
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordCleanDbStructure
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
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.2
4
+ version: 0.2.3
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-08-06 00:00:00.000000000 Z
11
+ date: 2017-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord