Initial source, tests, migrations, and local Docker setup for the Hope Food Pantry volunteer scheduler.
7 lines
249 B
SQL
7 lines
249 B
SQL
-- A repeated submit of the same form reuses this key instead of taking another spot.
|
|
ALTER TABLE signups ADD COLUMN operation_key TEXT NULL;
|
|
|
|
CREATE UNIQUE INDEX signups_operation_key
|
|
ON signups (operation_key)
|
|
WHERE operation_key IS NOT NULL;
|