From 65b11d9d029558cacc7b4270dd7eaa2f1f63439e Mon Sep 17 00:00:00 2001
From: Jan Tuomi <jans.tuomi@gmail.com>
Date: Thu, 29 Feb 2024 09:35:55 +0200
Subject: Fix issue where an empty vote submission would not visually show

---
 migrations/0002_vote_value.sql | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 migrations/0002_vote_value.sql

(limited to 'migrations/0002_vote_value.sql')

diff --git a/migrations/0002_vote_value.sql b/migrations/0002_vote_value.sql
new file mode 100644
index 0000000..94f7afb
--- /dev/null
+++ b/migrations/0002_vote_value.sql
@@ -0,0 +1,2 @@
+ALTER TABLE votes ADD COLUMN IF NOT EXISTS value INTEGER NOT NULL DEFAULT 1;
+ALTER TABLE votes ALTER COLUMN value DROP DEFAULT;
-- 
cgit v1.3

