citier4 0.0.3 → 0.0.4
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.rb +1 -1
- data/lib/citier4/acts_as_citier4.rb +16 -5
- data/lib/citier4/child_instance_methods.rb +43 -36
- data/lib/citier4/core_ext.rb +41 -1
- data/lib/citier4/instance_methods.rb +25 -1
- data/lib/citier4/root_instance_methods.rb +2 -1
- data/lib/citier4/version.rb +1 -1
- data/test/callback_test.rb +26 -0
- data/test/changed_test.rb +25 -0
- data/test/child_instance_methods_test.rb +5 -3
- data/test/deleting_methods_test.rb +5 -5
- data/test/dummy/app/models/book.rb +1 -1
- data/test/dummy/app/models/product.rb +1 -1
- data/test/dummy/config/database.yml +12 -4
- data/test/dummy/db/schema.rb +6 -3
- data/test/dummy/log/development.log +986 -0
- data/test/dummy/log/test.log +36160 -0
- data/test/keep.rb +46 -0
- data/test/model_test.rb +3 -3
- data/test/saving_methods_test.rb +27 -0
- data/test/test_helper.rb +14 -4
- metadata +10 -2
data/test/dummy/db/schema.rb
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
ActiveRecord::Schema.define(version: 20150102200786) do
|
|
15
15
|
|
|
16
|
+
# These are extensions that must be enabled in order to support this database
|
|
17
|
+
enable_extension "plpgsql"
|
|
18
|
+
|
|
16
19
|
create_table "animals", force: true do |t|
|
|
17
20
|
t.string "name"
|
|
18
21
|
t.string "race"
|
|
@@ -46,7 +49,7 @@ ActiveRecord::Schema.define(version: 20150102200786) do
|
|
|
46
49
|
t.datetime "updated_at"
|
|
47
50
|
end
|
|
48
51
|
|
|
49
|
-
create_view "view_books" , "SELECT products.id
|
|
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|
|
|
50
53
|
v.column :id
|
|
51
54
|
v.column :name
|
|
52
55
|
v.column :type
|
|
@@ -56,7 +59,7 @@ ActiveRecord::Schema.define(version: 20150102200786) do
|
|
|
56
59
|
v.column :title
|
|
57
60
|
end
|
|
58
61
|
|
|
59
|
-
create_view "view_dictionaries" , "SELECT view_books.id
|
|
62
|
+
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|
|
|
60
63
|
v.column :id
|
|
61
64
|
v.column :name
|
|
62
65
|
v.column :type
|
|
@@ -67,7 +70,7 @@ ActiveRecord::Schema.define(version: 20150102200786) do
|
|
|
67
70
|
v.column :language
|
|
68
71
|
end
|
|
69
72
|
|
|
70
|
-
create_view "view_fictions" , "SELECT view_books.id
|
|
73
|
+
create_view "view_fictions" , " 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 fictions.story\n FROM view_books,\n fictions\n WHERE (view_books.id = fictions.id);", :force => true do |v|
|
|
71
74
|
v.column :id
|
|
72
75
|
v.column :name
|
|
73
76
|
v.column :type
|
|
@@ -2772,3 +2772,989 @@ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `n
|
|
|
2772
2772
|
FROM sqlite_master
|
|
2773
2773
|
WHERE name = 'view_fictions' AND NOT name = 'sqlite_sequence'
|
|
2774
2774
|
|
|
2775
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
2776
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
2777
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
2778
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2779
|
+
Migrating to CreateProducts (20141228200436)
|
|
2780
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
2781
|
+
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)
|
|
2782
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime)
|
|
2783
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141228200436"]]
|
|
2784
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
2785
|
+
Migrating to CreateBooks (20141228200756)
|
|
2786
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2787
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author" varchar, "title" varchar)
|
|
2788
|
+
[1m[36m (0.7ms)[0m [1mCREATE VIEW "view_books" AS SELECT products.id, name,type,created_at,updated_at,author,title FROM products, books WHERE products.id = books.id[0m
|
|
2789
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200756"]]
|
|
2790
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
|
2791
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
2792
|
+
[1m[35m (0.3ms)[0m begin transaction
|
|
2793
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "dictionaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "language" varchar) [0m
|
|
2794
|
+
[1m[35m (0.7ms)[0m CREATE VIEW "view_dictionaries" AS SELECT view_books.id, name,type,created_at,updated_at,author,title,language FROM view_books, dictionaries WHERE view_books.id = dictionaries.id
|
|
2795
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150101181703"]]
|
|
2796
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
2797
|
+
Migrating to CreateFictions (20150101181916)
|
|
2798
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
2799
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "fictions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "story" text)
|
|
2800
|
+
[1m[36m (0.7ms)[0m [1mCREATE VIEW "view_fictions" 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
|
|
2801
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150101181916"]]
|
|
2802
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
2803
|
+
Migrating to CreateBidules (20150102200342)
|
|
2804
|
+
[1m[35m (0.3ms)[0m begin transaction
|
|
2805
|
+
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)
|
|
2806
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "bidules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
|
2807
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150102200342"]]
|
|
2808
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
|
2809
|
+
Migrating to CreateAnimals (20150102200786)
|
|
2810
|
+
[1m[35m (0.3ms)[0m begin transaction
|
|
2811
|
+
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)
|
|
2812
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "animals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "race" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
|
2813
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150102200786"]]
|
|
2814
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
|
2815
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2816
|
+
[1m[36m (0.4ms)[0m [1m SELECT name
|
|
2817
|
+
FROM sqlite_master
|
|
2818
|
+
WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
|
|
2819
|
+
[0m
|
|
2820
|
+
[1m[35m (0.3ms)[0m SELECT name
|
|
2821
|
+
FROM sqlite_master
|
|
2822
|
+
WHERE type = 'view' AND NOT name = 'sqlite_sequence'
|
|
2823
|
+
|
|
2824
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
|
2825
|
+
FROM sqlite_master
|
|
2826
|
+
WHERE name = 'view_books' AND NOT name = 'sqlite_sequence'
|
|
2827
|
+
[0m
|
|
2828
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
|
2829
|
+
FROM sqlite_master
|
|
2830
|
+
WHERE name = 'view_dictionaries' AND NOT name = 'sqlite_sequence'
|
|
2831
|
+
|
|
2832
|
+
[1m[36m (0.3ms)[0m [1m SELECT sql
|
|
2833
|
+
FROM sqlite_master
|
|
2834
|
+
WHERE name = 'view_fictions' AND NOT name = 'sqlite_sequence'
|
|
2835
|
+
[0m
|
|
2836
|
+
[1m[36m (19.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
2837
|
+
[1m[35m (13.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
2838
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2839
|
+
Migrating to CreateProducts (20141228200436)
|
|
2840
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2841
|
+
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)
|
|
2842
|
+
[1m[36m (15.8ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
2843
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
2844
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
2845
|
+
Migrating to CreateBooks (20141228200756)
|
|
2846
|
+
[1m[35m (6.2ms)[0m BEGIN
|
|
2847
|
+
[1m[36m (15.7ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
2848
|
+
[1m[35m (3.0ms)[0m SELECT table_name, table_type
|
|
2849
|
+
FROM information_schema.tables
|
|
2850
|
+
WHERE table_schema IN ('"$user"','public')
|
|
2851
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
2852
|
+
|
|
2853
|
+
[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
|
|
2854
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
2855
|
+
[1m[36m (6.5ms)[0m [1mCOMMIT[0m
|
|
2856
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
2857
|
+
[1m[35m (6.0ms)[0m BEGIN
|
|
2858
|
+
[1m[36m (14.9ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
2859
|
+
[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
|
|
2860
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
2861
|
+
[1m[35m (6.5ms)[0m COMMIT
|
|
2862
|
+
Migrating to CreateFictions (20150101181916)
|
|
2863
|
+
[1m[36m (6.3ms)[0m [1mBEGIN[0m
|
|
2864
|
+
[1m[35m (15.3ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
2865
|
+
[1m[36m (1.0ms)[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
|
|
2866
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
2867
|
+
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
|
|
2868
|
+
Migrating to CreateBidules (20150102200342)
|
|
2869
|
+
[1m[35m (6.2ms)[0m BEGIN
|
|
2870
|
+
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)
|
|
2871
|
+
[1m[36m (15.2ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
2872
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
2873
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
2874
|
+
Migrating to CreateAnimals (20150102200786)
|
|
2875
|
+
[1m[35m (6.3ms)[0m BEGIN
|
|
2876
|
+
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)
|
|
2877
|
+
[1m[36m (15.2ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
2878
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
2879
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
2880
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2881
|
+
[1m[36m (1.6ms)[0m [1m SELECT table_name, table_type
|
|
2882
|
+
FROM information_schema.tables
|
|
2883
|
+
WHERE table_schema IN ('"$user"','public')
|
|
2884
|
+
AND table_type = 'BASE TABLE'
|
|
2885
|
+
[0m
|
|
2886
|
+
[1m[35m (1.1ms)[0m SELECT table_name, table_type
|
|
2887
|
+
FROM information_schema.tables
|
|
2888
|
+
WHERE table_schema IN ('"$user"','public')
|
|
2889
|
+
AND table_type = 'VIEW'
|
|
2890
|
+
|
|
2891
|
+
[1m[36m (1.5ms)[0m [1m SELECT view_definition
|
|
2892
|
+
FROM information_schema.views
|
|
2893
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
2894
|
+
AND table_schema IN ('"$user"','public')
|
|
2895
|
+
AND table_name = 'view_books'
|
|
2896
|
+
[0m
|
|
2897
|
+
[1m[35m (0.8ms)[0m SELECT view_definition
|
|
2898
|
+
FROM information_schema.views
|
|
2899
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
2900
|
+
AND table_schema IN ('"$user"','public')
|
|
2901
|
+
AND table_name = 'view_dictionaries'
|
|
2902
|
+
|
|
2903
|
+
[1m[36m (0.7ms)[0m [1m SELECT view_definition
|
|
2904
|
+
FROM information_schema.views
|
|
2905
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
2906
|
+
AND table_schema IN ('"$user"','public')
|
|
2907
|
+
AND table_name = 'view_fictions'
|
|
2908
|
+
[0m
|
|
2909
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2910
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
2911
|
+
[1m[35m (2.7ms)[0m SELECT table_name, table_type
|
|
2912
|
+
FROM information_schema.tables
|
|
2913
|
+
WHERE table_schema IN ('"$user"','public')
|
|
2914
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
2915
|
+
|
|
2916
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2917
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("type", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Book"], ["name", "toto"], ["created_at", "2015-01-15 18:46:08.483787"], ["updated_at", "2015-01-15 18:46:08.483787"]]
|
|
2918
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
|
2919
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2920
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id"[0m [["author", "laurent"], ["id", 1]]
|
|
2921
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
2922
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
2923
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "products" SET "name" = $1, "id" = $2, "updated_at" = $3 WHERE "products"."id" = $4 [["name", "titi"], ["id", 1], ["updated_at", "2015-01-15 18:47:05.844891"], ["id", 0]]
|
|
2924
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
|
2925
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2926
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "books" SET "id" = $1 WHERE "books"."id" = $2[0m [["id", 1], ["id", 1]]
|
|
2927
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
2928
|
+
[1m[36m (2.5ms)[0m [1m SELECT table_name, table_type
|
|
2929
|
+
FROM information_schema.tables
|
|
2930
|
+
WHERE table_schema IN ('"$user"','public')
|
|
2931
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
2932
|
+
[0m
|
|
2933
|
+
[1m[35mProduct Load (0.7ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
2934
|
+
[1m[36mBook Load (0.6ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2935
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
2936
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "id" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["id", 1], ["updated_at", "2015-01-15 22:57:33.175096"], ["id", 0]]
|
|
2937
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
2938
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
2939
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "books" SET "author" = $1, "id" = $2 WHERE "books"."id" = $3 [["author", "laurent"], ["id", 1], ["id", 1]]
|
|
2940
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
|
2941
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
2942
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "products" SET "name" = $1, "id" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["name", "toti"], ["id", 1], ["updated_at", "2015-01-15 22:59:07.356083"], ["id", 0]]
|
|
2943
|
+
[1m[35m (0.2ms)[0m COMMIT
|
|
2944
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
2945
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "books" SET "id" = $1 WHERE "books"."id" = $2 [["id", 1], ["id", 1]]
|
|
2946
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
2947
|
+
[1m[35mProduct Load (0.9ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
2948
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2949
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
2950
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "un produit"], ["created_at", "2015-01-15 23:04:06.147660"], ["updated_at", "2015-01-15 23:04:06.147660"]]
|
|
2951
|
+
[1m[35m (1.2ms)[0m COMMIT
|
|
2952
|
+
[1m[36mProduct Load (0.6ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 2]]
|
|
2953
|
+
[1m[35mProduct Load (0.5ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2954
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2955
|
+
[1m[35mProduct Load (0.7ms)[0m SELECT "products".* FROM "products"
|
|
2956
|
+
[1m[36mBook Load (0.3ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2957
|
+
[1m[35mProduct Load (0.5ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2958
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2959
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2960
|
+
[1m[36mBook Load (0.5ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2961
|
+
[1m[35mProduct Load (0.5ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 2]]
|
|
2962
|
+
[1m[36mProduct Load (0.7ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 3]]
|
|
2963
|
+
[1m[35mProduct Load (0.5ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 2]]
|
|
2964
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2965
|
+
[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]]
|
|
2966
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2967
|
+
[1m[35mBook Load (0.4ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2968
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2969
|
+
[1m[35mBook Load (0.4ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2970
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2971
|
+
[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]]
|
|
2972
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2973
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2974
|
+
[1m[36mProduct Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2975
|
+
[1m[35mBook Load (2.2ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2976
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2977
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2978
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2979
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2980
|
+
[1m[36mProduct Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2981
|
+
[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", 1]]
|
|
2982
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2983
|
+
[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]]
|
|
2984
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2985
|
+
[1m[35mBook Load (0.4ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2986
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
2987
|
+
FROM information_schema.tables
|
|
2988
|
+
WHERE table_schema IN ('"$user"','public')
|
|
2989
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
2990
|
+
[0m
|
|
2991
|
+
[1m[35mProduct Load (0.3ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2992
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2993
|
+
[1m[35mProduct Load (0.4ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
|
|
2994
|
+
[1m[36mBook Load (0.6ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
2995
|
+
[1m[36m (3.3ms)[0m [1m SELECT table_name, table_type
|
|
2996
|
+
FROM information_schema.tables
|
|
2997
|
+
WHERE table_schema IN ('"$user"','public')
|
|
2998
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
2999
|
+
[0m
|
|
3000
|
+
[1m[35mBook Load (1.0ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') ORDER BY "view_books"."id" ASC LIMIT 1
|
|
3001
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3002
|
+
[1m[35mBook Load (0.4ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
3003
|
+
[1m[36m (10.7ms)[0m [1m SELECT table_name, table_type
|
|
3004
|
+
FROM information_schema.tables
|
|
3005
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3006
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3007
|
+
[0m
|
|
3008
|
+
[1m[35mBook Load (1.7ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') ORDER BY "view_books"."id" ASC LIMIT 1
|
|
3009
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3010
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "products" SET "name" = $1, "id" = $2, "updated_at" = $3 WHERE "products"."id" = $4 [["name", "titi"], ["id", 1], ["updated_at", "2015-01-16 19:39:52.922756"], ["id", 0]]
|
|
3011
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3012
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3013
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "books" SET "id" = $1 WHERE "books"."id" = $2[0m [["id", 1], ["id", 1]]
|
|
3014
|
+
[1m[35m (6.7ms)[0m COMMIT
|
|
3015
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3016
|
+
[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]]
|
|
3017
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3018
|
+
[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]]
|
|
3019
|
+
[1m[36mProduct Load (0.6ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3020
|
+
[1m[35mBook Load (0.7ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
3021
|
+
[1m[36m (3.3ms)[0m [1m SELECT table_name, table_type
|
|
3022
|
+
FROM information_schema.tables
|
|
3023
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3024
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3025
|
+
[0m
|
|
3026
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3027
|
+
[1m[36mBook Load (0.8ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3028
|
+
[1m[36m (3.5ms)[0m [1m SELECT table_name, table_type
|
|
3029
|
+
FROM information_schema.tables
|
|
3030
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3031
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3032
|
+
[0m
|
|
3033
|
+
[1m[35mBook Load (1.0ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') ORDER BY "view_books"."id" ASC LIMIT 1
|
|
3034
|
+
[1m[36mProduct Load (0.8ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
3035
|
+
[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]]
|
|
3036
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 2]]
|
|
3037
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3038
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["name", "new name"], ["updated_at", "2015-01-16 20:27:52.276904"], ["id", 2]]
|
|
3039
|
+
[1m[35m (6.6ms)[0m COMMIT
|
|
3040
|
+
[1m[36mProduct Load (0.5ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 2]]
|
|
3041
|
+
[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", 2]]
|
|
3042
|
+
[1m[36mProduct Load (0.7ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 2]]
|
|
3043
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 234]]
|
|
3044
|
+
[1m[36mBook Load (0.9ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3045
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3046
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "name" = $1, "id" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["name", "new name toto"], ["id", 1], ["updated_at", "2015-01-16 20:31:34.898567"], ["id", 0]]
|
|
3047
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
3048
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3049
|
+
[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]]
|
|
3050
|
+
[1m[36m (2.3ms)[0m [1m SELECT table_name, table_type
|
|
3051
|
+
FROM information_schema.tables
|
|
3052
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3053
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3054
|
+
[0m
|
|
3055
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3056
|
+
[1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
|
|
3057
|
+
FROM information_schema.tables
|
|
3058
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3059
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3060
|
+
[0m
|
|
3061
|
+
[1m[35mProduct Load (0.3ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
|
|
3062
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3063
|
+
[1m[35mProduct Load (0.4ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
|
|
3064
|
+
[1m[36mBook Load (0.5ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3065
|
+
[1m[36mProductTest Load (0.4ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
3066
|
+
[1m[35m (1.9ms)[0m SELECT table_name, table_type
|
|
3067
|
+
FROM information_schema.tables
|
|
3068
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3069
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3070
|
+
|
|
3071
|
+
[1m[36mProductTest Load (0.7ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3072
|
+
[1m[35mProductTest Load (0.5ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3073
|
+
[1m[36mProductTest Load (0.5ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3074
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3075
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3076
|
+
[1m[36mProductTest Load (0.4ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
3077
|
+
[1m[35m (1.8ms)[0m SELECT table_name, table_type
|
|
3078
|
+
FROM information_schema.tables
|
|
3079
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3080
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3081
|
+
|
|
3082
|
+
[1m[36mProductTest Load (0.7ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3083
|
+
[1m[35mProduct Load (0.7ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3084
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3085
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3086
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["name", "tutu"], ["updated_at", "2015-01-17 07:05:38.030874"], ["id", 1]]
|
|
3087
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
3088
|
+
[1m[36mProduct Load (0.6ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3089
|
+
[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]]
|
|
3090
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3091
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "products" SET "id" = $1, "updated_at" = $2 WHERE "products"."id" = $3 [["id", 20], ["updated_at", "2015-01-17 07:05:49.549586"], ["id", 1]]
|
|
3092
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
|
3093
|
+
[1m[35mProductTest Load (0.4ms)[0m SELECT "products".* FROM "products"
|
|
3094
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3095
|
+
[1m[35m (0.2ms)[0m COMMIT
|
|
3096
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
3097
|
+
FROM information_schema.tables
|
|
3098
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3099
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3100
|
+
[0m
|
|
3101
|
+
[1m[35mProductTest Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3102
|
+
[1m[36mProductTest Load (0.6ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3103
|
+
[1m[35mProductTest Load (0.4ms)[0m SELECT "products".* FROM "products"
|
|
3104
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
3105
|
+
[1m[35mBook Load (0.4ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 20]]
|
|
3106
|
+
[1m[36mProductTest Load (0.3ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1[0m [["id", 20]]
|
|
3107
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3108
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "id" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["id", 1], ["updated_at", "2015-01-17 07:09:17.858710"], ["id", 20]]
|
|
3109
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
3110
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
3111
|
+
[1m[35mBook Load (0.7ms)[0m SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
|
|
3112
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3113
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3 [["name", "boby"], ["updated_at", "2015-01-17 07:14:20.861178"], ["id", 1]]
|
|
3114
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
|
3115
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3116
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["name", "boby"], ["updated_at", "2015-01-17 07:16:21.237480"], ["id", 1]]
|
|
3117
|
+
[1m[35m (0.9ms)[0m COMMIT
|
|
3118
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3119
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3 [["name", "bobyyqfdqsfdqsfdqs"], ["updated_at", "2015-01-17 07:16:38.781916"], ["id", 1]]
|
|
3120
|
+
[1m[36m (4.4ms)[0m [1mCOMMIT[0m
|
|
3121
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3122
|
+
[1m[36mBook Load (0.6ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3123
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3124
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["name", "laurent"], ["updated_at", "2015-01-17 07:18:25.960732"], ["id", 1]]
|
|
3125
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
3126
|
+
[1m[36m (3.2ms)[0m [1m SELECT table_name, table_type
|
|
3127
|
+
FROM information_schema.tables
|
|
3128
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3129
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3130
|
+
[0m
|
|
3131
|
+
[1m[35mProductTest Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3132
|
+
[1m[36mProductTest Load (0.5ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3133
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3134
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3135
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3136
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3137
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3138
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3139
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3140
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3141
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3142
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3143
|
+
[1m[35mProductTest Load (0.5ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3144
|
+
[1m[36mProductTest Load (0.5ms)[0m [1mSELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1[0m
|
|
3145
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3146
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3147
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3148
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["name", "titi"], ["updated_at", "2015-01-17 07:27:18.430362"], ["id", 1]]
|
|
3149
|
+
[1m[35m (0.9ms)[0m COMMIT
|
|
3150
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3151
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3 [["name", "laurent"], ["updated_at", "2015-01-17 07:32:53.884486"], ["id", 0]]
|
|
3152
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3153
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3154
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
|
3155
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3156
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["name", "laurent"], ["updated_at", "2015-01-17 07:34:43.355903"], ["id", 1]]
|
|
3157
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
3158
|
+
[1m[36mProduct Load (0.4ms)[0m [1mSELECT "products".* FROM "products"[0m
|
|
3159
|
+
[1m[35m (1.8ms)[0m SELECT table_name, table_type
|
|
3160
|
+
FROM information_schema.tables
|
|
3161
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3162
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3163
|
+
|
|
3164
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3165
|
+
[1m[35mProduct::Writeable Load (0.4ms)[0m SELECT "products".* FROM "products"
|
|
3166
|
+
[1m[36mBook Load (1.0ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') ORDER BY "view_books"."id" ASC LIMIT 1[0m
|
|
3167
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3168
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "products" SET "name" = $1, "id" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["name", "toto"], ["id", 1], ["updated_at", "2015-01-17 07:49:57.310766"], ["id", 0]]
|
|
3169
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
3170
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3171
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "books" SET "id" = $1 WHERE "books"."id" = $2 [["id", 1], ["id", 1]]
|
|
3172
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3173
|
+
[1m[35mProduct::Writeable Load (0.6ms)[0m SELECT "products".* FROM "products"
|
|
3174
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
3175
|
+
FROM information_schema.tables
|
|
3176
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3177
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3178
|
+
[0m
|
|
3179
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3180
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3181
|
+
[1m[35mProduct Load (0.7ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3182
|
+
[1m[36mBook Load (0.7ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3183
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3184
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "products" SET "name" = $1, "id" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["name", "buffat"], ["id", 1], ["updated_at", "2015-01-17 08:02:12.272034"], ["id", 0]]
|
|
3185
|
+
[1m[35m (0.2ms)[0m COMMIT
|
|
3186
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3187
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "books" SET "id" = $1 WHERE "books"."id" = $2 [["id", 1], ["id", 1]]
|
|
3188
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3189
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3190
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "products" SET "name" = $1, "id" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["name", "buffat"], ["id", 1], ["updated_at", "2015-01-17 08:13:32.192745"], ["id", 0]]
|
|
3191
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
3192
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3193
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3 [["name", "buffat"], ["updated_at", "2015-01-17 08:15:04.808819"], ["id", 1]]
|
|
3194
|
+
[1m[36m (4.7ms)[0m [1mCOMMIT[0m
|
|
3195
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3196
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "books" SET "id" = $1 WHERE "books"."id" = $2[0m [["id", 1], ["id", 1]]
|
|
3197
|
+
[1m[35m (6.1ms)[0m COMMIT
|
|
3198
|
+
[1m[36m (2.3ms)[0m [1m SELECT table_name, table_type
|
|
3199
|
+
FROM information_schema.tables
|
|
3200
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3201
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3202
|
+
[0m
|
|
3203
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3204
|
+
[1m[36mBook Load (0.5ms)[0m [1mSELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3205
|
+
[1m[36m (2.3ms)[0m [1m SELECT table_name, table_type
|
|
3206
|
+
FROM information_schema.tables
|
|
3207
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3208
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3209
|
+
[0m
|
|
3210
|
+
[1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
|
|
3211
|
+
FROM information_schema.tables
|
|
3212
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3213
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3214
|
+
[0m
|
|
3215
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
3216
|
+
FROM information_schema.tables
|
|
3217
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3218
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3219
|
+
[0m
|
|
3220
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
3221
|
+
FROM information_schema.tables
|
|
3222
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3223
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3224
|
+
[0m
|
|
3225
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3226
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "buffat"], ["type", "Dictionary"], ["created_at", "2015-01-17 09:58:24.201028"], ["updated_at", "2015-01-17 09:58:24.201028"]]
|
|
3227
|
+
[1m[35m (5.8ms)[0m COMMIT
|
|
3228
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3229
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "title", "id") VALUES ($1, $2, $3) RETURNING "id" [["author", "laurent"], ["title", "robert"], ["id", 3]]
|
|
3230
|
+
[1m[36m (1.7ms)[0m [1mCOMMIT[0m
|
|
3231
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
3232
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "books" DEFAULT VALUES RETURNING "id"[0m
|
|
3233
|
+
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "books_pkey"
|
|
3234
|
+
DETAIL: Key (id)=(1) already exists.
|
|
3235
|
+
: INSERT INTO "books" DEFAULT VALUES RETURNING "id"
|
|
3236
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
3237
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
3238
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
3239
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3240
|
+
Migrating to CreateProducts (20141228200436)
|
|
3241
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3242
|
+
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)
|
|
3243
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3244
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
3245
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3246
|
+
Migrating to CreateBooks (20141228200756)
|
|
3247
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3248
|
+
[1m[36m (3.5ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
3249
|
+
[1m[35m (2.3ms)[0m SELECT table_name, table_type
|
|
3250
|
+
FROM information_schema.tables
|
|
3251
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3252
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3253
|
+
|
|
3254
|
+
[1m[36m (1.2ms)[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
|
|
3255
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
3256
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3257
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
3258
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3259
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
3260
|
+
[1m[35m (0.8ms)[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
|
|
3261
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
3262
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
3263
|
+
Migrating to CreateFictions (20150101181916)
|
|
3264
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3265
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
3266
|
+
[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
|
|
3267
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
3268
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
|
3269
|
+
Migrating to CreateBidules (20150102200342)
|
|
3270
|
+
[1m[35m (6.3ms)[0m BEGIN
|
|
3271
|
+
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)
|
|
3272
|
+
[1m[36m (3.5ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3273
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
3274
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3275
|
+
Migrating to CreateAnimals (20150102200786)
|
|
3276
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3277
|
+
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)
|
|
3278
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3279
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
3280
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3281
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3282
|
+
[1m[36m (1.7ms)[0m [1m SELECT table_name, table_type
|
|
3283
|
+
FROM information_schema.tables
|
|
3284
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3285
|
+
AND table_type = 'BASE TABLE'
|
|
3286
|
+
[0m
|
|
3287
|
+
[1m[35m (0.8ms)[0m SELECT table_name, table_type
|
|
3288
|
+
FROM information_schema.tables
|
|
3289
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3290
|
+
AND table_type = 'VIEW'
|
|
3291
|
+
|
|
3292
|
+
[1m[36m (1.3ms)[0m [1m SELECT view_definition
|
|
3293
|
+
FROM information_schema.views
|
|
3294
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3295
|
+
AND table_schema IN ('"$user"','public')
|
|
3296
|
+
AND table_name = 'view_books'
|
|
3297
|
+
[0m
|
|
3298
|
+
[1m[35m (0.8ms)[0m SELECT view_definition
|
|
3299
|
+
FROM information_schema.views
|
|
3300
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3301
|
+
AND table_schema IN ('"$user"','public')
|
|
3302
|
+
AND table_name = 'view_dictionaries'
|
|
3303
|
+
|
|
3304
|
+
[1m[36m (0.7ms)[0m [1m SELECT view_definition
|
|
3305
|
+
FROM information_schema.views
|
|
3306
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3307
|
+
AND table_schema IN ('"$user"','public')
|
|
3308
|
+
AND table_name = 'view_fictions'
|
|
3309
|
+
[0m
|
|
3310
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3311
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
3312
|
+
FROM information_schema.tables
|
|
3313
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3314
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3315
|
+
[0m
|
|
3316
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
3317
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "buffat"], ["type", "Dictionary"], ["created_at", "2015-01-17 10:10:12.540873"], ["updated_at", "2015-01-17 10:10:12.540873"]]
|
|
3318
|
+
[1m[35m (6.5ms)[0m COMMIT
|
|
3319
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3320
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books" ("author", "title", "id") VALUES ($1, $2, $3) RETURNING "id" [["author", "laurent"], ["title", "robert"], ["id", 1]]
|
|
3321
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
|
3322
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
3323
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
3324
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3325
|
+
Migrating to CreateProducts (20141228200436)
|
|
3326
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3327
|
+
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)
|
|
3328
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3329
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
3330
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3331
|
+
Migrating to CreateBooks (20141228200756)
|
|
3332
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3333
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
3334
|
+
[1m[35m (1.8ms)[0m SELECT table_name, table_type
|
|
3335
|
+
FROM information_schema.tables
|
|
3336
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3337
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3338
|
+
|
|
3339
|
+
[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
|
|
3340
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
3341
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3342
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
3343
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3344
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
3345
|
+
[1m[35m (0.8ms)[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
|
|
3346
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
3347
|
+
[1m[35m (0.3ms)[0m COMMIT
|
|
3348
|
+
Migrating to CreateFictions (20150101181916)
|
|
3349
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3350
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
3351
|
+
[1m[36m (1.0ms)[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
|
|
3352
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
3353
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3354
|
+
Migrating to CreateBidules (20150102200342)
|
|
3355
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3356
|
+
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)
|
|
3357
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3358
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
3359
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3360
|
+
Migrating to CreateAnimals (20150102200786)
|
|
3361
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3362
|
+
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)
|
|
3363
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3364
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
3365
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3366
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3367
|
+
[1m[36m (1.2ms)[0m [1m SELECT table_name, table_type
|
|
3368
|
+
FROM information_schema.tables
|
|
3369
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3370
|
+
AND table_type = 'BASE TABLE'
|
|
3371
|
+
[0m
|
|
3372
|
+
[1m[35m (0.6ms)[0m SELECT table_name, table_type
|
|
3373
|
+
FROM information_schema.tables
|
|
3374
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3375
|
+
AND table_type = 'VIEW'
|
|
3376
|
+
|
|
3377
|
+
[1m[36m (1.2ms)[0m [1m SELECT view_definition
|
|
3378
|
+
FROM information_schema.views
|
|
3379
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3380
|
+
AND table_schema IN ('"$user"','public')
|
|
3381
|
+
AND table_name = 'view_books'
|
|
3382
|
+
[0m
|
|
3383
|
+
[1m[35m (0.7ms)[0m SELECT view_definition
|
|
3384
|
+
FROM information_schema.views
|
|
3385
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3386
|
+
AND table_schema IN ('"$user"','public')
|
|
3387
|
+
AND table_name = 'view_dictionaries'
|
|
3388
|
+
|
|
3389
|
+
[1m[36m (0.7ms)[0m [1m SELECT view_definition
|
|
3390
|
+
FROM information_schema.views
|
|
3391
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3392
|
+
AND table_schema IN ('"$user"','public')
|
|
3393
|
+
AND table_name = 'view_fictions'
|
|
3394
|
+
[0m
|
|
3395
|
+
[1m[36m (2.3ms)[0m [1m SELECT table_name, table_type
|
|
3396
|
+
FROM information_schema.tables
|
|
3397
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3398
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3399
|
+
[0m
|
|
3400
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3401
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "unDico"], ["type", "Dictionary"], ["created_at", "2015-01-17 10:34:35.915017"], ["updated_at", "2015-01-17 10:34:35.915017"]]
|
|
3402
|
+
[1m[35m (5.7ms)[0m COMMIT
|
|
3403
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
|
3404
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books" ("author", "title", "id") VALUES ($1, $2, $3) RETURNING "id" [["author", "laurent"], ["title", "Robert"], ["id", 1]]
|
|
3405
|
+
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
|
|
3406
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
3407
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
3408
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3409
|
+
Migrating to CreateProducts (20141228200436)
|
|
3410
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3411
|
+
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)
|
|
3412
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3413
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
3414
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3415
|
+
Migrating to CreateBooks (20141228200756)
|
|
3416
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3417
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
3418
|
+
[1m[35m (2.1ms)[0m SELECT table_name, table_type
|
|
3419
|
+
FROM information_schema.tables
|
|
3420
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3421
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3422
|
+
|
|
3423
|
+
[1m[36m (1.0ms)[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
|
|
3424
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
3425
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3426
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
3427
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3428
|
+
[1m[36m (4.1ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
3429
|
+
[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
|
|
3430
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
3431
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
3432
|
+
Migrating to CreateFictions (20150101181916)
|
|
3433
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3434
|
+
[1m[35m (2.4ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
3435
|
+
[1m[36m (0.8ms)[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
|
|
3436
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
3437
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3438
|
+
Migrating to CreateBidules (20150102200342)
|
|
3439
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3440
|
+
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)
|
|
3441
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3442
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
3443
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3444
|
+
Migrating to CreateAnimals (20150102200786)
|
|
3445
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3446
|
+
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)
|
|
3447
|
+
[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
|
|
3448
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
3449
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
3450
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3451
|
+
[1m[36m (1.5ms)[0m [1m SELECT table_name, table_type
|
|
3452
|
+
FROM information_schema.tables
|
|
3453
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3454
|
+
AND table_type = 'BASE TABLE'
|
|
3455
|
+
[0m
|
|
3456
|
+
[1m[35m (0.6ms)[0m SELECT table_name, table_type
|
|
3457
|
+
FROM information_schema.tables
|
|
3458
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3459
|
+
AND table_type = 'VIEW'
|
|
3460
|
+
|
|
3461
|
+
[1m[36m (1.4ms)[0m [1m SELECT view_definition
|
|
3462
|
+
FROM information_schema.views
|
|
3463
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3464
|
+
AND table_schema IN ('"$user"','public')
|
|
3465
|
+
AND table_name = 'view_books'
|
|
3466
|
+
[0m
|
|
3467
|
+
[1m[35m (0.8ms)[0m SELECT view_definition
|
|
3468
|
+
FROM information_schema.views
|
|
3469
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3470
|
+
AND table_schema IN ('"$user"','public')
|
|
3471
|
+
AND table_name = 'view_dictionaries'
|
|
3472
|
+
|
|
3473
|
+
[1m[36m (1.0ms)[0m [1m SELECT view_definition
|
|
3474
|
+
FROM information_schema.views
|
|
3475
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3476
|
+
AND table_schema IN ('"$user"','public')
|
|
3477
|
+
AND table_name = 'view_fictions'
|
|
3478
|
+
[0m
|
|
3479
|
+
[1m[36m (2.7ms)[0m [1m SELECT table_name, table_type
|
|
3480
|
+
FROM information_schema.tables
|
|
3481
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3482
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3483
|
+
[0m
|
|
3484
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3485
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "un nom"], ["type", "Dictionary"], ["created_at", "2015-01-17 10:44:23.134113"], ["updated_at", "2015-01-17 10:44:23.134113"]]
|
|
3486
|
+
[1m[35m (6.1ms)[0m COMMIT
|
|
3487
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3488
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books" ("author", "title", "id") VALUES ($1, $2, $3) RETURNING "id" [["author", "laurent"], ["title", "un Ttire"], ["id", 1]]
|
|
3489
|
+
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
|
|
3490
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
3491
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "dictionaries" ("id") VALUES ($1) RETURNING "id"[0m [["id", 1]]
|
|
3492
|
+
[1m[35m (6.1ms)[0m COMMIT
|
|
3493
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
3494
|
+
FROM information_schema.tables
|
|
3495
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3496
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3497
|
+
[0m
|
|
3498
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3499
|
+
[1m[36mDictionary Load (0.6ms)[0m [1mSELECT "view_dictionaries".* FROM "view_dictionaries" WHERE "view_dictionaries"."type" IN ('Dictionary') AND "view_dictionaries"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3500
|
+
[1m[36m (2.3ms)[0m [1m SELECT table_name, table_type
|
|
3501
|
+
FROM information_schema.tables
|
|
3502
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3503
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3504
|
+
[0m
|
|
3505
|
+
[1m[35mProduct Load (0.8ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3506
|
+
[1m[36mDictionary Load (0.6ms)[0m [1mSELECT "view_dictionaries".* FROM "view_dictionaries" WHERE "view_dictionaries"."type" IN ('Dictionary') AND "view_dictionaries"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3507
|
+
[1m[36m (3.0ms)[0m [1m SELECT table_name, table_type
|
|
3508
|
+
FROM information_schema.tables
|
|
3509
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3510
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3511
|
+
[0m
|
|
3512
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3513
|
+
[1m[36mDictionary Load (0.6ms)[0m [1mSELECT "view_dictionaries".* FROM "view_dictionaries" WHERE "view_dictionaries"."type" IN ('Dictionary') AND "view_dictionaries"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3514
|
+
[1m[35mDictionary Load (0.9ms)[0m SELECT "view_dictionaries".* FROM "view_dictionaries" WHERE "view_dictionaries"."type" IN ('Dictionary') AND "view_dictionaries"."id" = $1 LIMIT 1 [["id", 1]]
|
|
3515
|
+
[1m[36mDictionary Load (0.8ms)[0m [1mSELECT "view_dictionaries".* FROM "view_dictionaries" WHERE "view_dictionaries"."type" IN ('Dictionary') AND "view_dictionaries"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3516
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
3517
|
+
FROM information_schema.tables
|
|
3518
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3519
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3520
|
+
[0m
|
|
3521
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3522
|
+
[1m[36mDictionary Load (0.9ms)[0m [1mSELECT "view_dictionaries".* FROM "view_dictionaries" WHERE "view_dictionaries"."type" IN ('Dictionary') AND "view_dictionaries"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3523
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3524
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "toto"], ["created_at", "2015-01-17 11:37:11.221208"], ["updated_at", "2015-01-17 11:37:11.221208"]]
|
|
3525
|
+
[1m[35m (1.0ms)[0m COMMIT
|
|
3526
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3527
|
+
[1m[35m (0.2ms)[0m COMMIT
|
|
3528
|
+
[1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
|
|
3529
|
+
FROM information_schema.tables
|
|
3530
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3531
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3532
|
+
[0m
|
|
3533
|
+
[1m[35mProduct Load (0.6ms)[0m SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
|
|
3534
|
+
[1m[36mDictionary Load (0.7ms)[0m [1mSELECT "view_dictionaries".* FROM "view_dictionaries" WHERE "view_dictionaries"."type" IN ('Dictionary') AND "view_dictionaries"."id" = $1 LIMIT 1[0m [["id", 1]]
|
|
3535
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3536
|
+
[1m[36m (2.2ms)[0m [1mCOMMIT[0m
|
|
3537
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3538
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "books" SET "id" = $1 WHERE "books"."id" = $2[0m [["id", 1], ["id", 1]]
|
|
3539
|
+
[1m[35m (0.5ms)[0m COMMIT
|
|
3540
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3541
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "dictionaries" SET "id" = $1 WHERE "dictionaries"."id" = $2 [["id", 1], ["id", 1]]
|
|
3542
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3543
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3544
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "products" SET "name" = $1, "updated_at" = $2 WHERE "products"."id" = $3[0m [["name", "bordel de merde"], ["updated_at", "2015-01-17 11:51:32.874709"], ["id", 1]]
|
|
3545
|
+
[1m[35m (6.1ms)[0m COMMIT
|
|
3546
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3547
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "books" SET "id" = $1 WHERE "books"."id" = $2 [["id", 1], ["id", 1]]
|
|
3548
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
|
3549
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3550
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "dictionaries" SET "id" = $1 WHERE "dictionaries"."id" = $2[0m [["id", 1], ["id", 1]]
|
|
3551
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
3552
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
3553
|
+
FROM information_schema.tables
|
|
3554
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3555
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3556
|
+
[0m
|
|
3557
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3558
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "UnNom"], ["type", "Book"], ["created_at", "2015-01-17 12:20:53.326583"], ["updated_at", "2015-01-17 12:20:53.326583"]]
|
|
3559
|
+
[1m[35m (1.1ms)[0m COMMIT
|
|
3560
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3561
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", nil], ["id", 3]]
|
|
3562
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
3563
|
+
[1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
|
|
3564
|
+
FROM information_schema.tables
|
|
3565
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3566
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3567
|
+
[0m
|
|
3568
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3569
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "UnNom"], ["type", "Book"], ["created_at", "2015-01-17 12:21:29.897868"], ["updated_at", "2015-01-17 12:21:29.897868"]]
|
|
3570
|
+
[1m[35m (0.5ms)[0m COMMIT
|
|
3571
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3572
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", nil], ["id", 4]]
|
|
3573
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3574
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
3575
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
3576
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3577
|
+
Migrating to CreateProducts (20141228200436)
|
|
3578
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3579
|
+
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)
|
|
3580
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
3582
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3583
|
+
Migrating to CreateBooks (20141228200756)
|
|
3584
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3585
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
3586
|
+
[1m[35m (1.8ms)[0m SELECT table_name, table_type
|
|
3587
|
+
FROM information_schema.tables
|
|
3588
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3589
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3590
|
+
|
|
3591
|
+
[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
|
|
3592
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
3593
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
|
3594
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
3595
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3596
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
3597
|
+
[1m[35m (0.8ms)[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
|
|
3598
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
3599
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
3600
|
+
Migrating to CreateFictions (20150101181916)
|
|
3601
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3602
|
+
[1m[35m (3.4ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
3603
|
+
[1m[36m (0.8ms)[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
|
|
3604
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
3605
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3606
|
+
Migrating to CreateBidules (20150102200342)
|
|
3607
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3608
|
+
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)
|
|
3609
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3610
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
3611
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3612
|
+
Migrating to CreateAnimals (20150102200786)
|
|
3613
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3614
|
+
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)
|
|
3615
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3616
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
3617
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
3618
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3619
|
+
[1m[36m (1.4ms)[0m [1m SELECT table_name, table_type
|
|
3620
|
+
FROM information_schema.tables
|
|
3621
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3622
|
+
AND table_type = 'BASE TABLE'
|
|
3623
|
+
[0m
|
|
3624
|
+
[1m[35m (0.6ms)[0m SELECT table_name, table_type
|
|
3625
|
+
FROM information_schema.tables
|
|
3626
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3627
|
+
AND table_type = 'VIEW'
|
|
3628
|
+
|
|
3629
|
+
[1m[36m (1.2ms)[0m [1m SELECT view_definition
|
|
3630
|
+
FROM information_schema.views
|
|
3631
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3632
|
+
AND table_schema IN ('"$user"','public')
|
|
3633
|
+
AND table_name = 'view_books'
|
|
3634
|
+
[0m
|
|
3635
|
+
[1m[35m (0.7ms)[0m SELECT view_definition
|
|
3636
|
+
FROM information_schema.views
|
|
3637
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3638
|
+
AND table_schema IN ('"$user"','public')
|
|
3639
|
+
AND table_name = 'view_dictionaries'
|
|
3640
|
+
|
|
3641
|
+
[1m[36m (0.7ms)[0m [1m SELECT view_definition
|
|
3642
|
+
FROM information_schema.views
|
|
3643
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3644
|
+
AND table_schema IN ('"$user"','public')
|
|
3645
|
+
AND table_name = 'view_fictions'
|
|
3646
|
+
[0m
|
|
3647
|
+
[1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
|
|
3648
|
+
FROM information_schema.tables
|
|
3649
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3650
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3651
|
+
[0m
|
|
3652
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3653
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "UnNom"], ["type", "Book"], ["created_at", "2015-01-17 12:24:12.368318"], ["updated_at", "2015-01-17 12:24:12.368318"]]
|
|
3654
|
+
[1m[35m (0.5ms)[0m COMMIT
|
|
3655
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3656
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", nil], ["id", 1]]
|
|
3657
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3658
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
|
3659
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
3660
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3661
|
+
Migrating to CreateProducts (20141228200436)
|
|
3662
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3663
|
+
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)
|
|
3664
|
+
[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
|
|
3665
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
|
|
3666
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
|
3667
|
+
Migrating to CreateBooks (20141228200756)
|
|
3668
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3669
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) [0m
|
|
3670
|
+
[1m[35m (2.2ms)[0m SELECT table_name, table_type
|
|
3671
|
+
FROM information_schema.tables
|
|
3672
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3673
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3674
|
+
|
|
3675
|
+
[1m[36m (1.2ms)[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
|
|
3676
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
|
|
3677
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3678
|
+
Migrating to CreateDictionaries (20150101181703)
|
|
3679
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3680
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) [0m
|
|
3681
|
+
[1m[35m (0.8ms)[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
|
|
3682
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150101181703"]]
|
|
3683
|
+
[1m[35m (0.4ms)[0m COMMIT
|
|
3684
|
+
Migrating to CreateFictions (20150101181916)
|
|
3685
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3686
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "fictions" ("id" serial primary key, "story" text)
|
|
3687
|
+
[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
|
|
3688
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
|
|
3689
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
|
3690
|
+
Migrating to CreateBidules (20150102200342)
|
|
3691
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3692
|
+
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)
|
|
3693
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3694
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
|
|
3695
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3696
|
+
Migrating to CreateAnimals (20150102200786)
|
|
3697
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
3698
|
+
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)
|
|
3699
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
|
|
3700
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
|
|
3701
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
|
3702
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3703
|
+
[1m[36m (1.4ms)[0m [1m SELECT table_name, table_type
|
|
3704
|
+
FROM information_schema.tables
|
|
3705
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3706
|
+
AND table_type = 'BASE TABLE'
|
|
3707
|
+
[0m
|
|
3708
|
+
[1m[35m (0.6ms)[0m SELECT table_name, table_type
|
|
3709
|
+
FROM information_schema.tables
|
|
3710
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3711
|
+
AND table_type = 'VIEW'
|
|
3712
|
+
|
|
3713
|
+
[1m[36m (1.2ms)[0m [1m SELECT view_definition
|
|
3714
|
+
FROM information_schema.views
|
|
3715
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3716
|
+
AND table_schema IN ('"$user"','public')
|
|
3717
|
+
AND table_name = 'view_books'
|
|
3718
|
+
[0m
|
|
3719
|
+
[1m[35m (0.7ms)[0m SELECT view_definition
|
|
3720
|
+
FROM information_schema.views
|
|
3721
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3722
|
+
AND table_schema IN ('"$user"','public')
|
|
3723
|
+
AND table_name = 'view_dictionaries'
|
|
3724
|
+
|
|
3725
|
+
[1m[36m (0.7ms)[0m [1m SELECT view_definition
|
|
3726
|
+
FROM information_schema.views
|
|
3727
|
+
WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
|
|
3728
|
+
AND table_schema IN ('"$user"','public')
|
|
3729
|
+
AND table_name = 'view_fictions'
|
|
3730
|
+
[0m
|
|
3731
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
3732
|
+
FROM information_schema.tables
|
|
3733
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3734
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3735
|
+
[0m
|
|
3736
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3737
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "UnNom"], ["type", "Book"], ["created_at", "2015-01-17 12:27:27.932760"], ["updated_at", "2015-01-17 12:27:27.932760"]]
|
|
3738
|
+
[1m[35m (5.8ms)[0m COMMIT
|
|
3739
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3740
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books" ("id") VALUES ($1) RETURNING "id" [["id", 1]]
|
|
3741
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
|
3742
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
3743
|
+
FROM information_schema.tables
|
|
3744
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3745
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3746
|
+
[0m
|
|
3747
|
+
[1m[35m (0.3ms)[0m BEGIN
|
|
3748
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "UnNom"], ["type", "Book"], ["created_at", "2015-01-17 12:36:25.290014"], ["updated_at", "2015-01-17 12:36:25.290014"]]
|
|
3749
|
+
[1m[35m (6.4ms)[0m COMMIT
|
|
3750
|
+
[1m[36m (1.8ms)[0m [1m SELECT table_name, table_type
|
|
3751
|
+
FROM information_schema.tables
|
|
3752
|
+
WHERE table_schema IN ('"$user"','public')
|
|
3753
|
+
AND table_type IN ('BASE TABLE', 'VIEW')
|
|
3754
|
+
[0m
|
|
3755
|
+
[1m[35m (0.4ms)[0m BEGIN
|
|
3756
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "UnNom"], ["type", "Book"], ["created_at", "2015-01-17 12:37:35.185289"], ["updated_at", "2015-01-17 12:37:35.185289"]]
|
|
3757
|
+
[1m[35m (5.6ms)[0m COMMIT
|
|
3758
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
3759
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "UnAuteur"], ["id", 3]]
|
|
3760
|
+
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|