|
@@ -32017,3 +32017,880 @@
|
32017
|
32017
|
[2011-09-08 20:16:22] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
32018
|
32018
|
WHERE attrelid=16405 AND attnum IN (6 ) ORDER BY attnum ASC; ([]) [] []
|
32019
|
32019
|
[2011-09-08 20:16:22] doctrine.DEBUG: ALTER TABLE muzich_user ALTER roles TYPE TEXT ([]) [] []
|
|
32020
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32021
|
+ c.relname, n.nspname AS schemaname
|
|
32022
|
+ FROM
|
|
32023
|
+ pg_class c, pg_namespace n
|
|
32024
|
+ WHERE relkind = 'S' AND n.oid = c.relnamespace AND
|
|
32025
|
+ (n.nspname NOT LIKE 'pg_%' AND n.nspname != 'information_schema') ([]) [] []
|
|
32026
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM product_id_seq ([]) [] []
|
|
32027
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM element_id_seq ([]) [] []
|
|
32028
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM tag_id_seq ([]) [] []
|
|
32029
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM user_id_seq ([]) [] []
|
|
32030
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM muzich_user_id_seq ([]) [] []
|
|
32031
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM users_elements_favorites_id_seq ([]) [] []
|
|
32032
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM users_tags_favorites_id_seq ([]) [] []
|
|
32033
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT tablename AS table_name, schemaname AS schema_name
|
|
32034
|
+ FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' AND schemaname != 'information_schema' ([]) [] []
|
|
32035
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32036
|
+ a.attnum,
|
|
32037
|
+ a.attname AS field,
|
|
32038
|
+ t.typname AS type,
|
|
32039
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32040
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32041
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32042
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32043
|
+ a.attnotnull AS isnotnull,
|
|
32044
|
+ (SELECT 't'
|
|
32045
|
+ FROM pg_index
|
|
32046
|
+ WHERE c.oid = pg_index.indrelid
|
|
32047
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32048
|
+ AND pg_index.indisprimary = 't'
|
|
32049
|
+ ) AS pri,
|
|
32050
|
+ (SELECT pg_attrdef.adsrc
|
|
32051
|
+ FROM pg_attrdef
|
|
32052
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32053
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32054
|
+ ) AS default,
|
|
32055
|
+ (SELECT pg_description.description
|
|
32056
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32057
|
+ ) AS comment
|
|
32058
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32059
|
+ WHERE c.relname = 'product'
|
|
32060
|
+ AND a.attnum > 0
|
|
32061
|
+ AND a.attrelid = c.oid
|
|
32062
|
+ AND a.atttypid = t.oid
|
|
32063
|
+ AND n.oid = c.relnamespace
|
|
32064
|
+ ORDER BY a.attnum ([]) [] []
|
|
32065
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32066
|
+ FROM pg_catalog.pg_constraint r
|
|
32067
|
+ WHERE r.conrelid =
|
|
32068
|
+ (
|
|
32069
|
+ SELECT c.oid
|
|
32070
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32071
|
+ WHERE c.relname = 'product'
|
|
32072
|
+ AND n.oid = c.relnamespace
|
|
32073
|
+ )
|
|
32074
|
+ AND r.contype = 'f' ([]) [] []
|
|
32075
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32076
|
+ pg_index.indkey, pg_index.indrelid
|
|
32077
|
+ FROM pg_class, pg_index
|
|
32078
|
+ WHERE oid IN (
|
|
32079
|
+ SELECT indexrelid
|
|
32080
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32081
|
+ WHERE sc.relname = 'product' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32082
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32083
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32084
|
+ WHERE attrelid=16390 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32085
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32086
|
+ a.attnum,
|
|
32087
|
+ a.attname AS field,
|
|
32088
|
+ t.typname AS type,
|
|
32089
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32090
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32091
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32092
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32093
|
+ a.attnotnull AS isnotnull,
|
|
32094
|
+ (SELECT 't'
|
|
32095
|
+ FROM pg_index
|
|
32096
|
+ WHERE c.oid = pg_index.indrelid
|
|
32097
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32098
|
+ AND pg_index.indisprimary = 't'
|
|
32099
|
+ ) AS pri,
|
|
32100
|
+ (SELECT pg_attrdef.adsrc
|
|
32101
|
+ FROM pg_attrdef
|
|
32102
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32103
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32104
|
+ ) AS default,
|
|
32105
|
+ (SELECT pg_description.description
|
|
32106
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32107
|
+ ) AS comment
|
|
32108
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32109
|
+ WHERE c.relname = 'element_type'
|
|
32110
|
+ AND a.attnum > 0
|
|
32111
|
+ AND a.attrelid = c.oid
|
|
32112
|
+ AND a.atttypid = t.oid
|
|
32113
|
+ AND n.oid = c.relnamespace
|
|
32114
|
+ ORDER BY a.attnum ([]) [] []
|
|
32115
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32116
|
+ FROM pg_catalog.pg_constraint r
|
|
32117
|
+ WHERE r.conrelid =
|
|
32118
|
+ (
|
|
32119
|
+ SELECT c.oid
|
|
32120
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32121
|
+ WHERE c.relname = 'element_type'
|
|
32122
|
+ AND n.oid = c.relnamespace
|
|
32123
|
+ )
|
|
32124
|
+ AND r.contype = 'f' ([]) [] []
|
|
32125
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32126
|
+ pg_index.indkey, pg_index.indrelid
|
|
32127
|
+ FROM pg_class, pg_index
|
|
32128
|
+ WHERE oid IN (
|
|
32129
|
+ SELECT indexrelid
|
|
32130
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32131
|
+ WHERE sc.relname = 'element_type' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32132
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32133
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32134
|
+ WHERE attrelid=16400 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32135
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32136
|
+ a.attnum,
|
|
32137
|
+ a.attname AS field,
|
|
32138
|
+ t.typname AS type,
|
|
32139
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32140
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32141
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32142
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32143
|
+ a.attnotnull AS isnotnull,
|
|
32144
|
+ (SELECT 't'
|
|
32145
|
+ FROM pg_index
|
|
32146
|
+ WHERE c.oid = pg_index.indrelid
|
|
32147
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32148
|
+ AND pg_index.indisprimary = 't'
|
|
32149
|
+ ) AS pri,
|
|
32150
|
+ (SELECT pg_attrdef.adsrc
|
|
32151
|
+ FROM pg_attrdef
|
|
32152
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32153
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32154
|
+ ) AS default,
|
|
32155
|
+ (SELECT pg_description.description
|
|
32156
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32157
|
+ ) AS comment
|
|
32158
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32159
|
+ WHERE c.relname = 'muzich_user'
|
|
32160
|
+ AND a.attnum > 0
|
|
32161
|
+ AND a.attrelid = c.oid
|
|
32162
|
+ AND a.atttypid = t.oid
|
|
32163
|
+ AND n.oid = c.relnamespace
|
|
32164
|
+ ORDER BY a.attnum ([]) [] []
|
|
32165
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32166
|
+ FROM pg_catalog.pg_constraint r
|
|
32167
|
+ WHERE r.conrelid =
|
|
32168
|
+ (
|
|
32169
|
+ SELECT c.oid
|
|
32170
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32171
|
+ WHERE c.relname = 'muzich_user'
|
|
32172
|
+ AND n.oid = c.relnamespace
|
|
32173
|
+ )
|
|
32174
|
+ AND r.contype = 'f' ([]) [] []
|
|
32175
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32176
|
+ pg_index.indkey, pg_index.indrelid
|
|
32177
|
+ FROM pg_class, pg_index
|
|
32178
|
+ WHERE oid IN (
|
|
32179
|
+ SELECT indexrelid
|
|
32180
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32181
|
+ WHERE sc.relname = 'muzich_user' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32182
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32183
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32184
|
+ WHERE attrelid=16451 AND attnum IN (5 ) ORDER BY attnum ASC; ([]) [] []
|
|
32185
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32186
|
+ WHERE attrelid=16451 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32187
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32188
|
+ WHERE attrelid=16451 AND attnum IN (3 ) ORDER BY attnum ASC; ([]) [] []
|
|
32189
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32190
|
+ a.attnum,
|
|
32191
|
+ a.attname AS field,
|
|
32192
|
+ t.typname AS type,
|
|
32193
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32194
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32195
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32196
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32197
|
+ a.attnotnull AS isnotnull,
|
|
32198
|
+ (SELECT 't'
|
|
32199
|
+ FROM pg_index
|
|
32200
|
+ WHERE c.oid = pg_index.indrelid
|
|
32201
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32202
|
+ AND pg_index.indisprimary = 't'
|
|
32203
|
+ ) AS pri,
|
|
32204
|
+ (SELECT pg_attrdef.adsrc
|
|
32205
|
+ FROM pg_attrdef
|
|
32206
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32207
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32208
|
+ ) AS default,
|
|
32209
|
+ (SELECT pg_description.description
|
|
32210
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32211
|
+ ) AS comment
|
|
32212
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32213
|
+ WHERE c.relname = 'tag'
|
|
32214
|
+ AND a.attnum > 0
|
|
32215
|
+ AND a.attrelid = c.oid
|
|
32216
|
+ AND a.atttypid = t.oid
|
|
32217
|
+ AND n.oid = c.relnamespace
|
|
32218
|
+ ORDER BY a.attnum ([]) [] []
|
|
32219
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32220
|
+ FROM pg_catalog.pg_constraint r
|
|
32221
|
+ WHERE r.conrelid =
|
|
32222
|
+ (
|
|
32223
|
+ SELECT c.oid
|
|
32224
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32225
|
+ WHERE c.relname = 'tag'
|
|
32226
|
+ AND n.oid = c.relnamespace
|
|
32227
|
+ )
|
|
32228
|
+ AND r.contype = 'f' ([]) [] []
|
|
32229
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32230
|
+ pg_index.indkey, pg_index.indrelid
|
|
32231
|
+ FROM pg_class, pg_index
|
|
32232
|
+ WHERE oid IN (
|
|
32233
|
+ SELECT indexrelid
|
|
32234
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32235
|
+ WHERE sc.relname = 'tag' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32236
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32237
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32238
|
+ WHERE attrelid=16424 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32239
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32240
|
+ a.attnum,
|
|
32241
|
+ a.attname AS field,
|
|
32242
|
+ t.typname AS type,
|
|
32243
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32244
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32245
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32246
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32247
|
+ a.attnotnull AS isnotnull,
|
|
32248
|
+ (SELECT 't'
|
|
32249
|
+ FROM pg_index
|
|
32250
|
+ WHERE c.oid = pg_index.indrelid
|
|
32251
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32252
|
+ AND pg_index.indisprimary = 't'
|
|
32253
|
+ ) AS pri,
|
|
32254
|
+ (SELECT pg_attrdef.adsrc
|
|
32255
|
+ FROM pg_attrdef
|
|
32256
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32257
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32258
|
+ ) AS default,
|
|
32259
|
+ (SELECT pg_description.description
|
|
32260
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32261
|
+ ) AS comment
|
|
32262
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32263
|
+ WHERE c.relname = 'elements_tag'
|
|
32264
|
+ AND a.attnum > 0
|
|
32265
|
+ AND a.attrelid = c.oid
|
|
32266
|
+ AND a.atttypid = t.oid
|
|
32267
|
+ AND n.oid = c.relnamespace
|
|
32268
|
+ ORDER BY a.attnum ([]) [] []
|
|
32269
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32270
|
+ FROM pg_catalog.pg_constraint r
|
|
32271
|
+ WHERE r.conrelid =
|
|
32272
|
+ (
|
|
32273
|
+ SELECT c.oid
|
|
32274
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32275
|
+ WHERE c.relname = 'elements_tag'
|
|
32276
|
+ AND n.oid = c.relnamespace
|
|
32277
|
+ )
|
|
32278
|
+ AND r.contype = 'f' ([]) [] []
|
|
32279
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32280
|
+ pg_index.indkey, pg_index.indrelid
|
|
32281
|
+ FROM pg_class, pg_index
|
|
32282
|
+ WHERE oid IN (
|
|
32283
|
+ SELECT indexrelid
|
|
32284
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32285
|
+ WHERE sc.relname = 'elements_tag' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32286
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32287
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32288
|
+ WHERE attrelid=16429 AND attnum IN (1 ,2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32289
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32290
|
+ WHERE attrelid=16429 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32291
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32292
|
+ WHERE attrelid=16429 AND attnum IN (2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32293
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32294
|
+ a.attnum,
|
|
32295
|
+ a.attname AS field,
|
|
32296
|
+ t.typname AS type,
|
|
32297
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32298
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32299
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32300
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32301
|
+ a.attnotnull AS isnotnull,
|
|
32302
|
+ (SELECT 't'
|
|
32303
|
+ FROM pg_index
|
|
32304
|
+ WHERE c.oid = pg_index.indrelid
|
|
32305
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32306
|
+ AND pg_index.indisprimary = 't'
|
|
32307
|
+ ) AS pri,
|
|
32308
|
+ (SELECT pg_attrdef.adsrc
|
|
32309
|
+ FROM pg_attrdef
|
|
32310
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32311
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32312
|
+ ) AS default,
|
|
32313
|
+ (SELECT pg_description.description
|
|
32314
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32315
|
+ ) AS comment
|
|
32316
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32317
|
+ WHERE c.relname = 'users_tags_favorites'
|
|
32318
|
+ AND a.attnum > 0
|
|
32319
|
+ AND a.attrelid = c.oid
|
|
32320
|
+ AND a.atttypid = t.oid
|
|
32321
|
+ AND n.oid = c.relnamespace
|
|
32322
|
+ ORDER BY a.attnum ([]) [] []
|
|
32323
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32324
|
+ FROM pg_catalog.pg_constraint r
|
|
32325
|
+ WHERE r.conrelid =
|
|
32326
|
+ (
|
|
32327
|
+ SELECT c.oid
|
|
32328
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32329
|
+ WHERE c.relname = 'users_tags_favorites'
|
|
32330
|
+ AND n.oid = c.relnamespace
|
|
32331
|
+ )
|
|
32332
|
+ AND r.contype = 'f' ([]) [] []
|
|
32333
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32334
|
+ pg_index.indkey, pg_index.indrelid
|
|
32335
|
+ FROM pg_class, pg_index
|
|
32336
|
+ WHERE oid IN (
|
|
32337
|
+ SELECT indexrelid
|
|
32338
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32339
|
+ WHERE sc.relname = 'users_tags_favorites' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32340
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32341
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32342
|
+ WHERE attrelid=16495 AND attnum IN (6 ) ORDER BY attnum ASC; ([]) [] []
|
|
32343
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32344
|
+ WHERE attrelid=16495 AND attnum IN (5 ) ORDER BY attnum ASC; ([]) [] []
|
|
32345
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32346
|
+ WHERE attrelid=16495 AND attnum IN (3 ) ORDER BY attnum ASC; ([]) [] []
|
|
32347
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32348
|
+ a.attnum,
|
|
32349
|
+ a.attname AS field,
|
|
32350
|
+ t.typname AS type,
|
|
32351
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32352
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32353
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32354
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32355
|
+ a.attnotnull AS isnotnull,
|
|
32356
|
+ (SELECT 't'
|
|
32357
|
+ FROM pg_index
|
|
32358
|
+ WHERE c.oid = pg_index.indrelid
|
|
32359
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32360
|
+ AND pg_index.indisprimary = 't'
|
|
32361
|
+ ) AS pri,
|
|
32362
|
+ (SELECT pg_attrdef.adsrc
|
|
32363
|
+ FROM pg_attrdef
|
|
32364
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32365
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32366
|
+ ) AS default,
|
|
32367
|
+ (SELECT pg_description.description
|
|
32368
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32369
|
+ ) AS comment
|
|
32370
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32371
|
+ WHERE c.relname = 'users_elements_favorites'
|
|
32372
|
+ AND a.attnum > 0
|
|
32373
|
+ AND a.attrelid = c.oid
|
|
32374
|
+ AND a.atttypid = t.oid
|
|
32375
|
+ AND n.oid = c.relnamespace
|
|
32376
|
+ ORDER BY a.attnum ([]) [] []
|
|
32377
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32378
|
+ FROM pg_catalog.pg_constraint r
|
|
32379
|
+ WHERE r.conrelid =
|
|
32380
|
+ (
|
|
32381
|
+ SELECT c.oid
|
|
32382
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32383
|
+ WHERE c.relname = 'users_elements_favorites'
|
|
32384
|
+ AND n.oid = c.relnamespace
|
|
32385
|
+ )
|
|
32386
|
+ AND r.contype = 'f' ([]) [] []
|
|
32387
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32388
|
+ pg_index.indkey, pg_index.indrelid
|
|
32389
|
+ FROM pg_class, pg_index
|
|
32390
|
+ WHERE oid IN (
|
|
32391
|
+ SELECT indexrelid
|
|
32392
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32393
|
+ WHERE sc.relname = 'users_elements_favorites' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32394
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32395
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32396
|
+ WHERE attrelid=16642 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32397
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32398
|
+ WHERE attrelid=16642 AND attnum IN (2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32399
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32400
|
+ WHERE attrelid=16642 AND attnum IN (3 ) ORDER BY attnum ASC; ([]) [] []
|
|
32401
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32402
|
+ a.attnum,
|
|
32403
|
+ a.attname AS field,
|
|
32404
|
+ t.typname AS type,
|
|
32405
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32406
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32407
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32408
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32409
|
+ a.attnotnull AS isnotnull,
|
|
32410
|
+ (SELECT 't'
|
|
32411
|
+ FROM pg_index
|
|
32412
|
+ WHERE c.oid = pg_index.indrelid
|
|
32413
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32414
|
+ AND pg_index.indisprimary = 't'
|
|
32415
|
+ ) AS pri,
|
|
32416
|
+ (SELECT pg_attrdef.adsrc
|
|
32417
|
+ FROM pg_attrdef
|
|
32418
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32419
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32420
|
+ ) AS default,
|
|
32421
|
+ (SELECT pg_description.description
|
|
32422
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32423
|
+ ) AS comment
|
|
32424
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32425
|
+ WHERE c.relname = 'element'
|
|
32426
|
+ AND a.attnum > 0
|
|
32427
|
+ AND a.attrelid = c.oid
|
|
32428
|
+ AND a.atttypid = t.oid
|
|
32429
|
+ AND n.oid = c.relnamespace
|
|
32430
|
+ ORDER BY a.attnum ([]) [] []
|
|
32431
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32432
|
+ FROM pg_catalog.pg_constraint r
|
|
32433
|
+ WHERE r.conrelid =
|
|
32434
|
+ (
|
|
32435
|
+ SELECT c.oid
|
|
32436
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32437
|
+ WHERE c.relname = 'element'
|
|
32438
|
+ AND n.oid = c.relnamespace
|
|
32439
|
+ )
|
|
32440
|
+ AND r.contype = 'f' ([]) [] []
|
|
32441
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32442
|
+ pg_index.indkey, pg_index.indrelid
|
|
32443
|
+ FROM pg_class, pg_index
|
|
32444
|
+ WHERE oid IN (
|
|
32445
|
+ SELECT indexrelid
|
|
32446
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32447
|
+ WHERE sc.relname = 'element' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32448
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32449
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32450
|
+ WHERE attrelid=16405 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32451
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32452
|
+ WHERE attrelid=16405 AND attnum IN (2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32453
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32454
|
+ WHERE attrelid=16405 AND attnum IN (6 ) ORDER BY attnum ASC; ([]) [] []
|
|
32455
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32456
|
+ c.relname, n.nspname AS schemaname
|
|
32457
|
+ FROM
|
|
32458
|
+ pg_class c, pg_namespace n
|
|
32459
|
+ WHERE relkind = 'S' AND n.oid = c.relnamespace AND
|
|
32460
|
+ (n.nspname NOT LIKE 'pg_%' AND n.nspname != 'information_schema') ([]) [] []
|
|
32461
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM product_id_seq ([]) [] []
|
|
32462
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM element_id_seq ([]) [] []
|
|
32463
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM tag_id_seq ([]) [] []
|
|
32464
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM user_id_seq ([]) [] []
|
|
32465
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM muzich_user_id_seq ([]) [] []
|
|
32466
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM users_elements_favorites_id_seq ([]) [] []
|
|
32467
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT min_value, increment_by FROM users_tags_favorites_id_seq ([]) [] []
|
|
32468
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT tablename AS table_name, schemaname AS schema_name
|
|
32469
|
+ FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' AND schemaname != 'information_schema' ([]) [] []
|
|
32470
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32471
|
+ a.attnum,
|
|
32472
|
+ a.attname AS field,
|
|
32473
|
+ t.typname AS type,
|
|
32474
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32475
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32476
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32477
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32478
|
+ a.attnotnull AS isnotnull,
|
|
32479
|
+ (SELECT 't'
|
|
32480
|
+ FROM pg_index
|
|
32481
|
+ WHERE c.oid = pg_index.indrelid
|
|
32482
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32483
|
+ AND pg_index.indisprimary = 't'
|
|
32484
|
+ ) AS pri,
|
|
32485
|
+ (SELECT pg_attrdef.adsrc
|
|
32486
|
+ FROM pg_attrdef
|
|
32487
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32488
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32489
|
+ ) AS default,
|
|
32490
|
+ (SELECT pg_description.description
|
|
32491
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32492
|
+ ) AS comment
|
|
32493
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32494
|
+ WHERE c.relname = 'product'
|
|
32495
|
+ AND a.attnum > 0
|
|
32496
|
+ AND a.attrelid = c.oid
|
|
32497
|
+ AND a.atttypid = t.oid
|
|
32498
|
+ AND n.oid = c.relnamespace
|
|
32499
|
+ ORDER BY a.attnum ([]) [] []
|
|
32500
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32501
|
+ FROM pg_catalog.pg_constraint r
|
|
32502
|
+ WHERE r.conrelid =
|
|
32503
|
+ (
|
|
32504
|
+ SELECT c.oid
|
|
32505
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32506
|
+ WHERE c.relname = 'product'
|
|
32507
|
+ AND n.oid = c.relnamespace
|
|
32508
|
+ )
|
|
32509
|
+ AND r.contype = 'f' ([]) [] []
|
|
32510
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32511
|
+ pg_index.indkey, pg_index.indrelid
|
|
32512
|
+ FROM pg_class, pg_index
|
|
32513
|
+ WHERE oid IN (
|
|
32514
|
+ SELECT indexrelid
|
|
32515
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32516
|
+ WHERE sc.relname = 'product' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32517
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32518
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32519
|
+ WHERE attrelid=16390 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32520
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32521
|
+ a.attnum,
|
|
32522
|
+ a.attname AS field,
|
|
32523
|
+ t.typname AS type,
|
|
32524
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32525
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32526
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32527
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32528
|
+ a.attnotnull AS isnotnull,
|
|
32529
|
+ (SELECT 't'
|
|
32530
|
+ FROM pg_index
|
|
32531
|
+ WHERE c.oid = pg_index.indrelid
|
|
32532
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32533
|
+ AND pg_index.indisprimary = 't'
|
|
32534
|
+ ) AS pri,
|
|
32535
|
+ (SELECT pg_attrdef.adsrc
|
|
32536
|
+ FROM pg_attrdef
|
|
32537
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32538
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32539
|
+ ) AS default,
|
|
32540
|
+ (SELECT pg_description.description
|
|
32541
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32542
|
+ ) AS comment
|
|
32543
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32544
|
+ WHERE c.relname = 'element_type'
|
|
32545
|
+ AND a.attnum > 0
|
|
32546
|
+ AND a.attrelid = c.oid
|
|
32547
|
+ AND a.atttypid = t.oid
|
|
32548
|
+ AND n.oid = c.relnamespace
|
|
32549
|
+ ORDER BY a.attnum ([]) [] []
|
|
32550
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32551
|
+ FROM pg_catalog.pg_constraint r
|
|
32552
|
+ WHERE r.conrelid =
|
|
32553
|
+ (
|
|
32554
|
+ SELECT c.oid
|
|
32555
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32556
|
+ WHERE c.relname = 'element_type'
|
|
32557
|
+ AND n.oid = c.relnamespace
|
|
32558
|
+ )
|
|
32559
|
+ AND r.contype = 'f' ([]) [] []
|
|
32560
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32561
|
+ pg_index.indkey, pg_index.indrelid
|
|
32562
|
+ FROM pg_class, pg_index
|
|
32563
|
+ WHERE oid IN (
|
|
32564
|
+ SELECT indexrelid
|
|
32565
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32566
|
+ WHERE sc.relname = 'element_type' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32567
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32568
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32569
|
+ WHERE attrelid=16400 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32570
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32571
|
+ a.attnum,
|
|
32572
|
+ a.attname AS field,
|
|
32573
|
+ t.typname AS type,
|
|
32574
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32575
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32576
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32577
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32578
|
+ a.attnotnull AS isnotnull,
|
|
32579
|
+ (SELECT 't'
|
|
32580
|
+ FROM pg_index
|
|
32581
|
+ WHERE c.oid = pg_index.indrelid
|
|
32582
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32583
|
+ AND pg_index.indisprimary = 't'
|
|
32584
|
+ ) AS pri,
|
|
32585
|
+ (SELECT pg_attrdef.adsrc
|
|
32586
|
+ FROM pg_attrdef
|
|
32587
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32588
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32589
|
+ ) AS default,
|
|
32590
|
+ (SELECT pg_description.description
|
|
32591
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32592
|
+ ) AS comment
|
|
32593
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32594
|
+ WHERE c.relname = 'muzich_user'
|
|
32595
|
+ AND a.attnum > 0
|
|
32596
|
+ AND a.attrelid = c.oid
|
|
32597
|
+ AND a.atttypid = t.oid
|
|
32598
|
+ AND n.oid = c.relnamespace
|
|
32599
|
+ ORDER BY a.attnum ([]) [] []
|
|
32600
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32601
|
+ FROM pg_catalog.pg_constraint r
|
|
32602
|
+ WHERE r.conrelid =
|
|
32603
|
+ (
|
|
32604
|
+ SELECT c.oid
|
|
32605
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32606
|
+ WHERE c.relname = 'muzich_user'
|
|
32607
|
+ AND n.oid = c.relnamespace
|
|
32608
|
+ )
|
|
32609
|
+ AND r.contype = 'f' ([]) [] []
|
|
32610
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32611
|
+ pg_index.indkey, pg_index.indrelid
|
|
32612
|
+ FROM pg_class, pg_index
|
|
32613
|
+ WHERE oid IN (
|
|
32614
|
+ SELECT indexrelid
|
|
32615
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32616
|
+ WHERE sc.relname = 'muzich_user' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32617
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32618
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32619
|
+ WHERE attrelid=16451 AND attnum IN (5 ) ORDER BY attnum ASC; ([]) [] []
|
|
32620
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32621
|
+ WHERE attrelid=16451 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32622
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32623
|
+ WHERE attrelid=16451 AND attnum IN (3 ) ORDER BY attnum ASC; ([]) [] []
|
|
32624
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32625
|
+ a.attnum,
|
|
32626
|
+ a.attname AS field,
|
|
32627
|
+ t.typname AS type,
|
|
32628
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32629
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32630
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32631
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32632
|
+ a.attnotnull AS isnotnull,
|
|
32633
|
+ (SELECT 't'
|
|
32634
|
+ FROM pg_index
|
|
32635
|
+ WHERE c.oid = pg_index.indrelid
|
|
32636
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32637
|
+ AND pg_index.indisprimary = 't'
|
|
32638
|
+ ) AS pri,
|
|
32639
|
+ (SELECT pg_attrdef.adsrc
|
|
32640
|
+ FROM pg_attrdef
|
|
32641
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32642
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32643
|
+ ) AS default,
|
|
32644
|
+ (SELECT pg_description.description
|
|
32645
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32646
|
+ ) AS comment
|
|
32647
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32648
|
+ WHERE c.relname = 'tag'
|
|
32649
|
+ AND a.attnum > 0
|
|
32650
|
+ AND a.attrelid = c.oid
|
|
32651
|
+ AND a.atttypid = t.oid
|
|
32652
|
+ AND n.oid = c.relnamespace
|
|
32653
|
+ ORDER BY a.attnum ([]) [] []
|
|
32654
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32655
|
+ FROM pg_catalog.pg_constraint r
|
|
32656
|
+ WHERE r.conrelid =
|
|
32657
|
+ (
|
|
32658
|
+ SELECT c.oid
|
|
32659
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32660
|
+ WHERE c.relname = 'tag'
|
|
32661
|
+ AND n.oid = c.relnamespace
|
|
32662
|
+ )
|
|
32663
|
+ AND r.contype = 'f' ([]) [] []
|
|
32664
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32665
|
+ pg_index.indkey, pg_index.indrelid
|
|
32666
|
+ FROM pg_class, pg_index
|
|
32667
|
+ WHERE oid IN (
|
|
32668
|
+ SELECT indexrelid
|
|
32669
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32670
|
+ WHERE sc.relname = 'tag' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32671
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32672
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32673
|
+ WHERE attrelid=16424 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32674
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32675
|
+ a.attnum,
|
|
32676
|
+ a.attname AS field,
|
|
32677
|
+ t.typname AS type,
|
|
32678
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32679
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32680
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32681
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32682
|
+ a.attnotnull AS isnotnull,
|
|
32683
|
+ (SELECT 't'
|
|
32684
|
+ FROM pg_index
|
|
32685
|
+ WHERE c.oid = pg_index.indrelid
|
|
32686
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32687
|
+ AND pg_index.indisprimary = 't'
|
|
32688
|
+ ) AS pri,
|
|
32689
|
+ (SELECT pg_attrdef.adsrc
|
|
32690
|
+ FROM pg_attrdef
|
|
32691
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32692
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32693
|
+ ) AS default,
|
|
32694
|
+ (SELECT pg_description.description
|
|
32695
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32696
|
+ ) AS comment
|
|
32697
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32698
|
+ WHERE c.relname = 'elements_tag'
|
|
32699
|
+ AND a.attnum > 0
|
|
32700
|
+ AND a.attrelid = c.oid
|
|
32701
|
+ AND a.atttypid = t.oid
|
|
32702
|
+ AND n.oid = c.relnamespace
|
|
32703
|
+ ORDER BY a.attnum ([]) [] []
|
|
32704
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32705
|
+ FROM pg_catalog.pg_constraint r
|
|
32706
|
+ WHERE r.conrelid =
|
|
32707
|
+ (
|
|
32708
|
+ SELECT c.oid
|
|
32709
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32710
|
+ WHERE c.relname = 'elements_tag'
|
|
32711
|
+ AND n.oid = c.relnamespace
|
|
32712
|
+ )
|
|
32713
|
+ AND r.contype = 'f' ([]) [] []
|
|
32714
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32715
|
+ pg_index.indkey, pg_index.indrelid
|
|
32716
|
+ FROM pg_class, pg_index
|
|
32717
|
+ WHERE oid IN (
|
|
32718
|
+ SELECT indexrelid
|
|
32719
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32720
|
+ WHERE sc.relname = 'elements_tag' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32721
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32722
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32723
|
+ WHERE attrelid=16429 AND attnum IN (1 ,2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32724
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32725
|
+ WHERE attrelid=16429 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32726
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32727
|
+ WHERE attrelid=16429 AND attnum IN (2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32728
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32729
|
+ a.attnum,
|
|
32730
|
+ a.attname AS field,
|
|
32731
|
+ t.typname AS type,
|
|
32732
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32733
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32734
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32735
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32736
|
+ a.attnotnull AS isnotnull,
|
|
32737
|
+ (SELECT 't'
|
|
32738
|
+ FROM pg_index
|
|
32739
|
+ WHERE c.oid = pg_index.indrelid
|
|
32740
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32741
|
+ AND pg_index.indisprimary = 't'
|
|
32742
|
+ ) AS pri,
|
|
32743
|
+ (SELECT pg_attrdef.adsrc
|
|
32744
|
+ FROM pg_attrdef
|
|
32745
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32746
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32747
|
+ ) AS default,
|
|
32748
|
+ (SELECT pg_description.description
|
|
32749
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32750
|
+ ) AS comment
|
|
32751
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32752
|
+ WHERE c.relname = 'users_tags_favorites'
|
|
32753
|
+ AND a.attnum > 0
|
|
32754
|
+ AND a.attrelid = c.oid
|
|
32755
|
+ AND a.atttypid = t.oid
|
|
32756
|
+ AND n.oid = c.relnamespace
|
|
32757
|
+ ORDER BY a.attnum ([]) [] []
|
|
32758
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32759
|
+ FROM pg_catalog.pg_constraint r
|
|
32760
|
+ WHERE r.conrelid =
|
|
32761
|
+ (
|
|
32762
|
+ SELECT c.oid
|
|
32763
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32764
|
+ WHERE c.relname = 'users_tags_favorites'
|
|
32765
|
+ AND n.oid = c.relnamespace
|
|
32766
|
+ )
|
|
32767
|
+ AND r.contype = 'f' ([]) [] []
|
|
32768
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32769
|
+ pg_index.indkey, pg_index.indrelid
|
|
32770
|
+ FROM pg_class, pg_index
|
|
32771
|
+ WHERE oid IN (
|
|
32772
|
+ SELECT indexrelid
|
|
32773
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32774
|
+ WHERE sc.relname = 'users_tags_favorites' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32775
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32776
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32777
|
+ WHERE attrelid=16495 AND attnum IN (6 ) ORDER BY attnum ASC; ([]) [] []
|
|
32778
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32779
|
+ WHERE attrelid=16495 AND attnum IN (5 ) ORDER BY attnum ASC; ([]) [] []
|
|
32780
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32781
|
+ WHERE attrelid=16495 AND attnum IN (3 ) ORDER BY attnum ASC; ([]) [] []
|
|
32782
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32783
|
+ a.attnum,
|
|
32784
|
+ a.attname AS field,
|
|
32785
|
+ t.typname AS type,
|
|
32786
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32787
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32788
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32789
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32790
|
+ a.attnotnull AS isnotnull,
|
|
32791
|
+ (SELECT 't'
|
|
32792
|
+ FROM pg_index
|
|
32793
|
+ WHERE c.oid = pg_index.indrelid
|
|
32794
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32795
|
+ AND pg_index.indisprimary = 't'
|
|
32796
|
+ ) AS pri,
|
|
32797
|
+ (SELECT pg_attrdef.adsrc
|
|
32798
|
+ FROM pg_attrdef
|
|
32799
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32800
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32801
|
+ ) AS default,
|
|
32802
|
+ (SELECT pg_description.description
|
|
32803
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32804
|
+ ) AS comment
|
|
32805
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32806
|
+ WHERE c.relname = 'users_elements_favorites'
|
|
32807
|
+ AND a.attnum > 0
|
|
32808
|
+ AND a.attrelid = c.oid
|
|
32809
|
+ AND a.atttypid = t.oid
|
|
32810
|
+ AND n.oid = c.relnamespace
|
|
32811
|
+ ORDER BY a.attnum ([]) [] []
|
|
32812
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32813
|
+ FROM pg_catalog.pg_constraint r
|
|
32814
|
+ WHERE r.conrelid =
|
|
32815
|
+ (
|
|
32816
|
+ SELECT c.oid
|
|
32817
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32818
|
+ WHERE c.relname = 'users_elements_favorites'
|
|
32819
|
+ AND n.oid = c.relnamespace
|
|
32820
|
+ )
|
|
32821
|
+ AND r.contype = 'f' ([]) [] []
|
|
32822
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32823
|
+ pg_index.indkey, pg_index.indrelid
|
|
32824
|
+ FROM pg_class, pg_index
|
|
32825
|
+ WHERE oid IN (
|
|
32826
|
+ SELECT indexrelid
|
|
32827
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32828
|
+ WHERE sc.relname = 'users_elements_favorites' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32829
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32830
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32831
|
+ WHERE attrelid=16642 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32832
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32833
|
+ WHERE attrelid=16642 AND attnum IN (2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32834
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32835
|
+ WHERE attrelid=16642 AND attnum IN (3 ) ORDER BY attnum ASC; ([]) [] []
|
|
32836
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT
|
|
32837
|
+ a.attnum,
|
|
32838
|
+ a.attname AS field,
|
|
32839
|
+ t.typname AS type,
|
|
32840
|
+ format_type(a.atttypid, a.atttypmod) AS complete_type,
|
|
32841
|
+ (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
|
|
32842
|
+ (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM pg_catalog.pg_type t2
|
|
32843
|
+ WHERE t2.typtype = 'd' AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,
|
|
32844
|
+ a.attnotnull AS isnotnull,
|
|
32845
|
+ (SELECT 't'
|
|
32846
|
+ FROM pg_index
|
|
32847
|
+ WHERE c.oid = pg_index.indrelid
|
|
32848
|
+ AND pg_index.indkey[0] = a.attnum
|
|
32849
|
+ AND pg_index.indisprimary = 't'
|
|
32850
|
+ ) AS pri,
|
|
32851
|
+ (SELECT pg_attrdef.adsrc
|
|
32852
|
+ FROM pg_attrdef
|
|
32853
|
+ WHERE c.oid = pg_attrdef.adrelid
|
|
32854
|
+ AND pg_attrdef.adnum=a.attnum
|
|
32855
|
+ ) AS default,
|
|
32856
|
+ (SELECT pg_description.description
|
|
32857
|
+ FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
|
|
32858
|
+ ) AS comment
|
|
32859
|
+ FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
|
|
32860
|
+ WHERE c.relname = 'element'
|
|
32861
|
+ AND a.attnum > 0
|
|
32862
|
+ AND a.attrelid = c.oid
|
|
32863
|
+ AND a.atttypid = t.oid
|
|
32864
|
+ AND n.oid = c.relnamespace
|
|
32865
|
+ ORDER BY a.attnum ([]) [] []
|
|
32866
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef
|
|
32867
|
+ FROM pg_catalog.pg_constraint r
|
|
32868
|
+ WHERE r.conrelid =
|
|
32869
|
+ (
|
|
32870
|
+ SELECT c.oid
|
|
32871
|
+ FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
|
|
32872
|
+ WHERE c.relname = 'element'
|
|
32873
|
+ AND n.oid = c.relnamespace
|
|
32874
|
+ )
|
|
32875
|
+ AND r.contype = 'f' ([]) [] []
|
|
32876
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT relname, pg_index.indisunique, pg_index.indisprimary,
|
|
32877
|
+ pg_index.indkey, pg_index.indrelid
|
|
32878
|
+ FROM pg_class, pg_index
|
|
32879
|
+ WHERE oid IN (
|
|
32880
|
+ SELECT indexrelid
|
|
32881
|
+ FROM pg_index si, pg_class sc, pg_namespace sn
|
|
32882
|
+ WHERE sc.relname = 'element' AND sc.oid=si.indrelid AND sc.relnamespace = sn.oid
|
|
32883
|
+ ) AND pg_index.indexrelid = oid ([]) [] []
|
|
32884
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32885
|
+ WHERE attrelid=16405 AND attnum IN (1 ) ORDER BY attnum ASC; ([]) [] []
|
|
32886
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32887
|
+ WHERE attrelid=16405 AND attnum IN (2 ) ORDER BY attnum ASC; ([]) [] []
|
|
32888
|
+[2011-09-08 21:33:18] doctrine.DEBUG: SELECT attnum, attname FROM pg_attribute
|
|
32889
|
+ WHERE attrelid=16405 AND attnum IN (6 ) ORDER BY attnum ASC; ([]) [] []
|
|
32890
|
+[2011-09-08 21:33:19] doctrine.DEBUG: CREATE SEQUENCE follow_user_id_seq INCREMENT BY 1 MINVALUE 1 START 1 ([]) [] []
|
|
32891
|
+[2011-09-08 21:33:19] doctrine.DEBUG: CREATE TABLE follow_user (id INT NOT NULL, follower_id INT DEFAULT NULL, followed_id INT DEFAULT NULL, PRIMARY KEY(id)) ([]) [] []
|
|
32892
|
+[2011-09-08 21:33:19] doctrine.DEBUG: CREATE INDEX IDX_B3542514AC24F853 ON follow_user (follower_id) ([]) [] []
|
|
32893
|
+[2011-09-08 21:33:19] doctrine.DEBUG: CREATE INDEX IDX_B3542514D956F010 ON follow_user (followed_id) ([]) [] []
|
|
32894
|
+[2011-09-08 21:33:19] doctrine.DEBUG: ALTER TABLE follow_user ADD CONSTRAINT FK_B3542514AC24F853 FOREIGN KEY (follower_id) REFERENCES muzich_user(id) NOT DEFERRABLE INITIALLY IMMEDIATE ([]) [] []
|
|
32895
|
+[2011-09-08 21:33:19] doctrine.DEBUG: ALTER TABLE follow_user ADD CONSTRAINT FK_B3542514D956F010 FOREIGN KEY (followed_id) REFERENCES muzich_user(id) NOT DEFERRABLE INITIALLY IMMEDIATE ([]) [] []
|
|
32896
|
+[2011-09-08 21:33:19] doctrine.DEBUG: ALTER TABLE muzich_user ALTER roles TYPE TEXT ([]) [] []
|