-
Notifications
You must be signed in to change notification settings - Fork 2
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
7d7a057
commit 353da7e
Showing
3 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
apps/picsa-server/supabase/migrations/20240212163747_station_crop_information_table.sql
This file was deleted.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
apps/picsa-server/supabase/migrations/20240212164644_station_crop_data.sql
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,14 @@ | ||
create table | ||
public.climate_station_crop_data ( | ||
id bigint generated by default as identity, | ||
created_at timestamp with time zone not null default now(), | ||
station_id bigint not null, | ||
water_lower double precision null, | ||
water_upper double precision null, | ||
length_lower double precision null, | ||
length_upper double precision null, | ||
crop_id bigint not null, | ||
constraint station_crop_information_pkey primary key (id), | ||
constraint climate_station_crop_data_station_id_fkey foreign key (station_id) references climate_stations (station_id) on delete cascade, | ||
constraint climate_station_crop_data_crop_id_fkey foreign key (crop_id) references crop_data (id) on delete cascade | ||
) tablespace pg_default; |