Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't migrate triggers #178

Open
AntoninPerrot opened this issue Jun 16, 2023 · 0 comments
Open

Can't migrate triggers #178

AntoninPerrot opened this issue Jun 16, 2023 · 0 comments

Comments

@AntoninPerrot
Copy link

Hello,

While using your tool (pretty great btw), problems with triggers occurred :

Warning: Trigger dbo].[OnDelRun ignored
Line <ALTER TABLE [dbo].[Run] ENABLE TRIGGER [OnDelRun]
> (2530) not understood. This is a bug at sqlserver2pgsql.pl line 2551, <$file> line 2530.

Here is a sample of the migration script :

...
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO


CREATE TRIGGER [dbo].[OnDelRun]
    ON [dbo].[Run]
    FOR DELETE
    AS
    BEGIN
		DISABLE TRIGGER [dbo].[OnInsUpdRun] ON [dbo].[Run];
		DISABLE TRIGGER [dbo].[OnInsUpdRunAnalysis] ON [dbo].[RunAnalysis];

		.......

		ENABLE TRIGGER [dbo].[OnInsUpdRun] ON [dbo].[Run];
		ENABLE TRIGGER [dbo].[OnInsUpdRunAnalysis] ON [dbo].[RunAnalysis];
    END
GO
ALTER TABLE [dbo].[Run] ENABLE TRIGGER [OnDelRun] 
GO
/****** Object:  Trigger [dbo].[OnInsUpdRun]    Script Date: 16/06/2023 09:50:58 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
....

Is there something particular to do or an option to activate ?
Thanks,
Antonin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant