diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-03-23 15:57:09 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-03-23 15:57:09 -0700 |
| commit | 00c7f6129f87d77788aa92e08dd77b7b473f9a71 (patch) | |
| tree | 476e7f456fb3138d17927ce0ff3fea7b1a8f0060 /many_to_many_example.postgres | |
| parent | 1cc8609a5976d3f394ac0f36fd1322ee8e6e4eea (diff) | |
moved things around
Diffstat (limited to 'many_to_many_example.postgres')
| -rw-r--r-- | many_to_many_example.postgres | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/many_to_many_example.postgres b/many_to_many_example.postgres deleted file mode 100644 index 6a4ef56..0000000 --- a/many_to_many_example.postgres +++ /dev/null @@ -1,16 +0,0 @@ -CREATE TABLE cds( -id serial PRIMARY KEY -- implicit primary key constraint, -title text NOT NULL -); - -CREATE TABLE artists( -id serial PRIMARY KEY, -name text NOT NULL -); - -CREATE TABLE cds_and_artists( -cds_id integer REFERENCES cds (id) ON UPDATE CASCADE ON DELETE CASCADE, -artists_id integer REFERENCES artisys (id) ON UPDATE CASCADE, -CONSTRAINT cds_and_artists_pkey PRIMARY KEY (cds_id, artists_id) -); - |
