ДМ
Size: a a a
ДМ
S
S
YS
ВМ
YS
BS
ВМ
BS
v
v
VY
GROUP BY timestamp_col, process_col ?v
GROUP BY timestamp_col, process_col ?[K
netbox=# drop table public.dcim_cable;как проще всего эту таблицу дропнуть, чтоб потом с данными из скрипта пересоздать? хочу в скрипте поменять порядок полей
ERROR: cannot drop table dcim_cable because other objects depend on it
DETAIL: constraint circuits_circuittermination_cable_id_35e9f703_fk_dcim_cable_id on table circuits_circuittermination depends on table dcim_cable
constraint dcim_consoleport_cable_id_a9ae5465_fk_dcim_cable_id on table dcim_consoleport depends on table dcim_cable
constraint dcim_consoleserverport_cable_id_f2940dfd_fk_dcim_cable_id on table dcim_consoleserverport depends on table dcim_cable
constraint dcim_interface_cable_id_1b264edb_fk_dcim_cable_id on table dcim_interface depends on table dcim_cable
constraint dcim_poweroutlet_cable_id_8dbea1ec_fk_dcim_cable_id on table dcim_poweroutlet depends on table dcim_cable
constraint dcim_powerport_cable_id_c9682ba2_fk_dcim_cable_id on table dcim_powerport depends on table dcim_cable
constraint dcim_powerfeed_cable_id_ec44c4f8_fk_dcim_cable_id on table dcim_powerfeed depends on table dcim_cable
constraint dcim_frontport_cable_id_04ff8aab_fk_dcim_cable_id on table dcim_frontport depends on table dcim_cable
constraint dcim_rearport_cable_id_42c0e4e7_fk_dcim_cable_id on table dcim_rearport depends on table dcim_cable
HINT: Use DROP ... CASCADE to drop the dependent objects too.
VY
netbox=# drop table public.dcim_cable;как проще всего эту таблицу дропнуть, чтоб потом с данными из скрипта пересоздать? хочу в скрипте поменять порядок полей
ERROR: cannot drop table dcim_cable because other objects depend on it
DETAIL: constraint circuits_circuittermination_cable_id_35e9f703_fk_dcim_cable_id on table circuits_circuittermination depends on table dcim_cable
constraint dcim_consoleport_cable_id_a9ae5465_fk_dcim_cable_id on table dcim_consoleport depends on table dcim_cable
constraint dcim_consoleserverport_cable_id_f2940dfd_fk_dcim_cable_id on table dcim_consoleserverport depends on table dcim_cable
constraint dcim_interface_cable_id_1b264edb_fk_dcim_cable_id on table dcim_interface depends on table dcim_cable
constraint dcim_poweroutlet_cable_id_8dbea1ec_fk_dcim_cable_id on table dcim_poweroutlet depends on table dcim_cable
constraint dcim_powerport_cable_id_c9682ba2_fk_dcim_cable_id on table dcim_powerport depends on table dcim_cable
constraint dcim_powerfeed_cable_id_ec44c4f8_fk_dcim_cable_id on table dcim_powerfeed depends on table dcim_cable
constraint dcim_frontport_cable_id_04ff8aab_fk_dcim_cable_id on table dcim_frontport depends on table dcim_cable
constraint dcim_rearport_cable_id_42c0e4e7_fk_dcim_cable_id on table dcim_rearport depends on table dcim_cable
HINT: Use DROP ... CASCADE to drop the dependent objects too.
DROP хотя-бы в транзакцию обернуть, чтобы откатить, если проверка покажет что-то странное…ДМ
update contactsНу думаю, че-то долго, посоветовали циклами по 10к строк апдейтить.
set contact_origin = 'Authentic'
where contact_origin is null
P
ГА
update contactsНу думаю, че-то долго, посоветовали циклами по 10к строк апдейтить.
set contact_origin = 'Authentic'
where contact_origin is null
ДМ
YS