Skip to content

Commit

Permalink
feat: add extra organisation info columns and ordering when related t…
Browse files Browse the repository at this point in the history
…o projects
  • Loading branch information
ewan-escience authored and dmijatovic committed Oct 12, 2022
1 parent da94df5 commit 27bfbd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database/011-create-organisation-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ CREATE TABLE organisation (
primary_maintainer UUID REFERENCES account (id),
slug VARCHAR(200) NOT NULL CHECK (slug ~ '^[a-z0-9]+(-[a-z0-9]+)*$'),
name VARCHAR(200) NOT NULL,
description VARCHAR(10000),
location VARCHAR(200),
type VARCHAR(100),
ror_id VARCHAR(100) UNIQUE,
website VARCHAR(200) UNIQUE,
is_tenant BOOLEAN DEFAULT FALSE NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions database/012-inter-relation-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ CREATE TABLE project_for_organisation (
status relation_status NOT NULL DEFAULT 'approved',
role organisation_role NOT NULL DEFAULT 'participating',
is_featured BOOLEAN DEFAULT FALSE NOT NULL,
position INTEGER,
PRIMARY KEY (project, organisation, role)
);

Expand Down

0 comments on commit 27bfbd6

Please sign in to comment.