From 816c9e4d60422deb9c155c4198f167e488d8c907 Mon Sep 17 00:00:00 2001 From: PMA Date: Mon, 12 Feb 2024 16:54:20 +0100 Subject: [PATCH] sampled_individuals --- .../down.sql | 0 .../up.sql | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename web/backend/migrations/{2024-02-12-153940_create_individuals_table => 2024-02-12-153940_create_sampled_individuals_table}/down.sql (100%) rename web/backend/migrations/{2024-02-12-153940_create_individuals_table => 2024-02-12-153940_create_sampled_individuals_table}/up.sql (67%) diff --git a/web/backend/migrations/2024-02-12-153940_create_individuals_table/down.sql b/web/backend/migrations/2024-02-12-153940_create_sampled_individuals_table/down.sql similarity index 100% rename from web/backend/migrations/2024-02-12-153940_create_individuals_table/down.sql rename to web/backend/migrations/2024-02-12-153940_create_sampled_individuals_table/down.sql diff --git a/web/backend/migrations/2024-02-12-153940_create_individuals_table/up.sql b/web/backend/migrations/2024-02-12-153940_create_sampled_individuals_table/up.sql similarity index 67% rename from web/backend/migrations/2024-02-12-153940_create_individuals_table/up.sql rename to web/backend/migrations/2024-02-12-153940_create_sampled_individuals_table/up.sql index 56e7c5dd..7f8780d0 100644 --- a/web/backend/migrations/2024-02-12-153940_create_individuals_table/up.sql +++ b/web/backend/migrations/2024-02-12-153940_create_sampled_individuals_table/up.sql @@ -1,8 +1,8 @@ -- Your SQL goes here --- A migration to create the individuals table. +-- A migration to create the sampled_individuals table. -- An individual is a physically identifiable member of a given species. -CREATE TABLE individuals ( +CREATE TABLE sampled_individuals ( id SERIAL PRIMARY KEY, item_id INTEGER NOT NULL REFERENCES items(id) ON DELETE CASCADE );