From fee6e74cd6021579821d13b3fa90c64872ea125f Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 27 May 2017 18:15:19 +0200 Subject: [PATCH] fix a bug --- db/3_sem/is_an_aircraft/is_an_aircraft/create_table.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/3_sem/is_an_aircraft/is_an_aircraft/create_table.sql b/db/3_sem/is_an_aircraft/is_an_aircraft/create_table.sql index ce3bb4d..5222a4a 100644 --- a/db/3_sem/is_an_aircraft/is_an_aircraft/create_table.sql +++ b/db/3_sem/is_an_aircraft/is_an_aircraft/create_table.sql @@ -40,19 +40,19 @@ if not exists (select * from sysobjects where name='Zeppelin') ); -- Foreign Key Constraints hinzufügen -IF OBJECT_ID('dbo.[FK_LFZ_ID]', 'F') IS NULL - ALTER TABLE Flugzeug ADD CONSTRAINT FK_LFZ_ID +IF OBJECT_ID('dbo.[FK_FLZ_ID]', 'F') IS NULL + ALTER TABLE Flugzeug ADD CONSTRAINT FK_FLZ_ID FOREIGN KEY (FLZ_ID) REFERENCES Luftfahrzeug (LFZ_ID); go -- Foreign Key Constraints hinzufügen -IF OBJECT_ID('dbo.[FK_LFZ_ID]', 'F') IS NULL +IF OBJECT_ID('dbo.[FK_HUB_ID]', 'F') IS NULL ALTER TABLE Hubschrauber ADD CONSTRAINT FK_HUB_ID FOREIGN KEY (HUB_ID) REFERENCES Luftfahrzeug (LFZ_ID); go -- Foreign Key Constraints hinzufügen -IF OBJECT_ID('dbo.[FK_LFZ_ID]', 'F') IS NULL +IF OBJECT_ID('dbo.[FK_ZEP_ID]', 'F') IS NULL ALTER TABLE Zeppelin ADD CONSTRAINT FK_ZEP_ID FOREIGN KEY (ZEP_ID) REFERENCES Luftfahrzeug (LFZ_ID); go