Skip to content

Commit 15e5e38

Browse files
committed
qd_indicator_codes add column.
1 parent 978e562 commit 15e5e38

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

backend_api_python/app/services/signal_notifier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ def notify_signal(
231231
else:
232232
ok, err = False, f"unsupported_channel:{c}"
233233
except Exception as e:
234-
logger.error(rf'signal notify error: {traceback.format_exc()}')
235234
ok, err = False, str(e)
236235

237236
results[c] = {"ok": bool(ok), "error": (err or "")}

backend_api_python/migrations/init.sql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ CREATE INDEX IF NOT EXISTS idx_notifications_is_read ON qd_strategy_notification
275275
-- 7. Indicator Codes
276276
-- =============================================================================
277277

278-
CREATE TABLE public.qd_indicator_codes (
278+
CREATE TABLE IF NOT EXISTS qd_indicator_codes (
279279
id serial4 NOT NULL,
280280
user_id int4 DEFAULT 1 NOT NULL,
281281
is_buy int4 DEFAULT 0 NOT NULL,
@@ -302,9 +302,11 @@ CREATE TABLE public.qd_indicator_codes (
302302
reviewed_by int4 NULL,
303303
CONSTRAINT qd_indicator_codes_pkey PRIMARY KEY (id),
304304
CONSTRAINT qd_indicator_codes_user_id_fkey FOREIGN KEY (user_id) REFERENCES qd_users(id) ON DELETE CASCADE
305+
305306
);
306-
CREATE INDEX idx_indicator_codes_user_id ON public.qd_indicator_codes USING btree (user_id);
307-
CREATE INDEX idx_indicator_review_status ON public.qd_indicator_codes USING btree (review_status);
307+
308+
CREATE INDEX idx_indicator_codes_user_id ON qd_indicator_codes USING btree (user_id);
309+
CREATE INDEX idx_indicator_review_status ON qd_indicator_codes USING btree (review_status);
308310

309311
-- =============================================================================
310312
-- 8. AI Decisions

0 commit comments

Comments
 (0)