From c61e2393f165554be3d684375126a2c0ed1263a9 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Wed, 9 Mar 2016 10:57:13 +0000 Subject: [PATCH] added drop function --- Censis/OBrand/OBrand_postgres_create.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Censis/OBrand/OBrand_postgres_create.sql b/Censis/OBrand/OBrand_postgres_create.sql index 81035d8..0fa4875 100644 --- a/Censis/OBrand/OBrand_postgres_create.sql +++ b/Censis/OBrand/OBrand_postgres_create.sql @@ -1,3 +1,24 @@ +ALTER TABLE "profile" DROP CONSTRAINT IF EXISTS "profile_fk0"; + +ALTER TABLE "profile" DROP CONSTRAINT IF EXISTS "profile_fk1"; + +ALTER TABLE "venue" DROP CONSTRAINT IF EXISTS "venue_fk0"; + +ALTER TABLE "billing" DROP CONSTRAINT IF EXISTS "billing_fk0"; + +DROP TABLE IF EXISTS "logins"; + +DROP TABLE IF EXISTS "profile"; + +DROP TABLE IF EXISTS "company"; + +DROP TABLE IF EXISTS "venue"; + +DROP TABLE IF EXISTS "billing"; + +DROP TABLE IF EXISTS "master_beacons"; + + CREATE TABLE "logins" ( "id" serial NOT NULL, "username" varchar(100) NOT NULL UNIQUE,