Skip to content

Instantly share code, notes, and snippets.

View Artiesy's full-sized avatar

Artem Revin Artiesy

  • Kazakhstan
  • 17:18 (UTC +03:00)
View GitHub Profile
@Artiesy
Artiesy / alter_fk_cascade.sql
Created June 12, 2023 18:49
Replace all foreign key actions in table to CASCADE
DO $$DECLARE
r RECORD;
BEGIN
FOR r IN (
SELECT
tc.table_schema,
tc.constraint_name,
tc.table_name,
kcu.column_name,
ccu.table_schema AS foreign_table_schema,
This file has been truncated, but you can view the full file.
# Contains human-readable representation of NFactor::TCodeGenInput message (defined in factors_metadata.proto)
Group: [
"Datetime",
"Domain",
"RapidClicks",
"RegHostStatic",
"RegDocStatic",
"Regex",