Skip to content

Commit eff226a

Browse files
authored
Merge pull request #108933 from HJToland3/localworking
tutorial tweak
2 parents 27d825c + 45c9846 commit eff226a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.service: dms
1111
ms.workload: data-services
1212
ms.custom: "seo-lt-2019"
1313
ms.topic: article
14-
ms.date: 03/24/2020
14+
ms.date: 03/25/2020
1515
---
1616

1717
# Tutorial: Migrate PostgreSQL to Azure DB for PostgreSQL online using DMS via the Azure portal
@@ -150,8 +150,8 @@ To complete all the database objects like table schemas, indexes and stored proc
150150
> Triggers (insert or update) in the data enforce data integrity in the target ahead of the data being replicated from the source. As a result, it's recommended that you disable triggers in all the tables **at the target** during migration, and then re-enable the triggers after migration is complete.
151151
152152
```
153-
select concat ('alter table ', event_object_table, ' disable trigger ', trigger_name)
154-
from information_schema.triggers;
153+
SELECT DISTINCT CONCAT('ALTER TABLE ', event_object_schema, '.', event_object_table, ' DISABLE TRIGGER ', trigger_name, ';')
154+
FROM information_schema.triggers
155155
```
156156
157157
## Register the Microsoft.DataMigration resource provider

0 commit comments

Comments
 (0)