Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 148 additions & 0 deletions backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ axum-extra = { version = "0.10.0", features = ["multipart"] }
csv = "1.3.1"

lettre = "0.11.14"

tokenbucket = "0.1.6"
governor = "0.10.0"


[dev-dependencies]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Rollback: Remove queuing and rate-limiting fields from mails table

ALTER TABLE mails
DROP COLUMN scheduled_at,
DROP COLUMN attempts,
DROP COLUMN last_error;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Migration: Add queuing and rate-limiting fields to mails table

ALTER TABLE mails
ADD COLUMN "scheduled_at" TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL,
ADD COLUMN "attempts" INTEGER DEFAULT 0 NOT NULL,
ADD COLUMN "last_error" TEXT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Down Migration: remove the rate_limit column
ALTER TABLE "servers"
DROP COLUMN IF EXISTS "rate_limit";
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Up Migration: add the rate_limit column with a default value
ALTER TABLE "servers"
ADD COLUMN "rate_limit" INTEGER NOT NULL DEFAULT 60;
Loading
Loading