citier4 0.0.5 → 0.0.6
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/citier4/CHANGELOG +2 -0
- data/lib/citier4/acts_as_citier4.rb +1 -1
- data/lib/citier4/child_instance_methods.rb +40 -25
- data/lib/citier4/core_ext.rb +37 -11
- data/lib/citier4/instance_methods.rb +34 -1
- data/lib/citier4/root_class_methods.rb +2 -4
- data/lib/citier4/root_instance_methods.rb +4 -1
- data/lib/citier4/version.rb +1 -1
- data/test/changed_test.rb +1 -0
- data/test/child_instance_methods_test.rb +1 -1
- data/test/dummy/app/models/Foo.rb +14 -0
- data/test/dummy/app/models/bidule.rb +8 -0
- data/test/dummy/app/models/product.rb +155 -0
- data/test/dummy/db/migrate/20151219171159_add_price_to_books.rb +8 -0
- data/test/dummy/db/migrate/CHANGELOG +0 -0
- data/test/dummy/db/schema.rb +12 -10
- data/test/dummy/log/development.log +877 -0
- data/test/dummy/log/test.log +79011 -0
- data/test/root_instance_methods_test.rb +2 -2
- data/test/saving_methods_test.rb +0 -1
- metadata +14 -7
|
File without changes
|
data/test/dummy/db/schema.rb
CHANGED
|
@@ -11,45 +11,46 @@
|
|
|
11
11
|
#
|
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
|
14
|
+
ActiveRecord::Schema.define(version: 20151219171159) do
|
|
15
15
|
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
|
17
17
|
enable_extension "plpgsql"
|
|
18
18
|
|
|
19
|
-
create_table "animals", force:
|
|
19
|
+
create_table "animals", force: :cascade do |t|
|
|
20
20
|
t.string "name"
|
|
21
21
|
t.string "race"
|
|
22
22
|
t.datetime "created_at"
|
|
23
23
|
t.datetime "updated_at"
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
create_table "bidules", force:
|
|
26
|
+
create_table "bidules", force: :cascade do |t|
|
|
27
27
|
t.string "name"
|
|
28
28
|
t.datetime "created_at"
|
|
29
29
|
t.datetime "updated_at"
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
create_table "books", force:
|
|
33
|
-
t.string
|
|
34
|
-
t.string
|
|
32
|
+
create_table "books", force: :cascade do |t|
|
|
33
|
+
t.string "author"
|
|
34
|
+
t.string "title"
|
|
35
|
+
t.integer "price"
|
|
35
36
|
end
|
|
36
37
|
|
|
37
|
-
create_table "dictionaries", force:
|
|
38
|
+
create_table "dictionaries", force: :cascade do |t|
|
|
38
39
|
t.string "language"
|
|
39
40
|
end
|
|
40
41
|
|
|
41
|
-
create_table "fictions", force:
|
|
42
|
+
create_table "fictions", force: :cascade do |t|
|
|
42
43
|
t.text "story"
|
|
43
44
|
end
|
|
44
45
|
|
|
45
|
-
create_table "products", force:
|
|
46
|
+
create_table "products", force: :cascade do |t|
|
|
46
47
|
t.string "name"
|
|
47
48
|
t.string "type"
|
|
48
49
|
t.datetime "created_at"
|
|
49
50
|
t.datetime "updated_at"
|
|
50
51
|
end
|
|
51
52
|
|
|
52
|
-
create_view "view_books" , " SELECT products.id,\n products.name,\n products.type,\n products.created_at,\n products.updated_at,\n books.author,\n books.title\n FROM products,\n books\n WHERE (products.id = books.id);", :force => true do |v|
|
|
53
|
+
create_view "view_books" , " SELECT products.id,\n products.name,\n products.type,\n products.created_at,\n products.updated_at,\n books.author,\n books.title,\n books.price\n FROM products,\n books\n WHERE (products.id = books.id);", :force => true do |v|
|
|
53
54
|
v.column :id
|
|
54
55
|
v.column :name
|
|
55
56
|
v.column :type
|
|
@@ -57,6 +58,7 @@ ActiveRecord::Schema.define(version: 20150102200786) do
|
|
|
57
58
|
v.column :updated_at
|
|
58
59
|
v.column :author
|
|
59
60
|
v.column :title
|
|
61
|
+
v.column :price
|
|
60
62
|
end
|
|
61
63
|
|
|
62
64
|
create_view "view_dictionaries" , " SELECT view_books.id,\n view_books.name,\n view_books.type,\n view_books.created_at,\n view_books.updated_at,\n view_books.author,\n view_books.title,\n dictionaries.language\n FROM view_books,\n dictionaries\n WHERE (view_books.id = dictionaries.id);", :force => true do |v|
|
|
@@ -3758,3 +3758,880 @@ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `n
|
|
|
3758
3758
|
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3759
3759
|
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "UnAuteur"], ["id", 3]]
|
|
3760
3760
|
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
|
3761
|
+
[1m[36m (35.5ms)[0m [1m SELECT table_name, table_type
|
|
3762
|
+
FROM information_schema.tables
|
|
3763
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3764
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3765
|
+
[0m
|
|
3766
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
3767
|
+
FROM information_schema.tables
|
|
3768
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3769
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3770
|
+
[0m
|
|
3771
|
+
[1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
|
|
3772
|
+
FROM information_schema.tables
|
|
3773
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3774
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3775
|
+
[0m
|
|
3776
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
3777
|
+
FROM information_schema.tables
|
|
3778
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3779
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3780
|
+
[0m
|
|
3781
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
3782
|
+
FROM information_schema.tables
|
|
3783
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3784
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3785
|
+
[0m
|
|
3786
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
3787
|
+
FROM information_schema.tables
|
|
3788
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3789
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3790
|
+
[0m
|
|
3791
|
+
[1m[36m (3.8ms)[0m [1m SELECT table_name, table_type
|
|
3792
|
+
FROM information_schema.tables
|
|
3793
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3794
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3795
|
+
[0m
|
|
3796
|
+
[1m[36m (3.6ms)[0m [1m SELECT table_name, table_type
|
|
3797
|
+
FROM information_schema.tables
|
|
3798
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3799
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3800
|
+
[0m
|
|
3801
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3802
|
+
[1m[36mSQL (21.9ms)[0m [1mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "toto"], ["created_at", "2015-02-25 09:22:38.740166"], ["updated_at", "2015-02-25 09:22:38.740166"]]
|
|
3803
|
+
[1m[35m (0.7ms)[0m COMMIT
|
|
3804
|
+
[1m[36m (3.8ms)[0m [1m SELECT table_name, table_type
|
|
3805
|
+
FROM information_schema.tables
|
|
3806
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3807
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3808
|
+
[0m
|
|
3809
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3810
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:35:48.065145"], ["updated_at", "2015-02-25 09:35:48.065145"]]
|
|
3811
|
+
[1m[35m (5.9ms)[0m COMMIT
|
|
3812
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3813
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 5]]
|
|
3814
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3815
|
+
[1m[36m (3.7ms)[0m [1m SELECT table_name, table_type
|
|
3816
|
+
FROM information_schema.tables
|
|
3817
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3818
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3819
|
+
[0m
|
|
3820
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3821
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:37:25.001702"], ["updated_at", "2015-02-25 09:37:25.001702"]]
|
|
3822
|
+
[1m[35m (5.9ms)[0m COMMIT
|
|
3823
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3824
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 6]]
|
|
3825
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3826
|
+
[1m[36m (3.8ms)[0m [1m SELECT table_name, table_type
|
|
3827
|
+
FROM information_schema.tables
|
|
3828
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3829
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3830
|
+
[0m
|
|
3831
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3832
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
3833
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3834
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:42:42.216048"], ["updated_at", "2015-02-25 09:42:42.216048"]]
|
|
3835
|
+
[1m[35m (6.5ms)[0m COMMIT
|
|
3836
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3837
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 7]]
|
|
3838
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
3839
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3840
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:43:45.453901"], ["updated_at", "2015-02-25 09:43:45.453901"]]
|
|
3841
|
+
[1m[35m (6.3ms)[0m COMMIT
|
|
3842
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3843
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 8]]
|
|
3844
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3845
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3846
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:43:54.702327"], ["updated_at", "2015-02-25 09:43:54.702327"]]
|
|
3847
|
+
[1m[35m (6.4ms)[0m COMMIT
|
|
3848
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3849
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 9]]
|
|
3850
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3851
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3852
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:44:36.508014"], ["updated_at", "2015-02-25 09:44:36.508014"]]
|
|
3853
|
+
[1m[35m (6.2ms)[0m COMMIT
|
|
3854
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3855
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 10]]
|
|
3856
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
|
3857
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3858
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:45:23.146498"], ["updated_at", "2015-02-25 09:45:23.146498"]]
|
|
3859
|
+
[1m[35m (5.0ms)[0m COMMIT
|
|
3860
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3861
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 11]]
|
|
3862
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
3863
|
+
[1m[36m (3.8ms)[0m [1m SELECT table_name, table_type
|
|
3864
|
+
FROM information_schema.tables
|
|
3865
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3866
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3867
|
+
[0m
|
|
3868
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3869
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "bidon"], ["type", "Book"], ["created_at", "2015-02-25 14:33:54.965600"], ["updated_at", "2015-02-25 14:33:54.965600"]]
|
|
3870
|
+
[1m[35m (5.9ms)[0m COMMIT
|
|
3871
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3872
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "bidule"], ["id", 12]]
|
|
3873
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3874
|
+
[1m[36m (3.7ms)[0m [1m SELECT table_name, table_type
|
|
3875
|
+
FROM information_schema.tables
|
|
3876
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3877
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3878
|
+
[0m
|
|
3879
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3880
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "bidon2"], ["type", "Book"], ["created_at", "2015-02-25 17:36:16.276995"], ["updated_at", "2015-02-25 17:36:16.276995"]]
|
|
3881
|
+
[1m[35m (6.0ms)[0m COMMIT
|
|
3882
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3883
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "bidule"], ["id", 13]]
|
|
3884
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
3885
|
+
[1m[36m (3.6ms)[0m [1m SELECT table_name, table_type
|
|
3886
|
+
FROM information_schema.tables
|
|
3887
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3888
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3889
|
+
[0m
|
|
3890
|
+
[1m[36m (3.6ms)[0m [1m SELECT table_name, table_type
|
|
3891
|
+
FROM information_schema.tables
|
|
3892
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3893
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3894
|
+
[0m
|
|
3895
|
+
[1m[36m (3.8ms)[0m [1m SELECT table_name, table_type
|
|
3896
|
+
FROM information_schema.tables
|
|
3897
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3898
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3899
|
+
[0m
|
|
3900
|
+
[1m[36m (3.9ms)[0m [1m SELECT table_name, table_type
|
|
3901
|
+
FROM information_schema.tables
|
|
3902
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3903
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3904
|
+
[0m
|
|
3905
|
+
[1m[36m (4.0ms)[0m [1m SELECT table_name, table_type
|
|
3906
|
+
FROM information_schema.tables
|
|
3907
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3908
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3909
|
+
[0m
|
|
3910
|
+
[1m[36m (3.7ms)[0m [1m SELECT table_name, table_type
|
|
3911
|
+
FROM information_schema.tables
|
|
3912
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3913
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3914
|
+
[0m
|
|
3915
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
3916
|
+
FROM information_schema.tables
|
|
3917
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3918
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3919
|
+
[0m
|
|
3920
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "products"[0m
|
|
3921
|
+
[1m[35m (2.3ms)[0m SELECT table_name, table_type
|
|
3922
|
+
FROM information_schema.tables
|
|
3923
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3924
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3925
|
+
|
|
3926
|
+
[1m[36m (3.4ms)[0m [1mSELECT COUNT(*) FROM "view_books" WHERE "view_books"."type" IN ('Book')[0m
|
|
3927
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3928
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "UnLivreAvecUnNomSuperCompliqué"], ["type", "Book"], ["created_at", "2015-02-25 22:43:36.870039"], ["updated_at", "2015-02-25 22:43:36.870039"]]
|
|
3929
|
+
[1m[35m (0.8ms)[0m COMMIT
|
|
3930
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3931
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "books" ("author") VALUES ($1) RETURNING "id" [["author", "Inconnu"]]
|
|
3932
|
+
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "books_pkey"
|
|
3933
|
+
DETAIL: Key (id)=(1) already exists.
|
|
3934
|
+
: INSERT INTO "books" ("author") VALUES ($1) RETURNING "id"
|
|
3935
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
3936
|
+
[1m[35mBook Load (0.8ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book')
|
|
3937
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
3938
|
+
[1m[35mBook Load (0.5ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 14]]
|
|
3939
|
+
[1m[36m (4.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
3940
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
3941
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3942
|
+
Migrating to CreateProducts (20141228200436)
|
|
3943
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3944
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20141228200436_create_products.rb:7)
|
|
3945
|
+
[1m[36m (16.5ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3946
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
3947
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3948
|
+
Migrating to CreateBooks (20141228200756)
|
|
3949
|
+
[1m[35m (6.3ms)[0m BEGIN
|
|
3950
|
+
[1m[36m (15.2ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
3951
|
+
[1m[35m (3.0ms)[0m SELECT table_name, table_type
|
|
3952
|
+
FROM information_schema.tables
|
|
3953
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3954
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3955
|
+
|
|
3956
|
+
[1m[36m (3.5ms)[0m [1mCREATE VIEW "view_books" ("id", "name", "type", "created_at", "updated_at", "author", "title") AS SELECT products.id, name,type,created_at,updated_at,author,title FROM products, books WHERE products.id = books.id[0m
|
|
3957
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
3958
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3959
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
3960
|
+
[1m[35m (6.2ms)[0m BEGIN
|
|
3961
|
+
[1m[36m (15.7ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
3962
|
+
[1m[35m (1.3ms)[0m CREATE VIEW "view_dictionaries" ("id", "name", "type", "created_at", "updated_at", "author", "title", "language") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,language FROM view_books, dictionaries WHERE view_books.id = dictionaries.id
|
|
3963
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
3964
|
+
[1m[35m (0.5ms)[0m COMMIT
|
|
3965
|
+
Migrating to CreateFictions (20150101181916)
|
|
3966
|
+
[1m[36m (6.3ms)[0m [1mBEGIN[0m
|
|
3967
|
+
[1m[35m (16.4ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
3968
|
+
[1m[36m (0.9ms)[0m [1mCREATE VIEW "view_fictions" ("id", "name", "type", "created_at", "updated_at", "author", "title", "story") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,story FROM view_books, fictions WHERE view_books.id = fictions.id[0m
|
|
3969
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
3970
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3971
|
+
Migrating to CreateBidules (20150102200342)
|
|
3972
|
+
[1m[35m (11.7ms)[0m BEGIN
|
|
3973
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200342_create_bidules.rb:6)
|
|
3974
|
+
[1m[36m (13.0ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3975
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
3976
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3977
|
+
Migrating to CreateAnimals (20150102200786)
|
|
3978
|
+
[1m[35m (5.9ms)[0m BEGIN
|
|
3979
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200786_create_animals.rb:7)
|
|
3980
|
+
[1m[36m (19.3ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3981
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
3982
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3983
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3984
|
+
[1m[36m (1.6ms)[0m [1m SELECT table_name, table_type
|
|
3985
|
+
FROM information_schema.tables
|
|
3986
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3987
|
+
AND table_type = 'BASE TABLE'
|
|
3988
|
+
[0m
|
|
3989
|
+
[1m[35m (0.7ms)[0m SELECT table_name, table_type
|
|
3990
|
+
FROM information_schema.tables
|
|
3991
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3992
|
+
AND table_type = 'VIEW'
|
|
3993
|
+
|
|
3994
|
+
[1m[36m (1.6ms)[0m [1m SELECT view_definition
|
|
3995
|
+
FROM information_schema.views
|
|
3996
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3997
|
+
AND table_schema IN ('"$user"','public')
|
|
3998
|
+
AND table_name = 'view_books'
|
|
3999
|
+
[0m
|
|
4000
|
+
[1m[35m (0.7ms)[0m SELECT view_definition
|
|
4001
|
+
FROM information_schema.views
|
|
4002
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4003
|
+
AND table_schema IN ('"$user"','public')
|
|
4004
|
+
AND table_name = 'view_dictionaries'
|
|
4005
|
+
|
|
4006
|
+
[1m[36m (0.7ms)[0m [1m SELECT view_definition
|
|
4007
|
+
FROM information_schema.views
|
|
4008
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4009
|
+
AND table_schema IN ('"$user"','public')
|
|
4010
|
+
AND table_name = 'view_fictions'
|
|
4011
|
+
[0m
|
|
4012
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "products"[0m
|
|
4013
|
+
[1m[35m (2.4ms)[0m SELECT table_name, table_type
|
|
4014
|
+
FROM information_schema.tables
|
|
4015
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4016
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4017
|
+
|
|
4018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
4019
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "UnLivreAvecUnNomSuperCompliqué"], ["type", "Book"], ["created_at", "2015-02-25 22:45:32.656236"], ["updated_at", "2015-02-25 22:45:32.656236"]]
|
|
4020
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
|
4021
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
4022
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("author") VALUES ($1) RETURNING "id"[0m [["author", "Inconnu"]]
|
|
4023
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4024
|
+
[1m[36mProduct Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT 1[0m [["name", "UnLivreAvecUnNomSuperCompliqué"]]
|
|
4025
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
4026
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT 1[0m [["name", "UnLivreAvecUnNomSuperCompliqué"]]
|
|
4027
|
+
[1m[35mBook Load (0.6ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
4028
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4029
|
+
[1m[35mBook Load (0.6ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
4030
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "products" WHERE "products"."id" = $1[0m [["id", 1]]
|
|
4031
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "books" WHERE "books"."id" = $1 [["id", 1]]
|
|
4032
|
+
[1m[36m (3.8ms)[0m [1mCOMMIT[0m
|
|
4033
|
+
[1m[35mProduct Load (0.4ms)[0m SELECT "products".* FROM "products"
|
|
4034
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
|
4035
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "view_books" WHERE "view_books"."type" IN ('Book')
|
|
4036
|
+
[1m[36mProduct Load (0.7ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
4037
|
+
[1m[36m (34.4ms)[0m [1m SELECT table_name, table_type
|
|
4038
|
+
FROM information_schema.tables
|
|
4039
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4040
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4041
|
+
[0m
|
|
4042
|
+
[1m[36mProduct Load (13.0ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
4043
|
+
[1m[35m (3.8ms)[0m SELECT table_name, table_type
|
|
4044
|
+
FROM information_schema.tables
|
|
4045
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4046
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4047
|
+
|
|
4048
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4049
|
+
FROM information_schema.tables
|
|
4050
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4051
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4052
|
+
[0m
|
|
4053
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4054
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
4055
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4056
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
4057
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4058
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
|
4059
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4060
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
4061
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4062
|
+
[1m[36mSQL (7.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "bidon"], ["type", "Book"], ["created_at", "2015-02-27 08:12:05.905249"], ["updated_at", "2015-02-27 08:12:05.905249"]]
|
|
4063
|
+
[1m[35m (5.7ms)[0m COMMIT
|
|
4064
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
4065
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4066
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
4067
|
+
[1m[35mSQL (13.0ms)[0m INSERT INTO "books" ("id") VALUES ($1) RETURNING "id" [["id", 2]]
|
|
4068
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
|
4069
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "products"[0m
|
|
4070
|
+
[1m[35m (2.0ms)[0m SELECT table_name, table_type
|
|
4071
|
+
FROM information_schema.tables
|
|
4072
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4073
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4074
|
+
|
|
4075
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "products"[0m
|
|
4076
|
+
[1m[35m (2.2ms)[0m SELECT table_name, table_type
|
|
4077
|
+
FROM information_schema.tables
|
|
4078
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4079
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4080
|
+
|
|
4081
|
+
[1m[36m (3.3ms)[0m [1m SELECT table_name, table_type
|
|
4082
|
+
FROM information_schema.tables
|
|
4083
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4084
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4085
|
+
[0m
|
|
4086
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4087
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 08:33:28.810211"], ["updated_at", "2015-02-27 08:33:28.810211"]]
|
|
4088
|
+
[1m[35m (6.0ms)[0m COMMIT
|
|
4089
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4090
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 3]]
|
|
4091
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
|
4092
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4093
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 3]]
|
|
4094
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
4095
|
+
[1m[36m (36.9ms)[0m [1m SELECT table_name, table_type
|
|
4096
|
+
FROM information_schema.tables
|
|
4097
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4098
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4099
|
+
[0m
|
|
4100
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
4101
|
+
[1m[36mSQL (24.3ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 09:57:03.262917"], ["updated_at", "2015-02-27 09:57:03.262917"]]
|
|
4102
|
+
[1m[35m (1.7ms)[0m COMMIT
|
|
4103
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4104
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 4]]
|
|
4105
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4106
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
4107
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 4]]
|
|
4108
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4109
|
+
[1m[36m (2.3ms)[0m [1m SELECT table_name, table_type
|
|
4110
|
+
FROM information_schema.tables
|
|
4111
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4112
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4113
|
+
[0m
|
|
4114
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
4115
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 09:57:56.259231"], ["updated_at", "2015-02-27 09:57:56.259231"]]
|
|
4116
|
+
[1m[35m (6.4ms)[0m COMMIT
|
|
4117
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4118
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 5]]
|
|
4119
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4120
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4121
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 5]]
|
|
4122
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4123
|
+
[1m[36m (1.7ms)[0m [1m SELECT table_name, table_type
|
|
4124
|
+
FROM information_schema.tables
|
|
4125
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4126
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4127
|
+
[0m
|
|
4128
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4129
|
+
FROM information_schema.tables
|
|
4130
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4131
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4132
|
+
[0m
|
|
4133
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4134
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 10:13:06.841469"], ["updated_at", "2015-02-27 10:13:06.841469"]]
|
|
4135
|
+
[1m[35m (6.3ms)[0m COMMIT
|
|
4136
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
|
4137
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 6]]
|
|
4138
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4139
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4140
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 6]]
|
|
4141
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4142
|
+
[1m[36m (2.4ms)[0m [1m SELECT table_name, table_type
|
|
4143
|
+
FROM information_schema.tables
|
|
4144
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4145
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4146
|
+
[0m
|
|
4147
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4148
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 10:14:19.790348"], ["updated_at", "2015-02-27 10:14:19.790348"]]
|
|
4149
|
+
[1m[35m (5.8ms)[0m COMMIT
|
|
4150
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4151
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 7]]
|
|
4152
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
4153
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4154
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 7]]
|
|
4155
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4156
|
+
[1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
|
|
4157
|
+
FROM information_schema.tables
|
|
4158
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4159
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4160
|
+
[0m
|
|
4161
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4162
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 10:19:44.758380"], ["updated_at", "2015-02-27 10:19:44.758380"]]
|
|
4163
|
+
[1m[35m (6.0ms)[0m COMMIT
|
|
4164
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4165
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 8]]
|
|
4166
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4167
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4168
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 8]]
|
|
4169
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
4170
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
4171
|
+
FROM information_schema.tables
|
|
4172
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4173
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4174
|
+
[0m
|
|
4175
|
+
[1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
|
|
4176
|
+
FROM information_schema.tables
|
|
4177
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4178
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4179
|
+
[0m
|
|
4180
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
4181
|
+
FROM information_schema.tables
|
|
4182
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4183
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4184
|
+
[0m
|
|
4185
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4186
|
+
PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
|
|
4187
|
+
LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
|
|
4188
|
+
^
|
|
4189
|
+
: INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
|
|
4190
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
4191
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4192
|
+
PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
|
|
4193
|
+
LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
|
|
4194
|
+
^
|
|
4195
|
+
: INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
|
|
4196
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
|
4197
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4198
|
+
PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
|
|
4199
|
+
LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
|
|
4200
|
+
^
|
|
4201
|
+
: INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
|
|
4202
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
|
4203
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4204
|
+
FROM information_schema.tables
|
|
4205
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4206
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4207
|
+
[0m
|
|
4208
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4209
|
+
FROM information_schema.tables
|
|
4210
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4211
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4212
|
+
[0m
|
|
4213
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4214
|
+
PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
|
|
4215
|
+
LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
|
|
4216
|
+
^
|
|
4217
|
+
: INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
|
|
4218
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
|
4219
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4220
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
4221
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4222
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 11:02:48.709252"], ["updated_at", "2015-02-27 11:02:48.709252"]]
|
|
4223
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
4224
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4225
|
+
PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
|
|
4226
|
+
LINE 1: UPDATE "products" SET "type" = $1, "name" = $2, "author" = $...
|
|
4227
|
+
^
|
|
4228
|
+
: UPDATE "products" SET "type" = $1, "name" = $2, "author" = $3, "story" = $4, "created_at" = $5, "updated_at" = $6 WHERE "products"."id" = $7
|
|
4229
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
4230
|
+
[1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
|
|
4231
|
+
FROM information_schema.tables
|
|
4232
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4233
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4234
|
+
[0m
|
|
4235
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4236
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 11:07:40.048689"], ["updated_at", "2015-02-27 11:07:40.048689"]]
|
|
4237
|
+
[1m[35m (1.3ms)[0m COMMIT
|
|
4238
|
+
[1m[36m (2.1ms)[0m [1m SELECT table_name, table_type
|
|
4239
|
+
FROM information_schema.tables
|
|
4240
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4241
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4242
|
+
[0m
|
|
4243
|
+
[1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
|
|
4244
|
+
FROM information_schema.tables
|
|
4245
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4246
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4247
|
+
[0m
|
|
4248
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4249
|
+
FROM information_schema.tables
|
|
4250
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4251
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4252
|
+
[0m
|
|
4253
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
4254
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 11:16:04.001692"], ["updated_at", "2015-02-27 11:16:04.001692"]]
|
|
4255
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
4256
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
4257
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
4258
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
4259
|
+
Migrating to CreateProducts (20141228200436)
|
|
4260
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
4261
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20141228200436_create_products.rb:7)
|
|
4262
|
+
[1m[36m (22.3ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
4263
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
4264
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4265
|
+
Migrating to CreateBooks (20141228200756)
|
|
4266
|
+
[1m[35m (5.6ms)[0m BEGIN
|
|
4267
|
+
[1m[36m (15.6ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
4268
|
+
[1m[35m (2.5ms)[0m SELECT table_name, table_type
|
|
4269
|
+
FROM information_schema.tables
|
|
4270
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4271
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4272
|
+
|
|
4273
|
+
[1m[36m (1.1ms)[0m [1mCREATE VIEW "view_books" ("id", "name", "type", "created_at", "updated_at", "author", "title") AS SELECT products.id, name,type,created_at,updated_at,author,title FROM products, books WHERE products.id = books.id[0m
|
|
4274
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
4275
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
4276
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
4277
|
+
[1m[35m (6.1ms)[0m BEGIN
|
|
4278
|
+
[1m[36m (14.3ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
4279
|
+
[1m[35m (0.9ms)[0m CREATE VIEW "view_dictionaries" ("id", "name", "type", "created_at", "updated_at", "author", "title", "language") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,language FROM view_books, dictionaries WHERE view_books.id = dictionaries.id
|
|
4280
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
4281
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4282
|
+
Migrating to CreateFictions (20150101181916)
|
|
4283
|
+
[1m[36m (6.1ms)[0m [1mBEGIN[0m
|
|
4284
|
+
[1m[35m (14.2ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
4285
|
+
[1m[36m (0.9ms)[0m [1mCREATE VIEW "view_fictions" ("id", "name", "type", "created_at", "updated_at", "author", "title", "story") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,story FROM view_books, fictions WHERE view_books.id = fictions.id[0m
|
|
4286
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
4287
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
|
4288
|
+
Migrating to CreateBidules (20150102200342)
|
|
4289
|
+
[1m[35m (5.5ms)[0m BEGIN
|
|
4290
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200342_create_bidules.rb:6)
|
|
4291
|
+
[1m[36m (13.9ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
4292
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
4293
|
+
[1m[36m (5.4ms)[0m [1mCOMMIT[0m
|
|
4294
|
+
Migrating to CreateAnimals (20150102200786)
|
|
4295
|
+
[1m[35m (6.2ms)[0m BEGIN
|
|
4296
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200786_create_animals.rb:7)
|
|
4297
|
+
[1m[36m (14.9ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
4298
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
4299
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
4300
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
4301
|
+
[1m[36m (1.1ms)[0m [1m SELECT table_name, table_type
|
|
4302
|
+
FROM information_schema.tables
|
|
4303
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4304
|
+
AND table_type = 'BASE TABLE'
|
|
4305
|
+
[0m
|
|
4306
|
+
[1m[35m (0.7ms)[0m SELECT table_name, table_type
|
|
4307
|
+
FROM information_schema.tables
|
|
4308
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4309
|
+
AND table_type = 'VIEW'
|
|
4310
|
+
|
|
4311
|
+
[1m[36m (1.9ms)[0m [1m SELECT view_definition
|
|
4312
|
+
FROM information_schema.views
|
|
4313
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4314
|
+
AND table_schema IN ('"$user"','public')
|
|
4315
|
+
AND table_name = 'view_books'
|
|
4316
|
+
[0m
|
|
4317
|
+
[1m[35m (0.8ms)[0m SELECT view_definition
|
|
4318
|
+
FROM information_schema.views
|
|
4319
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4320
|
+
AND table_schema IN ('"$user"','public')
|
|
4321
|
+
AND table_name = 'view_dictionaries'
|
|
4322
|
+
|
|
4323
|
+
[1m[36m (0.7ms)[0m [1m SELECT view_definition
|
|
4324
|
+
FROM information_schema.views
|
|
4325
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4326
|
+
AND table_schema IN ('"$user"','public')
|
|
4327
|
+
AND table_name = 'view_fictions'
|
|
4328
|
+
[0m
|
|
4329
|
+
[1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
|
|
4330
|
+
FROM information_schema.tables
|
|
4331
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4332
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4333
|
+
[0m
|
|
4334
|
+
[1m[36m (3.6ms)[0m [1m SELECT table_name, table_type
|
|
4335
|
+
FROM information_schema.tables
|
|
4336
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4337
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4338
|
+
[0m
|
|
4339
|
+
[1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
|
|
4340
|
+
FROM information_schema.tables
|
|
4341
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4342
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4343
|
+
[0m
|
|
4344
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
4345
|
+
FROM information_schema.tables
|
|
4346
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4347
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4348
|
+
[0m
|
|
4349
|
+
[1m[36m (2.8ms)[0m [1m SELECT table_name, table_type
|
|
4350
|
+
FROM information_schema.tables
|
|
4351
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4352
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4353
|
+
[0m
|
|
4354
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
4355
|
+
FROM information_schema.tables
|
|
4356
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4357
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4358
|
+
[0m
|
|
4359
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
4360
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Necronomicon"], ["created_at", "2015-02-27 16:43:05.540504"], ["updated_at", "2015-02-27 16:43:05.540504"]]
|
|
4361
|
+
[1m[35m (1.4ms)[0m COMMIT
|
|
4362
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4363
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 1]]
|
|
4364
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
4365
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4366
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4367
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4368
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
4369
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4370
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 1]]
|
|
4371
|
+
[1m[35m (6.0ms)[0m COMMIT
|
|
4372
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
4373
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Necro"], ["created_at", "2015-02-27 16:47:58.127820"], ["updated_at", "2015-02-27 16:47:58.127820"]]
|
|
4374
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
|
4375
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4376
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id"[0m [["author", "H. P. Lovecraft "], ["id", 2]]
|
|
4377
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
4378
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4379
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 2]]
|
|
4380
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4381
|
+
[1m[36m (2.5ms)[0m [1m SELECT table_name, table_type
|
|
4382
|
+
FROM information_schema.tables
|
|
4383
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4384
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4385
|
+
[0m
|
|
4386
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4387
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "trou"], ["created_at", "2015-02-27 16:52:25.228259"], ["updated_at", "2015-02-27 16:52:25.228259"]]
|
|
4388
|
+
[1m[35m (5.9ms)[0m COMMIT
|
|
4389
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4390
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 3]]
|
|
4391
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4392
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4393
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 3]]
|
|
4394
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
4395
|
+
[1m[36m (4.1ms)[0m [1m SELECT table_name, table_type
|
|
4396
|
+
FROM information_schema.tables
|
|
4397
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4398
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4399
|
+
[0m
|
|
4400
|
+
[1m[36m (4.0ms)[0m [1m SELECT table_name, table_type
|
|
4401
|
+
FROM information_schema.tables
|
|
4402
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4403
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4404
|
+
[0m
|
|
4405
|
+
[1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
|
|
4406
|
+
FROM information_schema.tables
|
|
4407
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4408
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4409
|
+
[0m
|
|
4410
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4411
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "zoulooupoupou"], ["created_at", "2015-02-27 17:08:03.303677"], ["updated_at", "2015-02-27 17:08:03.303677"]]
|
|
4412
|
+
[1m[35m (5.7ms)[0m COMMIT
|
|
4413
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
4414
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 4]]
|
|
4415
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
4416
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4417
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 4]]
|
|
4418
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
4419
|
+
[1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
|
|
4420
|
+
FROM information_schema.tables
|
|
4421
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4422
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4423
|
+
[0m
|
|
4424
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4425
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "zoro"], ["type", "Fiction"], ["created_at", "2015-02-27 17:13:29.203490"], ["updated_at", "2015-02-27 17:13:29.203490"]]
|
|
4426
|
+
[1m[35m (6.4ms)[0m COMMIT
|
|
4427
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4428
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 5]]
|
|
4429
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4430
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4431
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 5]]
|
|
4432
|
+
[1m[35m (0.5ms)[0m COMMIT
|
|
4433
|
+
[1m[36m (2.8ms)[0m [1m SELECT table_name, table_type
|
|
4434
|
+
FROM information_schema.tables
|
|
4435
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4436
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4437
|
+
[0m
|
|
4438
|
+
[1m[36m (2.4ms)[0m [1m SELECT table_name, table_type
|
|
4439
|
+
FROM information_schema.tables
|
|
4440
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4441
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4442
|
+
[0m
|
|
4443
|
+
[1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
|
|
4444
|
+
FROM information_schema.tables
|
|
4445
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4446
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4447
|
+
[0m
|
|
4448
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4449
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "enfin"], ["created_at", "2015-02-27 17:28:38.700674"], ["updated_at", "2015-02-27 17:28:38.700674"]]
|
|
4450
|
+
[1m[35m (6.5ms)[0m COMMIT
|
|
4451
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4452
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 6]]
|
|
4453
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
4454
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4455
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id"[0m [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 6]]
|
|
4456
|
+
[1m[35m (0.6ms)[0m COMMIT
|
|
4457
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4458
|
+
FROM information_schema.tables
|
|
4459
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4460
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4461
|
+
[0m
|
|
4462
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4463
|
+
FROM information_schema.tables
|
|
4464
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4465
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4466
|
+
[0m
|
|
4467
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
4468
|
+
FROM information_schema.tables
|
|
4469
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4470
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4471
|
+
[0m
|
|
4472
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
4473
|
+
FROM information_schema.tables
|
|
4474
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4475
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4476
|
+
[0m
|
|
4477
|
+
[1m[36m (3.1ms)[0m [1m SELECT table_name, table_type
|
|
4478
|
+
FROM information_schema.tables
|
|
4479
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4480
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4481
|
+
[0m
|
|
4482
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
4483
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "allo"], ["type", "Fiction"], ["created_at", "2015-02-27 19:38:44.376389"], ["updated_at", "2015-02-27 19:38:44.376389"]]
|
|
4484
|
+
[1m[35m (7.1ms)[0m COMMIT
|
|
4485
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
4486
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "books" ("author") VALUES ($1) RETURNING "id" [["author", "H. P. Lovecraft "]]
|
|
4487
|
+
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "books_pkey"
|
|
4488
|
+
DETAIL: Key (id)=(1) already exists.
|
|
4489
|
+
: INSERT INTO "books" ("author") VALUES ($1) RETURNING "id"
|
|
4490
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
|
4491
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4492
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "allododo"], ["type", "Fiction"], ["created_at", "2015-02-27 19:39:01.979169"], ["updated_at", "2015-02-27 19:39:01.979169"]]
|
|
4493
|
+
[1m[35m (5.3ms)[0m COMMIT
|
|
4494
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
|
4495
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "books" ("author") VALUES ($1) RETURNING "id" [["author", "H. P. Lovecraft "]]
|
|
4496
|
+
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "books_pkey"
|
|
4497
|
+
DETAIL: Key (id)=(2) already exists.
|
|
4498
|
+
: INSERT INTO "books" ("author") VALUES ($1) RETURNING "id"
|
|
4499
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
4500
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
4501
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
4502
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
4503
|
+
Migrating to CreateProducts (20141228200436)
|
|
4504
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
4505
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20141228200436_create_products.rb:7)
|
|
4506
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
4507
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
4508
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
4509
|
+
Migrating to CreateBooks (20141228200756)
|
|
4510
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4511
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
4512
|
+
[1m[35m (3.8ms)[0m SELECT table_name, table_type
|
|
4513
|
+
FROM information_schema.tables
|
|
4514
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4515
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4516
|
+
|
|
4517
|
+
[1m[36m (1.3ms)[0m [1mCREATE VIEW "view_books" ("id", "name", "type", "created_at", "updated_at", "author", "title") AS SELECT products.id, name,type,created_at,updated_at,author,title FROM products, books WHERE products.id = books.id[0m
|
|
4518
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
4519
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
|
4520
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
4521
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4522
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
4523
|
+
[1m[35m (1.4ms)[0m CREATE VIEW "view_dictionaries" ("id", "name", "type", "created_at", "updated_at", "author", "title", "language") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,language FROM view_books, dictionaries WHERE view_books.id = dictionaries.id
|
|
4524
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
4525
|
+
[1m[35m (0.5ms)[0m COMMIT
|
|
4526
|
+
Migrating to CreateFictions (20150101181916)
|
|
4527
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
4528
|
+
[1m[35m (2.8ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
4529
|
+
[1m[36m (1.5ms)[0m [1mCREATE VIEW "view_fictions" ("id", "name", "type", "created_at", "updated_at", "author", "title", "story") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,story FROM view_books, fictions WHERE view_books.id = fictions.id[0m
|
|
4530
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
4531
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
4532
|
+
Migrating to CreateBidules (20150102200342)
|
|
4533
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
4534
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200342_create_bidules.rb:6)
|
|
4535
|
+
[1m[36m (6.8ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
4536
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
4537
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
4538
|
+
Migrating to CreateAnimals (20150102200786)
|
|
4539
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
4540
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200786_create_animals.rb:7)
|
|
4541
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
4542
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
4543
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
4544
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
4545
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
4546
|
+
FROM information_schema.tables
|
|
4547
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4548
|
+
AND table_type = 'BASE TABLE'
|
|
4549
|
+
[0m
|
|
4550
|
+
[1m[35m (0.8ms)[0m SELECT table_name, table_type
|
|
4551
|
+
FROM information_schema.tables
|
|
4552
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4553
|
+
AND table_type = 'VIEW'
|
|
4554
|
+
|
|
4555
|
+
[1m[36m (1.7ms)[0m [1m SELECT view_definition
|
|
4556
|
+
FROM information_schema.views
|
|
4557
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4558
|
+
AND table_schema IN ('"$user"','public')
|
|
4559
|
+
AND table_name = 'view_books'
|
|
4560
|
+
[0m
|
|
4561
|
+
[1m[35m (1.1ms)[0m SELECT view_definition
|
|
4562
|
+
FROM information_schema.views
|
|
4563
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4564
|
+
AND table_schema IN ('"$user"','public')
|
|
4565
|
+
AND table_name = 'view_dictionaries'
|
|
4566
|
+
|
|
4567
|
+
[1m[36m (1.0ms)[0m [1m SELECT view_definition
|
|
4568
|
+
FROM information_schema.views
|
|
4569
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4570
|
+
AND table_schema IN ('"$user"','public')
|
|
4571
|
+
AND table_name = 'view_fictions'
|
|
4572
|
+
[0m
|
|
4573
|
+
[1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
|
|
4574
|
+
FROM information_schema.tables
|
|
4575
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4576
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4577
|
+
[0m
|
|
4578
|
+
[1m[36m (13.6ms)[0m [1m SELECT table_name, table_type
|
|
4579
|
+
FROM information_schema.tables
|
|
4580
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4581
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4582
|
+
[0m
|
|
4583
|
+
[1m[36m (4.1ms)[0m [1m SELECT table_name, table_type
|
|
4584
|
+
FROM information_schema.tables
|
|
4585
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4586
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4587
|
+
[0m
|
|
4588
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
4589
|
+
Migrating to AddPriceToBooks (20151219171159)
|
|
4590
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
4591
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
4592
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
4593
|
+
Migrating to AddPriceToBooks (20151219171159)
|
|
4594
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
4595
|
+
[1m[36m (5.6ms)[0m [1mALTER TABLE "books" ADD "price" integer[0m
|
|
4596
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
4597
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
4598
|
+
Migrating to AddPriceToBooks (20151219171159)
|
|
4599
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
4600
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "books" ADD "price" integer[0m
|
|
4601
|
+
[1m[35m (7.6ms)[0m CREATE OR REPLACE VIEW "view_books" AS SELECT products.id, name,type,created_at,updated_at,author,title,price FROM products, books WHERE products.id = books.id
|
|
4602
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20151219171159"]]
|
|
4603
|
+
[1m[35m (0.7ms)[0m COMMIT
|
|
4604
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
4605
|
+
[1m[35m (8.6ms)[0m SELECT table_name, table_type
|
|
4606
|
+
FROM information_schema.tables
|
|
4607
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4608
|
+
AND table_type = 'BASE TABLE'
|
|
4609
|
+
|
|
4610
|
+
[1m[36m (0.7ms)[0m [1m SELECT table_name, table_type
|
|
4611
|
+
FROM information_schema.tables
|
|
4612
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4613
|
+
AND table_type = 'VIEW'
|
|
4614
|
+
[0m
|
|
4615
|
+
[1m[35m (4.5ms)[0m SELECT view_definition
|
|
4616
|
+
FROM information_schema.views
|
|
4617
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4618
|
+
AND table_schema IN ('"$user"','public')
|
|
4619
|
+
AND table_name = 'view_books'
|
|
4620
|
+
|
|
4621
|
+
[1m[36m (0.9ms)[0m [1m SELECT view_definition
|
|
4622
|
+
FROM information_schema.views
|
|
4623
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4624
|
+
AND table_schema IN ('"$user"','public')
|
|
4625
|
+
AND table_name = 'view_dictionaries'
|
|
4626
|
+
[0m
|
|
4627
|
+
[1m[35m (0.7ms)[0m SELECT view_definition
|
|
4628
|
+
FROM information_schema.views
|
|
4629
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
4630
|
+
AND table_schema IN ('"$user"','public')
|
|
4631
|
+
AND table_name = 'view_fictions'
|
|
4632
|
+
|
|
4633
|
+
[1m[36m (3.8ms)[0m [1m SELECT table_name, table_type
|
|
4634
|
+
FROM information_schema.tables
|
|
4635
|
+
WHERE table_schema IN ('"$user"','public')
|
|
4636
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
4637
|
+
[0m
|