Compare commits

...
2 Commits
Author SHA1 Message Date
robin dac38bd0a1 fix: syntax errors in migration sql 2026-08-28 14:44:41 +02:00
robin d68231c4c1 fix: update go version to 1.27 in Dockerfile 2026-08-28 14:31:42 +02:00
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM golang:1.26-alpine AS build
FROM golang:1.27-alpine AS build
RUN apk add --no-cache make git
@@ -13,12 +13,12 @@ CREATE TABLE exercises (
'resistance_band'
]::TEXT[]),
metric TEXT NOT NULL DEFAULT 'reps'
CHECK metric IN ('reps', 'seconds'),
CHECK (metric IN ('reps', 'seconds')),
load TEXT NOT NULL DEFAULT 'bodyweight'
CHECK load IN ('bodyweight', 'absolute'),
CHECK (load IN ('bodyweight', 'absolute')),
tags TEXT[] NOT NULL DEFAULT '{}', -- push/pull/legs/core/skill/shoulders/...
notes TEXT,
hidden NOT NULL DEFAULT FALSE,
hidden BOOLEAN NOT NULL DEFAULT FALSE,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
modified_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
@@ -98,4 +98,4 @@ INSERT INTO exercises (name, metric, load, tags, equipment) VALUES
('L-sit', 'seconds', 'bodyweight', '{core,skill}', '{floor,parallettes,parallel_bars}'),
('Hanging leg raise', 'reps', 'bodyweight', '{core}', '{rings,pull_up_bar}'),
('Face pull', 'reps', 'bodyweight', '{pull,shoulders}', '{rings,resistance_band}'),
('Lateral raise', 'reps', 'absolute', '{shoulders,isolation}', '{floor}'),
('Lateral raise', 'reps', 'absolute', '{shoulders,isolation}', '{floor}');