From 1d4128e8f991585d7cb6e8e3dba5a936e559926c Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 26 Jun 2017 21:17:54 +0200 Subject: [PATCH] clean up the removal script --- sql/sql/setup_04_remove_database.sql | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/sql/sql/setup_04_remove_database.sql b/sql/sql/setup_04_remove_database.sql index 0483286..36fc44e 100644 --- a/sql/sql/setup_04_remove_database.sql +++ b/sql/sql/setup_04_remove_database.sql @@ -1,18 +1,9 @@ --- Removes the tables for the Flugzeug DB +-- Removes the tables for the market DB -- -- Author: Andreas Zweili -- Erstellt: 2017-05-27 -- DB-Server SQL Server 2016 -use marketdb; --- Dateiname create_table.sql --- --- Beschreibung: Queries zum erstellen der Tabellen der Case Study DB --- --- Autor: Andreas Zweili --- Datum: 2017-06-05 --- Server Version: SQL Server 2016 - use marketdb; if exists (select * from sysobjects where name='commercials') DROP TABLE commercials; @@ -22,16 +13,16 @@ if exists (select * from sysobjects where name='member_status') DROP TABLE member_status; use marketdb; -if exists (select * from sysobjects where name='salutation') - DROP TABLE salutation; +if exists (select * from sysobjects where name='salutations') + DROP TABLE salutations; use marketdb; -if exists (select * from sysobjects where name='subscription') - DROP TABLE subscription; +if exists (select * from sysobjects where name='subscriptions') + DROP TABLE subscriptions; use marketdb; -if exists (select * from sysobjects where name='subscption_order') - DROP TABLE subscption_order; +if exists (select * from sysobjects where name='subscption_orders') + DROP TABLE subscption_orders; use marketdb; if exists (select * from sysobjects where name='members') @@ -42,8 +33,8 @@ if exists (select * from sysobjects where name='persons') DROP TABLE persons; use marketdb; -if exists (select * from sysobjects where name='trial_period') - DROP TABLE trial_period; +if exists (select * from sysobjects where name='trial_periods') + DROP TABLE trial_periods; use marketdb; if exists (select * from sysobjects where name='quality_checks')