summaryrefslogtreecommitdiff
path: root/db/migrations/0301_melted_vargas.sql
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-08-21 06:57:36 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-08-21 06:57:36 +0000
commit02b1cf005cf3e1df64183d20ba42930eb2767a9f (patch)
treee932c54d5260b0e6fda2b46be2a6ba1c3ee30434 /db/migrations/0301_melted_vargas.sql
parentd78378ecd7ceede1429359f8058c7a99ac34b1b7 (diff)
(대표님, 최겸) 설계메뉴추가, 작업사항 업데이트
설계메뉴 - 문서관리 설계메뉴 - 벤더 데이터 gtc 메뉴 업데이트 정보시스템 - 메뉴리스트 및 정보 업데이트 파일 라우트 업데이트 엑셀임포트 개선 기본계약 개선 벤더 가입과정 변경 및 개선 벤더 기본정보 - pq 돌체 오류 수정 및 개선 벤더 로그인 과정 이메일 오류 수정
Diffstat (limited to 'db/migrations/0301_melted_vargas.sql')
-rw-r--r--db/migrations/0301_melted_vargas.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrations/0301_melted_vargas.sql b/db/migrations/0301_melted_vargas.sql
new file mode 100644
index 00000000..ad42b8a6
--- /dev/null
+++ b/db/migrations/0301_melted_vargas.sql
@@ -0,0 +1,14 @@
+CREATE TABLE "information_attachments" (
+ "id" serial PRIMARY KEY NOT NULL,
+ "information_id" integer NOT NULL,
+ "file_name" varchar(255) NOT NULL,
+ "file_path" varchar(1024) NOT NULL,
+ "file_size" varchar(50) NOT NULL,
+ "created_at" timestamp DEFAULT now() NOT NULL,
+ "updated_at" timestamp DEFAULT now() NOT NULL
+);
+--> statement-breakpoint
+ALTER TABLE "information_attachments" ADD CONSTRAINT "information_attachments_information_id_page_information_id_fk" FOREIGN KEY ("information_id") REFERENCES "public"."page_information"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
+ALTER TABLE "page_information" DROP COLUMN "attachment_file_name";--> statement-breakpoint
+ALTER TABLE "page_information" DROP COLUMN "attachment_file_path";--> statement-breakpoint
+ALTER TABLE "page_information" DROP COLUMN "attachment_file_size"; \ No newline at end of file