diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-11-09 01:54:53 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-11-09 01:54:53 +0100 |
commit | 796336d8ce3593e10b44f40a05de56a6cc2ba4e7 (patch) | |
tree | 7c4095de83d4d3ae7c241ca668f0c48d65a91a99 /src/main/resources | |
parent | 2eae4836279646050e7e342752cde6e8f7c5b6cb (diff) | |
download | esper-testing-796336d8ce3593e10b44f40a05de56a6cc2ba4e7.tar.gz esper-testing-796336d8ce3593e10b44f40a05de56a6cc2ba4e7.tar.bz2 esper-testing-796336d8ce3593e10b44f40a05de56a6cc2ba4e7.tar.xz esper-testing-796336d8ce3593e10b44f40a05de56a6cc2ba4e7.zip |
wip
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/ddl.sql | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/resources/ddl.sql b/src/main/resources/ddl.sql index 6f213dc..279e544 100644 --- a/src/main/resources/ddl.sql +++ b/src/main/resources/ddl.sql @@ -1,6 +1,6 @@ BEGIN; -DROP TABLE IF EXISTS gitorious_change; +DROP TABLE IF EXISTS gitorious_event; DROP TABLE IF EXISTS gitorious_repository; DROP TABLE IF EXISTS gitorious_project; DROP TABLE IF EXISTS atom_feed; @@ -11,18 +11,18 @@ CREATE TABLE atom_feed ( ); CREATE TABLE gitorious_project ( - slug VARCHAR(1000) PRIMARY KEY + slug VARCHAR(1000) PRIMARY KEY, + atom_feed VARCHAR(1000) NOT NULL ); CREATE TABLE gitorious_repository ( project_slug VARCHAR(1000) NOT NULL, name VARCHAR(1000) NOT NULL, - atom_feed VARCHAR(1000) NOT NULL, CONSTRAINT gitorious_repository_pk PRIMARY KEY(project_slug, name), CONSTRAINT gitorious_repository_2_gitorious_project FOREIGN KEY(project_slug) REFERENCES gitorious_project(slug) ); -CREATE TABLE gitorious_change ( +CREATE TABLE gitorious_event ( entry_id VARCHAR(1000) PRIMARY KEY, text VARCHAR(1000) ); |