From 827dec7a29f2c98fb6392ebe5ad44b3b9180f80b Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Mon, 12 Jun 2023 10:59:20 +0200 Subject: [PATCH] sql folder --- .../src/main/resources/{ => sql}/community-schema.sql | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename libs/dnet-exporter-model/src/main/resources/{ => sql}/community-schema.sql (84%) diff --git a/libs/dnet-exporter-model/src/main/resources/community-schema.sql b/libs/dnet-exporter-model/src/main/resources/sql/community-schema.sql similarity index 84% rename from libs/dnet-exporter-model/src/main/resources/community-schema.sql rename to libs/dnet-exporter-model/src/main/resources/sql/community-schema.sql index a4860108..0dac52bb 100644 --- a/libs/dnet-exporter-model/src/main/resources/community-schema.sql +++ b/libs/dnet-exporter-model/src/main/resources/sql/community-schema.sql @@ -1,7 +1,14 @@ +DROP TABLE IF EXISTS community_projects; +DROP TABLE IF EXISTS community_datasources; +DROP TABLE IF EXISTS community_support_orgs; +DROP TABLE IF EXISTS community_orgs; +DROP TABLE IF EXISTS communities; + + CREATE TABLE communities ( id text PRIMARY KEY, label text NOT NULL, - description text NOT NULL DEFFAULT '', + description text NOT NULL DEFAULT '', status text NOT NULL DEFAULT 'hidden', -- all, manager, hidden type text NOT NULL, -- community, ri subjects text[],