Skip to content

Commit

Permalink
individuals table
Browse files Browse the repository at this point in the history
  • Loading branch information
oolonek committed Feb 12, 2024
1 parent 15cbf39 commit 0a9d4c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE individuals;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Your SQL goes here
-- A migration to create the individuals table.
-- An individual is a physically identifiable member of a given species.

CREATE TABLE individuals (
id SERIAL PRIMARY KEY,
item_id INTEGER NOT NULL REFERENCES items(id) ON DELETE CASCADE
);

0 comments on commit 0a9d4c7

Please sign in to comment.