diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-02-29 09:35:55 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-12-21 19:43:13 +0200 |
| commit | 65b11d9d029558cacc7b4270dd7eaa2f1f63439e (patch) | |
| tree | cfaff12ae1b2daba749336e8aecd878035488e54 /migrations | |
| parent | 513d520722fe86635965aec2fb5c6666b51c4be2 (diff) | |
Fix issue where an empty vote submission would not visually show
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/0002_vote_value.sql | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
