mirror of
https://github.com/MODSetter/SurfSense
synced 2026-06-21 13:44:09 +00:00
Merge pull request #753 from elammertsma/dev
fix(database): handle duplicate podcast_status type creation gracefully
This commit is contained in:
@@ -20,7 +20,11 @@ depends_on: str | Sequence[str] | None = None
|
||||
def upgrade() -> None:
|
||||
op.execute(
|
||||
"""
|
||||
CREATE TYPE podcast_status AS ENUM ('pending', 'generating', 'ready', 'failed');
|
||||
DO $$ BEGIN
|
||||
CREATE TYPE podcast_status AS ENUM ('pending', 'generating', 'ready', 'failed');
|
||||
EXCEPTION
|
||||
WHEN duplicate_object THEN null;
|
||||
END $$;
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user