diff --git a/.gitignore b/.gitignore index 0908e34db..eb4139039 100644 --- a/.gitignore +++ b/.gitignore @@ -55,6 +55,7 @@ next-env.d.ts # tooling & logs .cursor/ .claude/ +.codex/ .serena/ !src/app/dashboard/logs/ !src/app/settings/logs/ diff --git a/drizzle/0049_shocking_ultimatum.sql b/drizzle/0049_shocking_ultimatum.sql index 6a37f923f..42c58a963 100644 --- a/drizzle/0049_shocking_ultimatum.sql +++ b/drizzle/0049_shocking_ultimatum.sql @@ -1 +1 @@ -ALTER TABLE "message_request" ADD COLUMN "special_settings" jsonb; \ No newline at end of file +ALTER TABLE "message_request" ADD COLUMN IF NOT EXISTS "special_settings" jsonb; diff --git a/drizzle/0050_flippant_jack_flag.sql b/drizzle/0050_flippant_jack_flag.sql index 505093d5f..027b9c3f5 100644 --- a/drizzle/0050_flippant_jack_flag.sql +++ b/drizzle/0050_flippant_jack_flag.sql @@ -1,2 +1,2 @@ -ALTER TABLE "system_settings" ADD COLUMN "enable_response_fixer" boolean DEFAULT true NOT NULL;--> statement-breakpoint -ALTER TABLE "system_settings" ADD COLUMN "response_fixer_config" jsonb DEFAULT '{"fixTruncatedJson":true,"fixSseFormat":true,"fixEncoding":true,"maxJsonDepth":200,"maxFixSize":1048576}'::jsonb; \ No newline at end of file +ALTER TABLE "system_settings" ADD COLUMN IF NOT EXISTS "enable_response_fixer" boolean DEFAULT true NOT NULL;--> statement-breakpoint +ALTER TABLE "system_settings" ADD COLUMN IF NOT EXISTS "response_fixer_config" jsonb DEFAULT '{"fixTruncatedJson":true,"fixSseFormat":true,"fixEncoding":true,"maxJsonDepth":200,"maxFixSize":1048576}'::jsonb; diff --git a/drizzle/0051_silent_maelstrom.sql b/drizzle/0051_silent_maelstrom.sql index 987702efd..cbcda452a 100644 --- a/drizzle/0051_silent_maelstrom.sql +++ b/drizzle/0051_silent_maelstrom.sql @@ -1 +1 @@ -ALTER TABLE "system_settings" ADD COLUMN "enable_thinking_signature_rectifier" boolean DEFAULT true NOT NULL; \ No newline at end of file +ALTER TABLE "system_settings" ADD COLUMN IF NOT EXISTS "enable_thinking_signature_rectifier" boolean DEFAULT true NOT NULL; diff --git a/drizzle/0052_model_price_source.sql b/drizzle/0052_model_price_source.sql index 5075e48f4..21b44c2f9 100644 --- a/drizzle/0052_model_price_source.sql +++ b/drizzle/0052_model_price_source.sql @@ -1,2 +1,2 @@ -ALTER TABLE "model_prices" ADD COLUMN "source" varchar(20) DEFAULT 'litellm' NOT NULL;--> statement-breakpoint -CREATE INDEX IF NOT EXISTS "idx_model_prices_source" ON "model_prices" USING btree ("source"); \ No newline at end of file +ALTER TABLE "model_prices" ADD COLUMN IF NOT EXISTS "source" varchar(20) DEFAULT 'litellm' NOT NULL;--> statement-breakpoint +CREATE INDEX IF NOT EXISTS "idx_model_prices_source" ON "model_prices" USING btree ("source");