14:07:28.329 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
14:07:28.329 | trace | yii\base\Module::getModule | Loading module: debug |
14:07:28.329 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
14:07:28.329 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
14:07:28.329 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
14:07:28.329 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.330 | trace | yii\base\Module::getModule | Loading module: gii |
14:07:28.330 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
14:07:28.330 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
14:07:28.330 | trace | yii\web\Application::handleRequest | Route requested: 'v2/work-log/save-new' |
14:07:28.330 | trace | yii\base\Module::getModule | Loading module: v2 |
14:07:28.330 | info | yii\web\Session::open | Session started |
14:07:28.331 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
14:07:28.333 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='J6r5ayQCjcEIGs4KLBJLDPH45YZsr80L' |
14:07:28.335 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.336 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.336 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.336 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.336 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
14:07:28.338 | trace | yii\base\Controller::runAction | Route to run: v2/work-log/save-new |
14:07:28.338 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.339 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
14:07:28.339 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\WorkLogController::actionSaveNew() |
14:07:28.339 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.339 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.339 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'form_workLogVerifyRels' in 'app\models\WorkLogs'. |
14:07:28.339 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'location_in_distance' in 'app\models\WorkLogs'. |
14:07:28.339 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'location_out_distance' in 'app\models\WorkLogs'. |
14:07:28.339 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'workLogContacts' in 'app\models\WorkLogs'. |
14:07:28.339 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.339 | 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_location'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.344 | 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_location'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.353 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.353 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.353 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_location" ("created_by", "address", "geolocation", "updated_at") VALUES (5016, '北京市海淀区蓝靛厂东路靠近北京世纪星豪酒店', '(116.2889778645833,39.9603271484375)', '2025-06-25 14:07') RETURNING "id" |
14:07:28.359 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.360 | 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_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.362 | 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_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.370 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.370 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.370 | 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\Location', 19214, 'a:6:{s:2:"id";i:19214;s:11:"geolocation";s:36:"(116.2889778645833,39.9603271484375)";s:10:"created_by";i:5016;s:7:"address";s:63:"北京市海淀区蓝靛厂东路靠近北京世纪星豪酒店";s:10:"created_at";N;s:10:"updated_at";s:19:"2025-06-25 14:07:00";}', '', 5016, '223.104.41.148') |
14:07:28.377 | 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\Location', 19214, 'a:0:{}', '', 5016, '223.104.41.148') |
14:07:28.378 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_location" ("created_by", "address", "geolocation", "updated_at") VALUES (5016, '北京市海淀区蓝靛厂东路靠近北京世纪星豪酒店', '(116.2890109592014,39.9603076171875)', '2025-06-25 14:07') RETURNING "id" |
14:07:28.379 | 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\Location', 19215, 'a:6:{s:2:"id";i:19215;s:11:"geolocation";s:36:"(116.2890109592014,39.9603076171875)";s:10:"created_by";i:5016;s:7:"address";s:63:"北京市海淀区蓝靛厂东路靠近北京世纪星豪酒店";s:10:"created_at";N;s:10:"updated_at";s:19:"2025-06-25 14:07:00";}', '', 5016, '223.104.41.148') |
14:07:28.380 | 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\Location', 19215, 'a:0:{}', '', 5016, '223.104.41.148') |
14:07:28.381 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
14:07:28.381 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3811') |
14:07:28.383 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"=19214) |
14:07:28.383 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"=19215) |
14:07:28.383 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5016') |
14:07:28.383 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"='73') |
14:07:28.384 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id"='1') |
14:07:28.384 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_work_logs" ("client_id", "created_by", "description", "end_at", "escort", "is_draft", "project_id", "scenario_id", "scenario_option_id", "start_at", "indistance", "outdistance", "status", "location_in_id", "location_out_id") VALUES (2815, 5016, '你才能吃', '2025-06-25 14:07:00', '经常不能吃', FALSE, 3811, 1, 73, '2025-06-25 14:07:00', 972.39862459923, 975.9396817684, 0, 19214, 19215) RETURNING "id" |
14:07:28.392 | 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\WorkLogs', 37026, 'a:19:{s:2:"id";i:37026;s:9:"client_id";s:4:"2815";s:11:"scenario_id";s:1:"1";s:18:"scenario_option_id";s:2:"73";s:6:"end_at";s:19:"2025-06-25 14:07:00";s:10:"created_by";s:4:"5016";s:10:"created_at";N;s:10:"updated_at";N;s:8:"start_at";s:19:"2025-06-25 14:07:00";s:11:"description";s:12:"你才能吃";s:6:"escort";s:15:"经常不能吃";s:8:"is_draft";s:1:"0";s:11:"location_id";N;s:10:"project_id";s:4:"3811";s:14:"location_in_id";i:19214;s:15:"location_out_id";i:19215;s:6:"status";i:0;s:10:"indistance";s:16:"972.398624599228";s:11:"outdistance";s:14:"975.9396817684";}', '', 5016, '223.104.41.148') |
14:07:28.393 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
14:07:28.399 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.399 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.400 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id"=37026) |
14:07:28.401 | info | yii\db\Command::query | SELECT "contact_id" FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id"=37026 |
14:07:28.403 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.403 | 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_work_log_contacts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.405 | 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_work_log_contacts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.414 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.414 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.414 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='5245') |
14:07:28.415 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37026) |
14:07:28.416 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_work_log_contacts" ("contact_id", "work_log_id") VALUES (5245, 37026) RETURNING "id" |
14:07:28.420 | 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\WorkLogContacts', 29489, 'a:3:{s:2:"id";i:29489;s:11:"work_log_id";i:37026;s:10:"contact_id";s:4:"5245";}', '', 5016, '223.104.41.148') |
14:07:28.420 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id"=37026 |
14:07:28.421 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.421 | 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_work_log_carbon_copy_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.424 | 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_work_log_carbon_copy_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.433 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.433 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.433 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_work_log_carbon_copy_rels" ("work_log_id", "user_id") VALUES (37026, 1000) |
14:07:28.436 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37026 |
14:07:28.437 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.437 | 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_work_log_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.439 | 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_work_log_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.448 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.448 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.448 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_work_log_verify_rels" ("work_log_id", "user_id", "status") VALUES (37026, 1000, 0) |
14:07:28.451 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37026 |
14:07:28.451 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id"=37026 |
14:07:28.452 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.453 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.454 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"='73' |
14:07:28.454 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.454 | 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_work_log_scenario_options'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.456 | 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_work_log_scenario_options'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.465 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.465 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.465 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.465 | 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_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.467 | 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_comments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.477 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.477 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.477 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37026 |
14:07:28.479 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016) |
14:07:28.479 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (5016, '19', 37026, '高郡阳新建了一条售后服务的工作日志', TRUE, '你才能吃') RETURNING "id" |
14:07:28.483 | 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\Comments', 170148, 'a:11:{s:2:"id";i:170148;s:9:"object_id";i:37026;s:11:"object_type";s:2:"19";s:6:"parent";N;s:11:"description";s:51:"高郡阳新建了一条售后服务的工作日志";s:10:"created_by";i:5016;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:12:"你才能吃";}', '', 5016, '223.104.41.148') |
14:07:28.484 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.484 | 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_unread_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.486 | 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_unread_comments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.495 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.495 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.495 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (37026, '19', 170148, 1000) |
14:07:28.500 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1000) AND ("id" != 5016) AND (channel_id IS NOT NULL) |
14:07:28.506 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:07:28.506 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:07:28.506 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:07:28.506 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37026 ORDER BY "id" |
14:07:28.507 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"=73 |
14:07:28.508 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37026 |
14:07:28.508 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016) |
14:07:28.509 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (5016, '19', 37026, '高郡阳有一条售后服务的工作日志需要审阅', TRUE, '你才能吃') RETURNING "id" |
14:07:28.510 | 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\Comments', 170149, 'a:11:{s:2:"id";i:170149;s:9:"object_id";i:37026;s:11:"object_type";s:2:"19";s:6:"parent";N;s:11:"description";s:57:"高郡阳有一条售后服务的工作日志需要审阅";s:10:"created_by";i:5016;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:12:"你才能吃";}', '', 5016, '223.104.41.148') |
14:07:28.510 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (37026, '19', 170149, 1000) |
14:07:28.511 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1000) AND ("id" != 5016) AND (channel_id IS NOT NULL) |
14:07:28.511 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37026 |
14:07:28.512 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
14:07:28.513 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.513 | 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_object_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.516 | 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_object_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.524 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.524 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.525 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 37026, 19, 5016, '2025-06-25 14:07:28', '{"id":37026,"client_id":2815,"scenario_id":1,"scenario_option_id":73,"end_at":"2025-06-25 14:07:00","created_by":5016,"created_at":"2025-06-25 14:07:28","updated_at":"2025-06-25 14:07:28","start_at":"2025-06-25 14:07:00","description":"\u4f60\u624d\u80fd\u5403","escort":"\u7ecf\u5e38\u4e0d\u80fd\u5403","is_draft":false,"location_id":null,"project_id":3811,"location_in_id":19214,"location_out_id":19215,"status":0,"indistance":972.39862459923,"outdistance":975.9396817684}', '{"id":37026,"client_id":2815,"scenario_id":1,"scenario_option_id":73,"end_at":"2025-06-25 14:07:00","created_by":5016,"created_at":"2025-06-25 14:07:28","updated_at":"2025-06-25 14:07:28","start_at":"2025-06-25 14:07:00","description":"\u4f60\u624d\u80fd\u5403","escort":"\u7ecf\u5e38\u4e0d\u80fd\u5403","is_draft":false,"location_id":null,"project_id":3811,"location_in_id":19214,"location_out_id":19215,"status":0,"indistance":972.39862459923,"outdistance":975.9396817684}', '{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":[]}') RETURNING "id" |
14:07:28.530 | 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', 509543, 'a:13:{s:2:"id";i:509543;s:9:"object_id";i:37026;s:11:"object_type";i:19;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:474:"{"id":37026,"client_id":2815,"scenario_id":1,"scenario_option_id":73,"end_at":"2025-06-25 14:07:00","created_by":5016,"created_at":"2025-06-25 14:07:28","updated_at":"2025-06-25 14:07:28","start_at":"2025-06-25 14:07:00","description":"\u4f60\u624d\u80fd\u5403","escort":"\u7ecf\u5e38\u4e0d\u80fd\u5403","is_draft":false,"location_id":null,"project_id":3811,"location_in_id":19214,"location_out_id":19215,"status":0,"indistance":972.39862459923,"outdistance":975.9396817684}";s:9:"new_value";s:474:"{"id":37026,"client_id":2815,"scenario_id":1,"scenario_option_id":73,"end_at":"2025-06-25 14:07:00","created_by":5016,"created_at":"2025-06-25 14:07:28","updated_at":"2025-06-25 14:07:28","start_at":"2025-06-25 14:07:00","description":"\u4f60\u624d\u80fd\u5403","escort":"\u7ecf\u5e38\u4e0d\u80fd\u5403","is_draft":false,"location_id":null,"project_id":3811,"location_in_id":19214,"location_out_id":19215,"status":0,"indistance":972.39862459923,"outdistance":975.9396817684}";s:11:"description";s:93:"{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":[]}";s:10:"created_by";i:5016;s:10:"created_at";s:19:"2025-06-25 14:07:28";s:9:"is_delete";N;}', '', 5016, '223.104.41.148') |
14:07:28.531 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
14:07:28.539 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2815 |
14:07:28.542 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:07:28.559 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.559 | 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; |
14:07:28.561 | 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 |
14:07:28.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.570 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id" |
14:07:28.576 | 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', 164986, 'a:5:{s:2:"id";i:164986;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5016, '223.104.41.148') |
14:07:28.576 | 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', 2815, 'a:0:{}', '', 5016, '223.104.41.148') |
14:07:28.577 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"=73 |
14:07:28.578 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
14:07:28.578 | 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 (1, 'create', 2815, 10, 37026, 19, 5016, '[37026]', '[37026]', '{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}') RETURNING "id" |
14:07:28.580 | 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', 509544, 'a:13:{s:2:"id";i:509544;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:37026;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[37026]";s:9:"new_value";s:7:"[37026]";s:11:"description";s:119:"{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}";s:10:"created_by";i:5016;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5016, '223.104.41.148') |
14:07:28.580 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
14:07:28.581 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
14:07:28.582 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.582 | 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; |
14:07:28.585 | 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 |
14:07:28.593 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.593 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.593 | 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 (1, 'create', 2815, 10, 37026, 19, 5016, '37026', '37026', array[1004,5016], '{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}') RETURNING "id" |
14:07:28.599 | 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', 136882, 'a:15:{s:2:"id";i:136882;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:37026;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"37026";s:9:"new_value";s:5:"37026";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:16:"array[1004,5016]";s:6:"params";a:0:{}}s:11:"description";s:119:"{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}";s:10:"created_by";i:5016;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 5016, '223.104.41.148') |
14:07:28.599 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.600 | 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_projects'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:07:28.603 | 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_projects'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:07:28.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.617 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3811 |
14:07:28.620 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=3811 |
14:07:28.621 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3811) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:07:28.629 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.629 | 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; |
14:07:28.631 | 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 |
14:07:28.639 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.639 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:07:28.639 | 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', 3811, 'a:0:{}', '', 5016, '223.104.41.148') |
14:07:28.640 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
14:07:28.641 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
14:07:28.641 | 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 (1, 'create', 3811, 1, 37026, 19, 5016, '[37026]', '[37026]', '{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}') RETURNING "id" |
14:07:28.642 | 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', 509545, 'a:13:{s:2:"id";i:509545;s:9:"object_id";i:3811;s:11:"object_type";i:1;s:9:"target_id";i:37026;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[37026]";s:9:"new_value";s:7:"[37026]";s:11:"description";s:119:"{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}";s:10:"created_by";i:5016;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5016, '223.104.41.148') |
14:07:28.643 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3811 |
14:07:28.643 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
14:07:28.644 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
14:07:28.644 | 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 (1, 'create', 3811, 1, 37026, 19, 5016, '37026', '37026', array[1004], '{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}') RETURNING "id" |
14:07:28.645 | 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', 136883, 'a:15:{s:2:"id";i:136883;s:9:"object_id";i:3811;s:11:"object_type";i:1;s:9:"target_id";i:37026;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"37026";s:9:"new_value";s:5:"37026";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1004]";s:6:"params";a:0:{}}s:11:"description";s:119:"{"d1":"\u9ad8\u90e1\u9633","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u552e\u540e\u670d\u52a1"]}";s:10:"created_by";i:5016;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 5016, '223.104.41.148') |
14:07:28.646 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
14:07:28.646 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("scenario_id"=1) AND ("location_out_id" IS NOT NULL) AND ("location_in_id" IS NOT NULL) AND ("created_at" >= '2025-01-01 00:00:00') AND ("created_at" <= '2025-12-31 23:59:59') AND ("client_id"=2815) |
14:07:28.648 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "visit_count"=2 WHERE "id"=2815 |
14:07:28.648 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:07:28.656 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id" |
14:07:28.657 | 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', 164987, 'a:5:{s:2:"id";i:164987;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5016, '223.104.41.148') |
14:07:28.658 | 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', 2815, 'a:1:{s:11:"visit_count";i:2;}', '', 5016, '223.104.41.148') |
14:07:28.660 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:07:28.660 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:07:28.660 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:07:28.660 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37026 ORDER BY "id" |
14:07:28.660 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id"=37026) AND ("created_by"=1000)) |
14:07:28.680 | 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\WorkLogVerifyRels', 14307, 'a:0:{}', '', 5016, '223.104.41.148') |
14:07:28.681 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_work_logs" SET "status"=-1 WHERE "id"=37026 |
14:07:28.682 | 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\WorkLogs', 37026, 'a:2:{s:11:"location_id";N;s:6:"status";i:-1;}', '', 5016, '223.104.41.148') |
14:07:28.683 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
14:07:28.684 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:07:28.684 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:07:28.684 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5016, 2, 1141, 'v2/work-log/save-new', '{"WorkLogs":{"client_id":"2815","created_by":"5016","description":"\u4f60\u624d\u80fd\u5403","end_at":"2025-06-25 14:07","escort":"\u7ecf\u5e38\u4e0d\u80fd\u5403","form_workLogCarbonCopyRels":["1000"],"form_workLogVerifyRels":["1000"],"is_draft":"0","location_in_address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5317\u4eac\u4e16\u7eaa\u661f\u8c6a\u9152\u5e97","location_in_distance":"972.398624599228","location_in_lat":"39.9603271484375","location_in_lng":"116.2889778645833","location_in_updated_at":"2025-06-25 14:07","location_out_address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5317\u4eac\u4e16\u7eaa\u661f\u8c6a\u9152\u5e97","location_out_distance":"975.9396817684","location_out_lat":"39.9603076171875","location_out_lng":"116.2890109592014","location_out_updated_at":"2025-06-25 14:07","project_id":"3811","scenario_id":"1","scenario_option_id":"73","start_at":"2025-06-25 14:07","workLogContacts":["5245"]},"access_token":"J6r5ayQCjcEIGs4KLBJLDPH45YZsr80L","device_type":"2","posttime":"1750831616","token":"768557913ba921dbf0f780289821ea77","version_code":"1141"}', '{"code":200,"data":{"id":37026},"status":1,"msg":[{"name":"success","success":"\u65b0\u5de5\u4f5c\u65e5\u5fd7\u5df2\u521b\u5efa\u6210\u529f","error":""}]}', FALSE, '2025-06-25 14:07:28') RETURNING "id" |