| 13:23:58.360 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 13:23:58.360 | trace | yii\base\Module::getModule | Loading module: debug |
| 13:23:58.361 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 13:23:58.361 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 13:23:58.361 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 13:23:58.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.362 | info | time tracing start | 1780377838362673920 |
| 13:23:58.363 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 13:23:58.363 | trace | yii\web\Application::handleRequest | Route requested: 'vue/client/save-edit-simple' |
| 13:23:58.363 | trace | yii\base\Module::getModule | Loading module: vue |
| 13:23:58.364 | info | yii\web\Session::open | Session started |
| 13:23:58.365 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=5495 |
| 13:23:58.365 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 13:23:58.368 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.368 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.369 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.369 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.369 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5495 |
| 13:23:58.372 | trace | yii\base\Controller::runAction | Route to run: vue/client/save-edit-simple |
| 13:23:58.372 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.372 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 13:23:58.372 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClient |
| 13:23:58.373 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 13:23:58.373 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 13:23:58.373 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 13:23:58.373 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Treasurer |
| 13:23:58.373 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ClientController::actionSaveEditSimple() |
| 13:23:58.373 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE ("id"='1') AND ("deleted"=FALSE) |
| 13:23:58.374 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.374 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.375 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.375 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.375 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Clients'. |
| 13:23:58.375 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.375 | 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_classes'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 13:23:58.380 | 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_classes'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 13:23:58.394 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.394 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:23:58.394 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_classes" WHERE "id"='2' |
| 13:23:58.394 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_classes" WHERE "id"=1 |
| 13:23:58.395 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5495 |
| 13:23:58.396 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.396 | 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 = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 13:23:58.399 | 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='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 13:23:58.410 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.410 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:23:58.410 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'client_class', 1, 10, 5495, 'now()', '["B\u7ea7\u5ba2\u6237"]', '["A\u7ea7\u5ba2\u6237"]', '{"d1":"\u903b\u8f91\u6d4b\u8bd5","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba2\u6237\u7ea7\u522b","d4":["A\u7ea7\u5ba2\u6237 <b>\u53d8\u4e3a<\/b> B\u7ea7\u5ba2\u6237"]}') |
| 13:23:58.413 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_classes" WHERE "id"='2' |
| 13:23:58.414 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_classes" WHERE "id"=1 |
| 13:23:58.415 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5495 |
| 13:23:58.415 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.415 | 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 = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 13:23:58.418 | 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='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 13:23:58.429 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.429 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:23:58.429 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'client_class', 1, 10, 5495, 'now()', '["B\u7ea7\u5ba2\u6237"]', '["A\u7ea7\u5ba2\u6237"]', array[5493,5495], '{"d1":"\u903b\u8f91\u6d4b\u8bd5","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba2\u6237\u7ea7\u522b","d4":["A\u7ea7\u5ba2\u6237 <b>\u53d8\u4e3a<\/b> B\u7ea7\u5ba2\u6237"]}') |
| 13:23:58.463 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_clients" SET "client_class"=2 WHERE "id"=1 |
| 13:23:58.469 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_am_change_logs" WHERE ("client_id"=1) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 13:23:58.471 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.471 | 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 = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 13:23:58.475 | 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='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 13:23:58.499 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.499 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:23:58.499 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (1, 5493, 'now()', NULL) RETURNING "id" |
| 13:23:58.503 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.503 | 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 = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 13:23:58.507 | 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='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 13:23:58.525 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.525 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:23:58.525 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 9, 'a:5:{s:2:"id";i:9;s:9:"client_id";i:1;s:9:"sales_rep";i:5493;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5495, '43.224.72.82') |
| 13:23:58.534 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 1, 'a:1:{s:12:"client_class";s:1:"2";}', '', 5495, '43.224.72.82') |
| 13:23:58.538 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.538 | 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_sources'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 13:23:58.546 | 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_sources'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 13:23:58.587 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.587 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:23:58.587 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sources" SET "client_name"='逻辑测试-销售合同' WHERE "client_id"=1 |
| 13:23:58.590 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 13:23:58.591 | info | yii\db\Command::query | SELECT COUNT(*) FROM "o6a13e2c574d5a"."tbl_contacts" WHERE ("user_status"=2) AND ("client_id"=1) |
| 13:23:58.592 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_addresses" WHERE "client_id"=1 |
| 13:23:58.593 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_address_rels" WHERE "client_id"=1 |
| 13:23:58.593 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_addresses" WHERE ("address2" != '') AND ("address2" IS NOT NULL) AND (0=1) |
| 13:23:58.595 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_clients" SET "contact_count"=1 WHERE "id"=1 |
| 13:23:58.596 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_am_change_logs" WHERE ("client_id"=1) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 13:23:58.596 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (1, 5493, 'now()', NULL) RETURNING "id" |
| 13:23:58.597 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 10, 'a:5:{s:2:"id";i:10;s:9:"client_id";i:1;s:9:"sales_rep";i:5493;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5495, '43.224.72.82') |
| 13:23:58.598 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 1, 'a:0:{}', '', 5495, '43.224.72.82') |
| 13:23:58.599 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.599 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:23:58.599 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'o6a13e2c574d5a', 5495, 5, 'vue/client/save-edit-simple', '{"Clients":{"id":"1","client_class":"2"},"web_access_token":"BVNSh9YfxWIaBBEpqELLGqJuWOoESJvj"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u5ba2\u6237\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0,"ip":"43.224.72.82","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-02 13:23:58', 236913920) RETURNING "id" |
| 13:23:58.601 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:23:58.601 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |