mirror of https://github.com/citusdata/citus.git
Style
parent
d2c0027f5d
commit
8b797dec05
|
@ -557,13 +557,13 @@ ORDER BY child;
|
||||||
|
|
||||||
-- verify we successfully create foreign keys
|
-- verify we successfully create foreign keys
|
||||||
SELECT
|
SELECT
|
||||||
tc.table_schema,
|
tc.table_schema,
|
||||||
tc.constraint_name,
|
tc.constraint_name,
|
||||||
tc.table_name,
|
tc.table_name,
|
||||||
ccu.table_schema AS foreign_table_schema,
|
ccu.table_schema AS foreign_table_schema,
|
||||||
ccu.table_name AS foreign_table_name
|
ccu.table_name AS foreign_table_name
|
||||||
FROM
|
FROM
|
||||||
information_schema.table_constraints AS tc
|
information_schema.table_constraints AS tc
|
||||||
JOIN information_schema.key_column_usage AS kcu
|
JOIN information_schema.key_column_usage AS kcu
|
||||||
ON tc.constraint_name = kcu.constraint_name
|
ON tc.constraint_name = kcu.constraint_name
|
||||||
AND tc.table_schema = kcu.table_schema
|
AND tc.table_schema = kcu.table_schema
|
||||||
|
@ -600,13 +600,13 @@ ORDER BY child;
|
||||||
|
|
||||||
-- verify we successfully create foreign keys
|
-- verify we successfully create foreign keys
|
||||||
SELECT
|
SELECT
|
||||||
tc.table_schema,
|
tc.table_schema,
|
||||||
tc.constraint_name,
|
tc.constraint_name,
|
||||||
tc.table_name,
|
tc.table_name,
|
||||||
ccu.table_schema AS foreign_table_schema,
|
ccu.table_schema AS foreign_table_schema,
|
||||||
ccu.table_name AS foreign_table_name
|
ccu.table_name AS foreign_table_name
|
||||||
FROM
|
FROM
|
||||||
information_schema.table_constraints AS tc
|
information_schema.table_constraints AS tc
|
||||||
JOIN information_schema.key_column_usage AS kcu
|
JOIN information_schema.key_column_usage AS kcu
|
||||||
ON tc.constraint_name = kcu.constraint_name
|
ON tc.constraint_name = kcu.constraint_name
|
||||||
AND tc.table_schema = kcu.table_schema
|
AND tc.table_schema = kcu.table_schema
|
||||||
|
|
Loading…
Reference in New Issue