From 28a54a634b76b1b710e076c164f1705e9ad59cba Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Thu, 13 Apr 2023 21:49:55 +1000 Subject: [PATCH] Switch to using plotly-basic to reduce page size to 2.3mb --- migrations/00_Initial_setup_and_seed.sql | 11 +++++++++++ templates/base.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/migrations/00_Initial_setup_and_seed.sql b/migrations/00_Initial_setup_and_seed.sql index 45d4d6b..ba27ad3 100644 --- a/migrations/00_Initial_setup_and_seed.sql +++ b/migrations/00_Initial_setup_and_seed.sql @@ -221,4 +221,15 @@ SELECT SELECT setval ('topset_topset_id_seq', 1000, FALSE); +CREATE TABLE + IF NOT EXISTS "tag" ( + "tag_id" SERIAL PRIMARY KEY, + "person_id" BIGINT, + "name" TEXT NOT NULL, + "filter" TEXT NOT NULL, + CONSTRAINT min_name_chk CHECK (length (name) >= 2), + CONSTRAINT max_name_chk CHECK (length (name) <= 100), + CONSTRAINT "tag_person_id_fkey" FOREIGN KEY ("person_id") REFERENCES "person" ("person_id") ON UPDATE NO ACTION ON DELETE CASCADE + ); + COMMIT; \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index eada9e1..9bbda73 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,7 +6,7 @@ Workout Tracker - +