15:57:54.108 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
15:57:54.108 | trace | yii\base\Module::getModule | Loading module: debug |
15:57:54.108 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
15:57:54.108 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
15:57:54.108 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
15:57:54.108 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.109 | trace | yii\base\Module::getModule | Loading module: gii |
15:57:54.109 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
15:57:54.109 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
15:57:54.109 | trace | yii\web\Application::handleRequest | Route requested: 'vue/reimbursement/delete' |
15:57:54.109 | trace | yii\base\Module::getModule | Loading module: vue |
15:57:54.109 | info | yii\web\Session::open | Session started |
15:57:54.110 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
15:57:54.110 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
15:57:54.114 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.114 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:54.114 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.115 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:54.115 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:57:54.116 | trace | yii\base\Controller::runAction | Route to run: vue/reimbursement/delete |
15:57:54.117 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.118 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
15:57:54.118 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ReimbursementController::actionDelete() |
15:57:54.118 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "id"='7938' |
15:57:54.118 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.119 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:54.119 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE "reimbursement_id"=7938 |
15:57:54.120 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.120 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:54.121 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.121 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.122 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_comments" WHERE ("object_id"=7389) AND ("object_type"=20018) |
15:57:54.188 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_id"=7389) AND ("object_type"=20018) |
15:57:54.200 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_visit_object_histories" WHERE ("object_id"=7389) AND ("object_type"=20018) |
15:57:54.200 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.200 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:54.201 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_object_change_logs" SET "is_delete"=TRUE WHERE (("object_id"=7389) AND ("object_type"=20018)) OR (("target_id"=7389) AND ("target_object_type"=20018)) |
15:57:54.291 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_cash_cost_tickets" SET "status"=6 WHERE "id"=7389 |
15:57:54.292 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.292 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:54.293 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpCashCostTickets', 7389, 'a:1:{s:6:"status";i:6;}', '', 1001, '114.244.128.96') |
15:57:54.294 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE "id"=7389 |
15:57:54.294 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" WHERE "erp_cash_cost_ticket_id"=7389 ORDER BY "id" |
15:57:54.296 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_purchase_contract_settles" WHERE "erp_cash_cost_ticket_id"=7389 ORDER BY "id" |
15:57:54.298 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_cash_cost_tickets" SET "is_payment_settle"=TRUE WHERE "id"=7389 |
15:57:54.299 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpCashCostTickets', 7389, 'a:0:{}', '', 1001, '114.244.128.96') |
15:57:54.300 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_bank_outs" WHERE "erp_cash_cost_ticket_id"=7389 ORDER BY "id" |
15:57:54.301 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_approve_payment_settles" WHERE "erp_cash_cost_ticket_id"=7389 ORDER BY "id" |
15:57:54.303 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20031) AND ("object_id"=7389) |
15:57:54.305 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20032) AND ("object_id"=7389) |
15:57:54.307 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_comments" WHERE ("object_id"=7389) AND ("object_type"=20018) |
15:57:54.320 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_id"=7389) AND ("object_type"=20018) |
15:57:54.332 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE "id"=7389 |
15:57:54.344 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('DELETE', 'app\models\ErpCashCostTickets', 7389, '', '', 1001, '114.244.128.96') |
15:57:54.345 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:54.345 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:54.345 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=149 |
15:57:54.375 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=149 |
15:57:54.379 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=149) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
15:57:55.268 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:55.268 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_client_am_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:57:55.289 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_client_am_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:57:55.300 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:55.300 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:57:55.300 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (149, 1005, 'now()', NULL) RETURNING "id" |
15:57:55.304 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 180894, 'a:5:{s:2:"id";i:180894;s:9:"client_id";i:149;s:9:"sales_rep";i:1005;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '114.244.128.96') |
15:57:55.305 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 149, 'a:0:{}', '', 1001, '114.244.128.96') |
15:57:55.306 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=7938 |
15:57:55.306 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=15) AND ("id" IN (184, 349)) |
15:57:55.307 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:55.307 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:55.307 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:57:55.308 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (3, 'delete', 149, 10, 7938, 20, 1001, '[7938]', '[7938]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}') RETURNING "id" |
15:57:55.309 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 570685, 'a:13:{s:2:"id";i:570685;s:9:"object_id";i:149;s:11:"object_type";i:10;s:9:"target_id";i:7938;s:18:"target_object_type";i:20;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:6:"[7938]";s:9:"new_value";s:6:"[7938]";s:11:"description";s:113:"{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.244.128.96') |
15:57:55.310 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:55.310 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:55.310 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3716 |
15:57:55.315 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=3716 |
15:57:55.320 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3716) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
15:57:55.329 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:55.329 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_project_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:57:55.333 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_project_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:57:55.339 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:55.340 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:57:55.340 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3716, 'a:0:{}', '', 1001, '114.244.128.96') |
15:57:55.341 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=149 |
15:57:55.342 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:57:55.343 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (3, 'delete', 3716, 1, 7938, 20, 1001, '[7938]', '[7938]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}') RETURNING "id" |
15:57:55.344 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 570686, 'a:13:{s:2:"id";i:570686;s:9:"object_id";i:3716;s:11:"object_type";i:1;s:9:"target_id";i:7938;s:18:"target_object_type";i:20;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:6:"[7938]";s:9:"new_value";s:6:"[7938]";s:11:"description";s:113:"{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.244.128.96') |
15:57:55.345 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3716 |
15:57:55.346 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=149 |
15:57:55.346 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:57:55.349 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:55.349 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_user_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:57:55.352 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_user_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:57:55.358 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:55.358 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:57:55.358 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (3, 'delete', 3716, 1, 7938, 20, 1001, '7938', '7938', array[1005], '{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}') RETURNING "id" |
15:57:55.366 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 157277, 'a:15:{s:2:"id";i:157277;s:9:"object_id";i:3716;s:11:"object_type";i:1;s:9:"target_id";i:7938;s:18:"target_object_type";i:20;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:4:"7938";s:9:"new_value";s:4:"7938";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1005]";s:6:"params";a:0:{}}s:11:"description";s:113:"{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1001, '114.244.128.96') |
15:57:55.366 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:57:55.367 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (3, 'delete', 6904, 5, 7938, 20, 1001, '[7938]', '[7938]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}') RETURNING "id" |
15:57:55.368 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 570687, 'a:13:{s:2:"id";i:570687;s:9:"object_id";i:6904;s:11:"object_type";i:5;s:9:"target_id";i:7938;s:18:"target_object_type";i:20;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:6:"[7938]";s:9:"new_value";s:6:"[7938]";s:11:"description";s:113:"{"d1":"\u5218\u4eba\u8bda","d2":"\u5220\u9664\u4e86","d3":"\u8d39\u7528\u62a5\u9500","d4":["\u4ea4\u901a\u8d39"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.244.128.96') |
15:57:55.369 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_comments" WHERE ("object_id"=7938) AND ("object_type"=20) |
15:57:55.570 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_id"=7938) AND ("object_type"=20) |
15:57:55.582 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_visit_object_histories" WHERE ("object_id"=7938) AND ("object_type"=20) |
15:57:55.582 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_object_change_logs" SET "is_delete"=TRUE WHERE (("object_id"=7938) AND ("object_type"=20)) OR (("target_id"=7938) AND ("target_object_type"=20)) |
15:57:55.674 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=7938) AND ("term_id"=15) |
15:57:55.675 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=7938) AND ("object_type"=7) |
15:57:55.676 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=19) AND ("object_id"=7938) |
15:57:55.678 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=22) AND ("object_id"=7938) |
15:57:55.680 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_comments" WHERE ("object_id"=7938) AND ("object_type"=20) |
15:57:55.694 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_id"=7938) AND ("object_type"=20) |
15:57:55.705 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_reimbursements" WHERE "id"=7938 |
15:57:55.713 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('DELETE', 'app\models\Reimbursements', 7938, '', '', 1001, '114.244.128.96') |
15:57:55.714 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:55.714 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:57:55.714 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/reimbursement/delete', '{"id":"7938","web_access_token":"Hlt1ZmLXNhK2kSIyrIUGksUdIH0iseH7"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u62a5\u9500\u5df2\u88ab\u6210\u529f\u5220\u9664","error":""}],"mod":0}', FALSE, '2025-09-17 15:57:55') RETURNING "id" |
15:57:55.715 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:57:55.715 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |