Files
DocumentServer-v-9.2.0/server/schema/postgresql/upgrade/upgradev630.sql
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

15 lines
388 B
SQL

DO $$
BEGIN
BEGIN
ALTER TABLE "task_result" ADD COLUMN "created_at" timestamp without time zone DEFAULT NOW();
EXCEPTION
WHEN duplicate_column THEN RAISE NOTICE 'column created_at already exists.';
END;
BEGIN
ALTER TABLE "task_result" ADD COLUMN "password" text;
EXCEPTION
WHEN duplicate_column THEN RAISE NOTICE 'column password already exists.';
END;
END;
$$