From 28ae481a7d2a0d1a3bfa181af1337c188d3f41de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Mon, 9 Mar 2026 23:13:31 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[database]=20codebridge=20=EC=9D=B4?= =?UTF-8?q?=EA=B4=80=20=EC=99=84=EB=A3=8C=20=ED=85=8C=EC=9D=B4=EB=B8=94=20?= =?UTF-8?q?58=EA=B0=9C=20=EC=82=AD=EC=A0=9C=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - sam DB에서 codebridge DB로 이관된 58개 테이블 DROP - FK 체크 비활성화 후 일괄 삭제 - 복원: ~/backups/sam_codebridge_tables_20260309.sql --- ...230000_drop_codebridge_tables_from_sam.php | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 database/migrations/2026_03_09_230000_drop_codebridge_tables_from_sam.php diff --git a/database/migrations/2026_03_09_230000_drop_codebridge_tables_from_sam.php b/database/migrations/2026_03_09_230000_drop_codebridge_tables_from_sam.php new file mode 100644 index 0000000..54e4612 --- /dev/null +++ b/database/migrations/2026_03_09_230000_drop_codebridge_tables_from_sam.php @@ -0,0 +1,108 @@ +tables as $table) { + Schema::dropIfExists($table); + } + + DB::statement('SET FOREIGN_KEY_CHECKS = 1'); + } + + public function down(): void + { + // 복원은 백업 파일로 수행 + // mysql -u codebridge -p sam < ~/backups/sam_codebridge_tables_20260309.sql + } +};