summaryrefslogtreecommitdiff
path: root/db/migrations/0294_melted_swordsman.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/0294_melted_swordsman.sql
parentd78378ecd7ceede1429359f8058c7a99ac34b1b7 (diff)
(대표님, 최겸) 설계메뉴추가, 작업사항 업데이트
설계메뉴 - 문서관리 설계메뉴 - 벤더 데이터 gtc 메뉴 업데이트 정보시스템 - 메뉴리스트 및 정보 업데이트 파일 라우트 업데이트 엑셀임포트 개선 기본계약 개선 벤더 가입과정 변경 및 개선 벤더 기본정보 - pq 돌체 오류 수정 및 개선 벤더 로그인 과정 이메일 오류 수정
Diffstat (limited to 'db/migrations/0294_melted_swordsman.sql')
-rw-r--r--db/migrations/0294_melted_swordsman.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrations/0294_melted_swordsman.sql b/db/migrations/0294_melted_swordsman.sql
new file mode 100644
index 00000000..b574c497
--- /dev/null
+++ b/db/migrations/0294_melted_swordsman.sql
@@ -0,0 +1,11 @@
+DROP VIEW "public"."basic_contract_view";--> statement-breakpoint
+ALTER TABLE "users" ALTER COLUMN "phone" SET DATA TYPE varchar(255);--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "shipbuilding_applicable";--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "wind_applicable";--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "pc_applicable";--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "nb_applicable";--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "rc_applicable";--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "gy_applicable";--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "sys_applicable";--> statement-breakpoint
+ALTER TABLE "basic_contract_templates" DROP COLUMN "infra_applicable";--> statement-breakpoint
+CREATE VIEW "public"."basic_contract_view" AS (select "basic_contract"."id" as "id", "basic_contract"."template_id" as "template_id", "basic_contract"."vendor_id" as "vendor_id", "basic_contract"."requested_by" as "requested_by", "basic_contract"."status" as "basic_contract_status", "basic_contract"."created_at" as "created_at", "basic_contract"."updated_at" as "updated_at", "basic_contract"."completed_at" as "completed_at", "vendors"."vendor_code" as "vendor_code", "vendors"."email" as "vendor_email", "vendors"."vendor_name" as "vendor_name", "users"."name" as "requested_by_name", "basic_contract_templates"."template_name" as "template_name", "basic_contract_templates"."revision" as "template_revision", "basic_contract_templates"."status" as "template_status", "basic_contract_templates"."validity_period" as "validity_period", "basic_contract_templates"."legal_review_required" as "legal_review_required", "basic_contract_templates"."file_path" as "template_file_path", "basic_contract_templates"."file_name" as "template_file_name", "basic_contract"."file_path" as "signed_file_path", "basic_contract"."file_name" as "signed_file_name", "basic_contract_templates"."created_at" as "template_created_at", "basic_contract_templates"."created_by" as "template_created_by", "basic_contract_templates"."updated_at" as "template_updated_at", "basic_contract_templates"."updated_by" as "template_updated_by", "basic_contract_templates"."disposed_at" as "template_disposed_at", "basic_contract_templates"."restored_at" as "template_restored_at" from "basic_contract" left join "vendors" on "basic_contract"."vendor_id" = "vendors"."id" left join "users" on "basic_contract"."requested_by" = "users"."id" left join "basic_contract_templates" on "basic_contract"."template_id" = "basic_contract_templates"."id"); \ No newline at end of file