Skip to content

Commit 6c6acf9

Browse files
authored
Merge pull request #108757 from HJToland3/localworking
orcas metadata updates
2 parents 5d28689 + b2066df commit 6c6acf9

9 files changed

+42
-36
lines changed

articles/dms/known-issues-azure-mysql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Known issues: Online migrations to Azure Database for MySQL"
33
titleSuffix: Azure Database Migration Service
44
description: Learn about known issues and migration limitations with online migrations to Azure Database for MySQL when using the Azure Database Migration Service.
55
services: database-migration
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

articles/dms/known-issues-azure-postgresql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Known issues: Online migrations from PostgreSQL to Azure Database for Po
33
titleSuffix: Azure Database Migration Service
44
description: Learn about known issues and migration limitations with online migrations from PostgreSQL to Azure Database for PostgreSQL using the Azure Database Migration Service.
55
services: database-migration
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

articles/dms/known-issues-oracle-azure-postgresql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Known issues: Migrate from Oracle to Azure Database for PostgreSQL"
33
titleSuffix: Azure Database Migration Service
44
description: Learn about known issues and migration limitations with online migrations from Oracle to Azure Database for PostgreSQL-Single server using the Azure Database Migration Service.
55
services: database-migration
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

articles/dms/tutorial-mysql-azure-mysql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Tutorial: Migrate MySQL online to Azure Database for MySQL"
33
titleSuffix: Azure Database Migration Service
44
description: Learn to perform an online migration from MySQL on-premises to Azure Database for MySQL by using Azure Database Migration Service.
55
services: dms
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

articles/dms/tutorial-oracle-azure-postgresql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Tutorial: Migrate Oracle online to Azure Database for PostgreSQL"
33
titleSuffix: Azure Database Migration Service
44
description: Learn to perform an online migration from Oracle on-premises or on virtual machines to Azure Database for PostgreSQL by using Azure Database Migration Service.
55
services: dms
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

articles/dms/tutorial-postgresql-azure-postgresql-online-portal.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ title: "Tutorial: Migrate PostgreSQL to Azure DB for PostgreSQL online via the A
33
titleSuffix: Azure Database Migration Service
44
description: Learn to perform an online migration from PostgreSQL on-premises to Azure Database for PostgreSQL by using Azure Database Migration Service via the Azure portal.
55
services: dms
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms
1111
ms.workload: data-services
1212
ms.custom: "seo-lt-2019"
1313
ms.topic: article
14-
ms.date: 02/17/2020
14+
ms.date: 03/24/2020
1515
---
1616

1717
# Tutorial: Migrate PostgreSQL to Azure DB for PostgreSQL online using DMS via the Azure portal
@@ -111,29 +111,35 @@ To complete all the database objects like table schemas, indexes and stored proc
111111
> Foreign keys in your schema will cause the initial load and continuous sync of the migration to fail.
112112
113113
```
114-
SELECT Queries.tablename
115-
,concat('alter table ', Queries.tablename, ' ', STRING_AGG(concat('DROP CONSTRAINT ', Queries.foreignkey), ',')) as DropQuery
116-
,concat('alter table ', Queries.tablename, ' ',
117-
STRING_AGG(concat('ADD CONSTRAINT ', Queries.foreignkey, ' FOREIGN KEY (', column_name, ')', 'REFERENCES ', foreign_table_name, '(', foreign_column_name, ')' ), ',')) as AddQuery
118-
FROM
114+
SELECT Q.table_name
115+
,CONCAT('ALTER TABLE ', table_schema, '.', table_name, STRING_AGG(DISTINCT CONCAT(' DROP CONSTRAINT ', foreignkey), ','), ';') as DropQuery
116+
,CONCAT('ALTER TABLE ', table_schema, '.', table_name, STRING_AGG(DISTINCT CONCAT(' ADD CONSTRAINT ', foreignkey, ' FOREIGN KEY (', column_name, ')', ' REFERENCES ', foreign_table_schema, '.', foreign_table_name, '(', foreign_column_name, ')' ), ','), ';') as AddQuery
117+
FROM
119118
(SELECT
119+
S.table_schema,
120+
S.foreignkey,
121+
S.table_name,
122+
STRING_AGG(DISTINCT S.column_name, ',') AS column_name,
123+
S.foreign_table_schema,
124+
S.foreign_table_name,
125+
STRING_AGG(DISTINCT S.foreign_column_name, ',') AS foreign_column_name
126+
FROM
127+
(SELECT DISTINCT
120128
tc.table_schema,
121-
tc.constraint_name as foreignkey,
122-
tc.table_name as tableName,
129+
tc.constraint_name AS foreignkey,
130+
tc.table_name,
123131
kcu.column_name,
124132
ccu.table_schema AS foreign_table_schema,
125133
ccu.table_name AS foreign_table_name,
126134
ccu.column_name AS foreign_column_name
127-
FROM
128-
information_schema.table_constraints AS tc
129-
JOIN information_schema.key_column_usage AS kcu
130-
ON tc.constraint_name = kcu.constraint_name
131-
AND tc.table_schema = kcu.table_schema
132-
JOIN information_schema.constraint_column_usage AS ccu
133-
ON ccu.constraint_name = tc.constraint_name
134-
AND ccu.table_schema = tc.table_schema
135-
WHERE constraint_type = 'FOREIGN KEY') Queries
136-
GROUP BY Queries.tablename;
135+
FROM information_schema.table_constraints AS tc
136+
JOIN information_schema.key_column_usage AS kcu ON tc.constraint_name = kcu.constraint_name AND tc.table_schema = kcu.table_schema
137+
JOIN information_schema.constraint_column_usage AS ccu ON ccu.constraint_name = tc.constraint_name AND ccu.table_schema = tc.table_schema
138+
WHERE constraint_type = 'FOREIGN KEY'
139+
) S
140+
GROUP BY S.table_schema, S.foreignkey, S.table_name, S.foreign_table_schema, S.foreign_table_name
141+
) Q
142+
GROUP BY Q.table_schema, Q.table_name;
137143
```
138144
139145
5. Run the drop foreign key (which is the second column) in the query result.

articles/dms/tutorial-postgresql-azure-postgresql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Tutorial: Migrate PostgreSQL to Azure Database for PostgreSQL online via
33
titleSuffix: Azure Database Migration Service
44
description: Learn to perform an online migration from PostgreSQL on-premises to Azure Database for PostgreSQL by using Azure Database Migration Service via the CLI.
55
services: dms
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

articles/dms/tutorial-rds-mysql-server-azure-db-for-mysql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Tutorial: Migrate RDS MySQL online to Azure Database for MySQL"
33
titleSuffix: Azure Database Migration Service
44
description: Learn to perform an online migration from RDS MySQL to Azure Database for MySQL by using the Azure Database Migration Service.
55
services: dms
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

articles/dms/tutorial-rds-postgresql-server-azure-db-for-postgresql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Tutorial: Migrate RDS PostgreSQL online to Azure Database for PostgreSQL
33
titleSuffix: Azure Database Migration Service
44
description: Learn to perform an online migration from RDS PostgreSQL to Azure Database for PostgreSQL by using the Azure Database Migration Service.
55
services: dms
6-
author: pochiraju
7-
ms.author: rajpo
6+
author: HJToland3
7+
ms.author: jtoland
88
manager: craigg
99
ms.reviewer: craigg
1010
ms.service: dms

0 commit comments

Comments
 (0)