Compare commits

..

2 Commits

Author SHA1 Message Date
4c6b9cde39 Bumping version to 0.0.89 2024-12-25 08:03:13 -08:00
ffb210babb server: ensure uniqueness on post links 2024-12-25 08:02:36 -08:00
8 changed files with 41 additions and 10 deletions

10
Cargo.lock generated
View File

@ -2839,7 +2839,7 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "letterbox"
version = "0.0.88"
version = "0.0.89"
dependencies = [
"build-info",
"build-info-build",
@ -2865,7 +2865,7 @@ dependencies = [
[[package]]
name = "letterbox-server"
version = "0.0.88"
version = "0.0.89"
dependencies = [
"ammonia",
"anyhow",
@ -3384,7 +3384,7 @@ dependencies = [
[[package]]
name = "notmuch"
version = "0.0.88"
version = "0.0.89"
dependencies = [
"itertools 0.10.5",
"log",
@ -4178,7 +4178,7 @@ dependencies = [
[[package]]
name = "procmail2notmuch"
version = "0.0.88"
version = "0.0.89"
dependencies = [
"anyhow",
]
@ -5248,7 +5248,7 @@ dependencies = [
[[package]]
name = "shared"
version = "0.0.88"
version = "0.0.89"
dependencies = [
"build-info",
"notmuch",

View File

@ -1,6 +1,6 @@
[package]
name = "notmuch"
version = "0.0.88"
version = "0.0.89"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,6 +1,6 @@
[package]
name = "procmail2notmuch"
version = "0.0.88"
version = "0.0.89"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,6 +1,6 @@
[package]
name = "letterbox-server"
version = "0.0.88"
version = "0.0.89"
edition = "2021"
default-run = "letterbox-server"

View File

@ -0,0 +1,3 @@
-- Add down migration script here
ALTER TABLE
post DROP CONSTRAINT post_link_key;

View File

@ -0,0 +1,28 @@
WITH dupes AS (
SELECT
uid,
link,
Row_number() over(
PARTITION by link
ORDER BY
link
) AS RowNumber
FROM
post
)
DELETE FROM
post
WHERE
uid IN (
SELECT
uid
FROM
dupes
WHERE
RowNumber > 1
);
ALTER TABLE
post
ADD
UNIQUE (link);

View File

@ -1,6 +1,6 @@
[package]
name = "shared"
version = "0.0.88"
version = "0.0.89"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,5 +1,5 @@
[package]
version = "0.0.88"
version = "0.0.89"
name = "letterbox"
repository = "https://github.com/seed-rs/seed-quickstart"
authors = ["Bill Thiede <git@xinu.tv>"]