squint 0.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.all-contributorsrc +108 -0
- data/lib/squint.rb +107 -87
- data/lib/squint/version.rb +1 -1
- data/readme.md +186 -0
- data/test/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/models/user.rb +6 -0
- data/test/dummy/config/application.rb +3 -1
- data/test/dummy/config/environments/test.rb +7 -2
- data/test/dummy/db/migrate/20200318185942_create_users.rb +9 -0
- data/test/dummy/db/migrate/20200318185943_add_settings_to_posts.rb +7 -0
- data/test/dummy/db/schema.rb +11 -6
- data/test/dummy/user.rb +6 -0
- data/test/squint_test.rb +43 -13
- data/test/test_helper.rb +5 -1
- metadata +33 -26
- data/test/dummy/app/models/post.rb~ +0 -2
- data/test/dummy/config/database.yml~ +0 -25
- data/test/dummy/db/migrate/20170512185941_create_posts.rb~ +0 -12
- data/test/dummy/log/development.log +0 -351
- data/test/dummy/log/test.log +0 -29428
- data/test/dummy/test/fixtures/posts.yml~ +0 -13
- data/test/dummy/test/models/post_test.rb +0 -4
- data/test/dummy/test/models/post_test.rb~ +0 -17
- data/test/test_helper.rb~ +0 -20
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
@@ -11,4 +11,6 @@ class Post < ActiveRecord::Base
|
|
11
11
|
store_attribute :storext_hstore_attributes, :hstore_friend_count, Integer, default: 0
|
12
12
|
store_attribute :storext_hstore_attributes, :hstore_is_awesome, Integer, default: false
|
13
13
|
store_attribute :storext_hstore_attributes, :hstore_is_present, Integer, default: nil
|
14
|
+
|
15
|
+
store_attribute :settings, :zip_code, String, default: '90210'
|
14
16
|
end
|
@@ -20,6 +20,8 @@ module Dummy
|
|
20
20
|
# config.i18n.default_locale = :de
|
21
21
|
|
22
22
|
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
|
23
|
+
if ActiveRecord::VERSION::STRING < '5'
|
24
|
+
config.active_record.raise_in_transactional_callbacks = true
|
25
|
+
end
|
24
26
|
end
|
25
27
|
end
|
@@ -13,8 +13,13 @@ Rails.application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static file server for tests with Cache-Control for performance.
|
16
|
-
|
17
|
-
|
16
|
+
if ActiveRecord::VERSION::STRING < '5'
|
17
|
+
config.serve_static_files = true
|
18
|
+
config.static_cache_control = 'public, max-age=3600'
|
19
|
+
elsif ActiveRecord::VERSION::STRING > '5'
|
20
|
+
config.public_file_server.enabled = true
|
21
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
22
|
+
end
|
18
23
|
|
19
24
|
# Show full error reports and disable caching.
|
20
25
|
config.consider_all_requests_local = true
|
data/test/dummy/db/schema.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
@@ -11,7 +10,7 @@
|
|
11
10
|
#
|
12
11
|
# It's strongly recommended that you check this file into your version control system.
|
13
12
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 20200318185943) do
|
15
14
|
|
16
15
|
# These are extensions that must be enabled in order to support this database
|
17
16
|
enable_extension "plpgsql"
|
@@ -26,11 +25,17 @@ ActiveRecord::Schema.define(version: 20170512185941) do
|
|
26
25
|
t.hstore "storext_hstore_attributes"
|
27
26
|
t.datetime "created_at", null: false
|
28
27
|
t.datetime "updated_at", null: false
|
28
|
+
t.jsonb "settings"
|
29
|
+
t.index ["properties"], name: "index_posts_on_properties", using: :gin
|
30
|
+
t.index ["request_info"], name: "index_posts_on_request_info", using: :gin
|
31
|
+
t.index ["storext_hstore_attributes"], name: "index_posts_on_storext_hstore_attributes", using: :gin
|
32
|
+
t.index ["storext_jsonb_attributes"], name: "index_posts_on_storext_jsonb_attributes", using: :gin
|
29
33
|
end
|
30
34
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
+
create_table "users", force: :cascade do |t|
|
36
|
+
t.hstore "settings"
|
37
|
+
t.datetime "created_at", null: false
|
38
|
+
t.datetime "updated_at", null: false
|
39
|
+
end
|
35
40
|
|
36
41
|
end
|
data/test/dummy/user.rb
ADDED
data/test/squint_test.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class SquintTest < ActiveSupport::TestCase
|
4
|
-
self.use_transactional_fixtures = true
|
5
4
|
|
6
5
|
# Tests that should pass for both jsonb and hstore properties
|
7
6
|
%i[request_info properties].each do |prop_name|
|
@@ -45,19 +44,21 @@ class SquintTest < ActiveSupport::TestCase
|
|
45
44
|
end
|
46
45
|
end
|
47
46
|
|
48
|
-
[
|
49
|
-
|
47
|
+
[
|
48
|
+
[:storext_jsonb_attributes, 'jsonb'],
|
49
|
+
# [:storext_hstore_attributes, 'hstore']
|
50
|
+
].each do |prop_name, prefix|
|
50
51
|
test "detects present #{prop_name}" do
|
51
|
-
reln = Post.where(prop_name => { "#{prefix}_zip_code"
|
52
|
+
reln = Post.where(prop_name => { "#{prefix}_zip_code" => '35124' })
|
52
53
|
# puts reln.to_sql
|
53
54
|
assert_equal 1, reln.count, reln.to_sql
|
54
55
|
end
|
55
56
|
|
56
57
|
test "#{prop_name} is composeable in one where" do
|
57
58
|
# get the first matching post
|
58
|
-
posts = Post.where(prop_name => { "#{prefix}_zip_code"
|
59
|
+
posts = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' })
|
59
60
|
# compose with previous query with the id of first post
|
60
|
-
reln = Post.where(prop_name => { "#{prefix}_zip_code"
|
61
|
+
reln = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' }, id: posts.first.id)
|
61
62
|
# puts reln.to_sql
|
62
63
|
assert_operator posts.count, :>, 1
|
63
64
|
assert_equal 1, reln.count, reln.to_sql
|
@@ -65,9 +66,9 @@ class SquintTest < ActiveSupport::TestCase
|
|
65
66
|
|
66
67
|
test "#{prop_name} is composeable in multiple wheres" do
|
67
68
|
# get the first matching post
|
68
|
-
posts = Post.where(prop_name => { "#{prefix}_zip_code"
|
69
|
+
posts = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' })
|
69
70
|
# compose with previous query with the id of first post
|
70
|
-
reln = Post.where(prop_name => { "#{prefix}_zip_code"
|
71
|
+
reln = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' }).where(id: posts.first.id)
|
71
72
|
# puts reln.to_sql
|
72
73
|
assert posts.count > 1
|
73
74
|
assert_equal 1, reln.count, reln.to_sql
|
@@ -76,35 +77,64 @@ class SquintTest < ActiveSupport::TestCase
|
|
76
77
|
|
77
78
|
[[:storext_jsonb_attributes, 'jsonb'],
|
78
79
|
[:storext_hstore_attributes, 'hstore']].each do |prop_name, prefix|
|
80
|
+
|
79
81
|
test "detects default #{prop_name}" do
|
80
|
-
reln = Post.where(prop_name => { "#{prefix}_zip_code"
|
82
|
+
reln = Post.where(prop_name => { "#{prefix}_zip_code" => '90210' })
|
81
83
|
# puts reln.to_sql
|
82
84
|
assert_equal Post.all.count - 6, reln.count, reln.to_sql
|
83
85
|
end
|
84
86
|
|
85
87
|
test "detects present integer #{prop_name}" do
|
86
|
-
reln = Post.where(prop_name => { "#{prefix}_friend_count"
|
88
|
+
reln = Post.where(prop_name => { "#{prefix}_friend_count" => 10 })
|
87
89
|
# puts reln.to_sql
|
88
90
|
assert_equal 1, reln.count, reln.to_sql
|
89
91
|
end
|
90
92
|
|
91
93
|
test "detects default integer #{prop_name}" do
|
92
|
-
reln = Post.where(prop_name => { "#{prefix}_friend_count"
|
94
|
+
reln = Post.where(prop_name => { "#{prefix}_friend_count" => 0 })
|
93
95
|
# puts reln.to_sql
|
94
96
|
assert_equal Post.all.count - 5, reln.count, reln.to_sql
|
95
97
|
end
|
96
98
|
|
97
99
|
test "detects default Falseclass #{prop_name}" do
|
98
|
-
reln = Post.where(prop_name => { "#{prefix}_is_awesome"
|
100
|
+
reln = Post.where(prop_name => { "#{prefix}_is_awesome" => false })
|
99
101
|
# puts reln.to_sql
|
100
102
|
assert_equal Post.all.count - 1, reln.count, reln.to_sql
|
101
103
|
end
|
102
104
|
end
|
105
|
+
|
103
106
|
test "handles string parameters" do
|
104
|
-
reln = Post.where(storext_jsonb_attributes: { "jsonb_friend_count"
|
107
|
+
reln = Post.where(storext_jsonb_attributes: { "jsonb_friend_count" => 11 }).
|
105
108
|
where("posts.title = ?", 'With Storext is aweesome not default title')
|
106
109
|
assert_nothing_raised do
|
107
110
|
assert_equal 1, reln.count
|
108
111
|
end
|
109
112
|
end
|
113
|
+
|
114
|
+
test "handles multiple non-hash parameters" do
|
115
|
+
reln = Post.where(storext_jsonb_attributes: { "jsonb_friend_count" => 11 }).
|
116
|
+
where("posts.id between ? and ?",
|
117
|
+
posts(:with_storext_is_awesome_not_default).id,
|
118
|
+
posts(:with_storext_is_awesome_not_default).id + 1)
|
119
|
+
assert_nothing_raised do
|
120
|
+
assert_equal 1, reln.count
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
#
|
125
|
+
# Make sure that build_where isn't passed more than 2 parameters
|
126
|
+
# There was a bug...
|
127
|
+
#
|
128
|
+
test 'with find by lotsa things' do
|
129
|
+
assert_nothing_raised do
|
130
|
+
Post.find_by(id: 1, title: 'sumpthin',
|
131
|
+
body: 'sumpthin else',
|
132
|
+
created_at: '2015-01-01')
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
test 'HASH_DATA_COLUMNS is not shared between models' do
|
137
|
+
assert_equal('hstore', User::HASH_DATA_COLUMNS[:settings])
|
138
|
+
assert_equal('jsonb' , Post::HASH_DATA_COLUMNS[:settings])
|
139
|
+
end
|
110
140
|
end
|
data/test/test_helper.rb
CHANGED
@@ -25,5 +25,9 @@ class ActiveSupport::TestCase
|
|
25
25
|
fixtures :all
|
26
26
|
# 'cuz I want to be able to login to the db and see things
|
27
27
|
# and there aren't many tests here anyway, so speed isn't a problem
|
28
|
-
|
28
|
+
if ActiveRecord::VERSION::STRING < '5'
|
29
|
+
self.use_transactional_fixtures = false
|
30
|
+
elsif ActiveRecord::VERSION::STRING > '5'
|
31
|
+
self.use_transactional_tests = false
|
32
|
+
end
|
29
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David H. Wilkins
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 5.1.6.2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 5.1.6.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pg
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,6 +39,20 @@ dependencies:
|
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: appraisal
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
42
56
|
description: Use rails semantics to search keys and values inside PostgreSQL jsonb,
|
43
57
|
json and hstore columns. Compatible with StoreXT attributes.
|
44
58
|
email:
|
@@ -48,32 +62,30 @@ executables: []
|
|
48
62
|
extensions: []
|
49
63
|
extra_rdoc_files: []
|
50
64
|
files:
|
65
|
+
- ".all-contributorsrc"
|
51
66
|
- MIT-LICENSE
|
52
67
|
- Rakefile
|
53
68
|
- lib/squint.rb
|
54
69
|
- lib/squint/version.rb
|
70
|
+
- readme.md
|
55
71
|
- test/dummy/Rakefile
|
72
|
+
- test/dummy/app/assets/config/manifest.js
|
56
73
|
- test/dummy/app/models/post.rb
|
57
|
-
- test/dummy/app/models/
|
74
|
+
- test/dummy/app/models/user.rb
|
58
75
|
- test/dummy/config.ru
|
59
76
|
- test/dummy/config/application.rb
|
60
77
|
- test/dummy/config/boot.rb
|
61
78
|
- test/dummy/config/database.yml
|
62
|
-
- test/dummy/config/database.yml~
|
63
79
|
- test/dummy/config/environment.rb
|
64
80
|
- test/dummy/config/environments/test.rb
|
65
81
|
- test/dummy/db/migrate/20170512185941_create_posts.rb
|
66
|
-
- test/dummy/db/migrate/
|
82
|
+
- test/dummy/db/migrate/20200318185942_create_users.rb
|
83
|
+
- test/dummy/db/migrate/20200318185943_add_settings_to_posts.rb
|
67
84
|
- test/dummy/db/schema.rb
|
68
|
-
- test/dummy/log/development.log
|
69
|
-
- test/dummy/log/test.log
|
70
85
|
- test/dummy/test/fixtures/posts.yml
|
71
|
-
- test/dummy/
|
72
|
-
- test/dummy/test/models/post_test.rb
|
73
|
-
- test/dummy/test/models/post_test.rb~
|
86
|
+
- test/dummy/user.rb
|
74
87
|
- test/squint_test.rb
|
75
88
|
- test/test_helper.rb
|
76
|
-
- test/test_helper.rb~
|
77
89
|
homepage: https://github.com/ProctorU/squint
|
78
90
|
licenses:
|
79
91
|
- MIT
|
@@ -93,31 +105,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
105
|
- !ruby/object:Gem::Version
|
94
106
|
version: '0'
|
95
107
|
requirements: []
|
96
|
-
|
97
|
-
rubygems_version: 2.6.11
|
108
|
+
rubygems_version: 3.0.8
|
98
109
|
signing_key:
|
99
110
|
specification_version: 4
|
100
111
|
summary: Search PostgreSQL jsonb and hstore columns
|
101
112
|
test_files:
|
102
113
|
- test/test_helper.rb
|
103
114
|
- test/dummy/Rakefile
|
104
|
-
- test/dummy/app/models/
|
115
|
+
- test/dummy/app/models/user.rb
|
105
116
|
- test/dummy/app/models/post.rb
|
106
|
-
- test/dummy/
|
107
|
-
- test/dummy/
|
108
|
-
- test/dummy/test/fixtures/posts.yml~
|
117
|
+
- test/dummy/app/assets/config/manifest.js
|
118
|
+
- test/dummy/user.rb
|
109
119
|
- test/dummy/test/fixtures/posts.yml
|
110
|
-
- test/dummy/config/database.yml~
|
111
120
|
- test/dummy/config/environments/test.rb
|
112
121
|
- test/dummy/config/application.rb
|
113
122
|
- test/dummy/config/boot.rb
|
114
123
|
- test/dummy/config/environment.rb
|
115
124
|
- test/dummy/config/database.yml
|
116
125
|
- test/dummy/config.ru
|
117
|
-
- test/dummy/log/development.log
|
118
|
-
- test/dummy/log/test.log
|
119
126
|
- test/dummy/db/schema.rb
|
120
|
-
- test/dummy/db/migrate/
|
127
|
+
- test/dummy/db/migrate/20200318185943_add_settings_to_posts.rb
|
121
128
|
- test/dummy/db/migrate/20170512185941_create_posts.rb
|
122
|
-
- test/
|
129
|
+
- test/dummy/db/migrate/20200318185942_create_users.rb
|
123
130
|
- test/squint_test.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
#
|
7
|
-
default: &default
|
8
|
-
adapter: sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
development:
|
13
|
-
<<: *default
|
14
|
-
database: db/development.sqlite3
|
15
|
-
|
16
|
-
# Warning: The database defined as "test" will be erased and
|
17
|
-
# re-generated from your development database when you run "rake".
|
18
|
-
# Do not set this db to the same as development or production.
|
19
|
-
test:
|
20
|
-
<<: *default
|
21
|
-
database: db/test.sqlite3
|
22
|
-
|
23
|
-
production:
|
24
|
-
<<: *default
|
25
|
-
database: db/production.sqlite3
|
@@ -1,351 +0,0 @@
|
|
1
|
-
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
-
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
-
Migrating to CreatePosts (20170512185941)
|
5
|
-
[1m[35m (0.1ms)[0m BEGIN
|
6
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
7
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
8
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9
|
-
Migrating to CreatePosts (20170512185941)
|
10
|
-
[1m[35m (0.2ms)[0m BEGIN
|
11
|
-
[1m[36mSQL (15.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
12
|
-
[1m[35m (1.9ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
13
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512185941"]]
|
14
|
-
[1m[35m (0.2ms)[0m COMMIT
|
15
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
|
-
[1m[35m (2.2ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
17
|
-
FROM pg_constraint c
|
18
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
19
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
20
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
21
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
22
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
23
|
-
WHERE c.contype = 'f'
|
24
|
-
AND t1.relname = 'posts'
|
25
|
-
AND t3.nspname = ANY (current_schemas(false))
|
26
|
-
ORDER BY c.conname
|
27
|
-
|
28
|
-
[1m[36m (108.2ms)[0m [1mDROP DATABASE IF EXISTS "search_semi_structured_data_development"[0m
|
29
|
-
[1m[35m (3275.6ms)[0m DROP DATABASE IF EXISTS "search_semi_structured_data_test"
|
30
|
-
[1m[36m (223.1ms)[0m [1mCREATE DATABASE "search_semi_structured_data_development" ENCODING = 'unicode'[0m
|
31
|
-
[1m[35m (0.7ms)[0m CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
|
32
|
-
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
33
|
-
[1m[35mSQL (12.7ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
34
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
35
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
36
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
37
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
38
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
39
|
-
[1m[35mSQL (1.9ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
40
|
-
[1m[36mSQL (0.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
41
|
-
[1m[35m (4.8ms)[0m DROP TABLE "posts" CASCADE
|
42
|
-
[1m[36m (6.4ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
43
|
-
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
44
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
45
|
-
[1m[36m (5008.8ms)[0m [1mDROP DATABASE IF EXISTS "search_semi_structured_data_test"[0m
|
46
|
-
[1m[36m (108.9ms)[0m [1mDROP DATABASE IF EXISTS "search_semi_structured_data_test"[0m
|
47
|
-
[1m[35m (222.2ms)[0m CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
|
48
|
-
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
49
|
-
[1m[35mSQL (13.3ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
50
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
51
|
-
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
52
|
-
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
53
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
54
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
55
|
-
[1m[36m (110.9ms)[0m [1mDROP DATABASE IF EXISTS "search_semi_structured_data_development"[0m
|
56
|
-
[1m[35m (221.8ms)[0m CREATE DATABASE "search_semi_structured_data_development" ENCODING = 'unicode'
|
57
|
-
[1m[36mSQL (0.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
58
|
-
[1m[35mSQL (17.5ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
59
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
60
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
61
|
-
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
62
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
63
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
64
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
65
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
66
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
67
|
-
[1m[36m (1.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
68
|
-
FROM pg_constraint c
|
69
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
70
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
71
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
72
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
73
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
74
|
-
WHERE c.contype = 'f'
|
75
|
-
AND t1.relname = 'posts'
|
76
|
-
AND t3.nspname = ANY (current_schemas(false))
|
77
|
-
ORDER BY c.conname
|
78
|
-
[0m
|
79
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
80
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
81
|
-
Migrating to CreatePosts (20170512185941)
|
82
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
83
|
-
[1m[35m (3.2ms)[0m DROP TABLE "posts"
|
84
|
-
[1m[36mSQL (7.4ms)[0m [1mDROP EXTENSION IF EXISTS "hstore" CASCADE[0m
|
85
|
-
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20170512185941"]]
|
86
|
-
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
87
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
88
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
89
|
-
Migrating to CreatePosts (20170512185941)
|
90
|
-
[1m[35m (0.2ms)[0m BEGIN
|
91
|
-
[1m[36mSQL (19.0ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
92
|
-
[1m[35m (3.9ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
93
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512185941"]]
|
94
|
-
[1m[35m (0.2ms)[0m COMMIT
|
95
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
96
|
-
[1m[35m (1.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
97
|
-
FROM pg_constraint c
|
98
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
99
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
100
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
101
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
102
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
103
|
-
WHERE c.contype = 'f'
|
104
|
-
AND t1.relname = 'posts'
|
105
|
-
AND t3.nspname = ANY (current_schemas(false))
|
106
|
-
ORDER BY c.conname
|
107
|
-
|
108
|
-
[1m[36m (109.9ms)[0m [1mDROP DATABASE IF EXISTS "search_semi_structured_data_test"[0m
|
109
|
-
[1m[35m (245.4ms)[0m CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
|
110
|
-
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
111
|
-
[1m[35mSQL (15.5ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
112
|
-
[1m[36m (2.7ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
113
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
114
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
115
|
-
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
116
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
117
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
118
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
119
|
-
Migrating to CreatePosts (20170512185941)
|
120
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
121
|
-
[1m[35m (0.8ms)[0m DROP TABLE "posts"
|
122
|
-
[1m[36mSQL (2.6ms)[0m [1mDROP EXTENSION IF EXISTS "hstore" CASCADE[0m
|
123
|
-
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20170512185941"]]
|
124
|
-
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
125
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
126
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
127
|
-
Migrating to CreatePosts (20170512185941)
|
128
|
-
[1m[35m (0.2ms)[0m BEGIN
|
129
|
-
[1m[36mSQL (14.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
130
|
-
[1m[35m (2.6ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
131
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512185941"]]
|
132
|
-
[1m[35m (0.2ms)[0m COMMIT
|
133
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
134
|
-
[1m[35m (1.6ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
135
|
-
FROM pg_constraint c
|
136
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
137
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
138
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
139
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
140
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
141
|
-
WHERE c.contype = 'f'
|
142
|
-
AND t1.relname = 'posts'
|
143
|
-
AND t3.nspname = ANY (current_schemas(false))
|
144
|
-
ORDER BY c.conname
|
145
|
-
|
146
|
-
[1m[36m (110.8ms)[0m [1mDROP DATABASE IF EXISTS "search_semi_structured_data_test"[0m
|
147
|
-
[1m[35m (224.8ms)[0m CREATE DATABASE "search_semi_structured_data_test" ENCODING = 'unicode'
|
148
|
-
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
149
|
-
[1m[35mSQL (15.2ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
150
|
-
[1m[36m (2.6ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
151
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
152
|
-
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
153
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
154
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
155
|
-
[1m[36m (0.1ms)[0m [1mDROP DATABASE IF EXISTS "squint_test"[0m
|
156
|
-
[1m[35m (231.6ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
157
|
-
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
158
|
-
[1m[35mSQL (16.7ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
159
|
-
[1m[36m (2.9ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
160
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
161
|
-
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
162
|
-
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
163
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
164
|
-
[1m[36m (5013.0ms)[0m [1mDROP DATABASE IF EXISTS "squint_test"[0m
|
165
|
-
[1m[36m (110.7ms)[0m [1mDROP DATABASE IF EXISTS "squint_test"[0m
|
166
|
-
[1m[35m (212.9ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
167
|
-
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
168
|
-
[1m[35mSQL (15.0ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
169
|
-
[1m[36m (2.7ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
170
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
171
|
-
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
172
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
173
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
174
|
-
[1m[36m (105.9ms)[0m [1mDROP DATABASE IF EXISTS "squint_development"[0m
|
175
|
-
[1m[35m (112.3ms)[0m DROP DATABASE IF EXISTS "squint_test"
|
176
|
-
[1m[36m (225.8ms)[0m [1mCREATE DATABASE "squint_development" ENCODING = 'unicode'[0m
|
177
|
-
[1m[35m (224.7ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
178
|
-
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
179
|
-
[1m[35mSQL (12.3ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
180
|
-
[1m[36m (1.9ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
181
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
182
|
-
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
183
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
184
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
185
|
-
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
186
|
-
[1m[36mSQL (11.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
187
|
-
[1m[35m (1.8ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
188
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
189
|
-
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
190
|
-
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
191
|
-
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
|
192
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
193
|
-
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
194
|
-
[1m[35mSQL (10.3ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
195
|
-
[1m[36m (1.7ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
196
|
-
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
197
|
-
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
198
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
199
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
200
|
-
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
201
|
-
[1m[36mSQL (9.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
202
|
-
[1m[35m (1.8ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
203
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
204
|
-
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
205
|
-
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
206
|
-
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
|
207
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
208
|
-
[1m[36m (106.8ms)[0m [1mDROP DATABASE IF EXISTS "squint_development"[0m
|
209
|
-
[1m[35m (5011.5ms)[0m DROP DATABASE IF EXISTS "squint_test"
|
210
|
-
[1m[36m (223.1ms)[0m [1mCREATE DATABASE "squint_development" ENCODING = 'unicode'[0m
|
211
|
-
[1m[35m (0.7ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
212
|
-
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
213
|
-
[1m[35mSQL (15.0ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
214
|
-
[1m[36m (2.6ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
215
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
216
|
-
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
217
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
218
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
219
|
-
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
220
|
-
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
221
|
-
[1m[35m (2.1ms)[0m DROP TABLE "posts" CASCADE
|
222
|
-
[1m[36m (2.3ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
223
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
224
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
225
|
-
[1m[36m (106.9ms)[0m [1mDROP DATABASE IF EXISTS "squint_development"[0m
|
226
|
-
[1m[35m (108.0ms)[0m DROP DATABASE IF EXISTS "squint_test"
|
227
|
-
[1m[36m (211.6ms)[0m [1mCREATE DATABASE "squint_development" ENCODING = 'unicode'[0m
|
228
|
-
[1m[35m (223.0ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
229
|
-
[1m[36mSQL (0.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
230
|
-
[1m[35mSQL (27.4ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
231
|
-
[1m[36m (2.1ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
232
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
233
|
-
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
234
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
235
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
236
|
-
[1m[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
237
|
-
[1m[36mSQL (9.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
238
|
-
[1m[35m (1.8ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
239
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
240
|
-
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
241
|
-
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
242
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
|
243
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
244
|
-
[1m[36m (106.9ms)[0m [1mDROP DATABASE IF EXISTS "squint_development"[0m
|
245
|
-
[1m[35m (3520.2ms)[0m DROP DATABASE IF EXISTS "squint_test"
|
246
|
-
[1m[36m (224.6ms)[0m [1mCREATE DATABASE "squint_development" ENCODING = 'unicode'[0m
|
247
|
-
[1m[35m (224.0ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
248
|
-
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
249
|
-
[1m[35mSQL (26.0ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
250
|
-
[1m[36m (2.3ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
251
|
-
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
252
|
-
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
253
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
254
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
255
|
-
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
256
|
-
[1m[36mSQL (9.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
257
|
-
[1m[35m (1.7ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
258
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
259
|
-
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
260
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
261
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
|
262
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
263
|
-
[1m[36m (107.1ms)[0m [1mDROP DATABASE IF EXISTS "squint_development"[0m
|
264
|
-
[1m[35m (107.2ms)[0m DROP DATABASE IF EXISTS "squint_test"
|
265
|
-
[1m[36m (222.1ms)[0m [1mCREATE DATABASE "squint_development" ENCODING = 'unicode'[0m
|
266
|
-
[1m[35m (223.4ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
267
|
-
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
268
|
-
[1m[35mSQL (11.4ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
269
|
-
[1m[36m (2.1ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
270
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
271
|
-
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
272
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
273
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
274
|
-
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
275
|
-
[1m[36mSQL (11.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
276
|
-
[1m[35m (2.0ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
277
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
278
|
-
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
279
|
-
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
280
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
|
281
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
282
|
-
[1m[36m (109.8ms)[0m [1mDROP DATABASE IF EXISTS "squint_development"[0m
|
283
|
-
[1m[35m (109.4ms)[0m DROP DATABASE IF EXISTS "squint_test"
|
284
|
-
[1m[36m (222.5ms)[0m [1mCREATE DATABASE "squint_development" ENCODING = 'unicode'[0m
|
285
|
-
[1m[35m (212.2ms)[0m CREATE DATABASE "squint_test" ENCODING = 'unicode'
|
286
|
-
[1m[36mSQL (0.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
287
|
-
[1m[35mSQL (27.8ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
288
|
-
[1m[36m (2.5ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
289
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
290
|
-
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
291
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
292
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170512185941')[0m
|
293
|
-
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
294
|
-
[1m[36mSQL (9.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
295
|
-
[1m[35m (1.6ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
296
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
297
|
-
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
298
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
299
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170512185941')
|
300
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
301
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
302
|
-
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
303
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
304
|
-
Migrating to CreatePosts (20170512185941)
|
305
|
-
[1m[35m (0.1ms)[0m BEGIN
|
306
|
-
[1m[36mSQL (11.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
307
|
-
[1m[35m (1.6ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
308
|
-
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_posts_on_request_info" ON "posts" USING GIN ("request_info")[0m
|
309
|
-
[1m[35m (0.5ms)[0m CREATE INDEX "index_posts_on_properties" ON "posts" USING GIN ("properties")
|
310
|
-
[1m[36m (0.4ms)[0m [1mCREATE INDEX "index_posts_on_storext_jsonb_attributes" ON "posts" USING GIN ("storext_jsonb_attributes")[0m
|
311
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512185941"]]
|
312
|
-
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
313
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
314
|
-
[1m[36m (1.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
315
|
-
FROM pg_constraint c
|
316
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
317
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
318
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
319
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
320
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
321
|
-
WHERE c.contype = 'f'
|
322
|
-
AND t1.relname = 'posts'
|
323
|
-
AND t3.nspname = ANY (current_schemas(false))
|
324
|
-
ORDER BY c.conname
|
325
|
-
[0m
|
326
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
327
|
-
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
328
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
329
|
-
Migrating to CreatePosts (20170512185941)
|
330
|
-
[1m[35m (0.2ms)[0m BEGIN
|
331
|
-
[1m[36mSQL (9.9ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "hstore"[0m
|
332
|
-
[1m[35m (1.6ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "body" character varying, "request_info" jsonb, "properties" hstore, "storext_jsonb_attributes" jsonb, "storext_hstore_attributes" hstore, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
333
|
-
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_posts_on_request_info" ON "posts" USING GIN ("request_info")[0m
|
334
|
-
[1m[35m (0.4ms)[0m CREATE INDEX "index_posts_on_properties" ON "posts" USING GIN ("properties")
|
335
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_posts_on_storext_jsonb_attributes" ON "posts" USING GIN ("storext_jsonb_attributes")[0m
|
336
|
-
[1m[35m (0.3ms)[0m CREATE INDEX "index_posts_on_storext_hstore_attributes" ON "posts" USING GIN ("storext_hstore_attributes")
|
337
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512185941"]]
|
338
|
-
[1m[35m (0.2ms)[0m COMMIT
|
339
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
340
|
-
[1m[35m (1.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
341
|
-
FROM pg_constraint c
|
342
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
343
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
344
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
345
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
346
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
347
|
-
WHERE c.contype = 'f'
|
348
|
-
AND t1.relname = 'posts'
|
349
|
-
AND t3.nspname = ANY (current_schemas(false))
|
350
|
-
ORDER BY c.conname
|
351
|
-
|