Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Stub out packages in the database
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Dec 2, 2016
1 parent 25c535c commit c50be1e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sql/branch.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
BEGIN;

CREATE TABLE package_managers
( id bigserial PRIMARY KEY
, name text NOT NULL UNIQUE
);

CREATE TABLE packages
( id bigserial PRIMARY KEY
, package_manager_id bigint NOT NULL
, name text NOT NULL
, description text NOT NULL DEFAULT ''
, long_description text NOT NULL DEFAULT ''
, long_description_raw text NOT NULL DEFAULT ''
, long_description_type text NOT NULL DEFAULT ''
, mtime timestamp with time zone NOT NULL
, UNIQUE (package_manager_id, name)
);

CREATE TABLE package_emails
( package_id bigint NOT NULL
, email text NOT NULL
, UNIQUE (package_id, email)
)

END;

0 comments on commit c50be1e

Please sign in to comment.