This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25c535c
commit c50be1e
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |