{"id":80021,"date":"2025-10-21T16:30:00","date_gmt":"2025-10-21T07:30:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=80021"},"modified":"2025-11-13T09:19:15","modified_gmt":"2025-11-13T00:19:15","slug":"db%e3%83%9e%e3%82%a4%e3%82%b0%e3%83%ac%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%83%84%e3%83%bc%e3%83%abatlas%e3%81%a7devops%e7%92%b0%e5%a2%83%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bdb%e3%82%b9%e3%82%ad","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021","title":{"rendered":"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/79848\">\u524d\u7de8<\/a>\u3067\u89e3\u8aac\u3057\u305fAtlas\u306eDB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u5177\u4f53\u7684\u306a\u52d5\u4f5c\u30a4\u30e1\u30fc\u30b8\u306b\u7d9a\u3044\u3066\u3001\u5f8c\u7de8\u3067\u306fDevOps\u74b0\u5883\u306eCI\/CD\u3068\u306e\u7d71\u5408\u65b9\u6cd5\u3084\u3001\u5b9f\u8df5\u3059\u308b\u4e0a\u3067\u306eTIPS\u3084\u6ce8\u610f\u70b9\u3092\u4e2d\u5fc3\u306b\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5bfe\u8c61\u8aad\u8005\u306e\u30ec\u30d9\u30eb\u611f<\/h3>\n\n\n\n<p>\u672c\u8a18\u4e8b\u306f\u3001\u524d\u7de8\u306e\u5185\u5bb9\uff08Atlas\u306b\u3088\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30a2\u30d7\u30ed\u30fc\u30c1\u306e\u5b9f\u88c5\u3068PostgreSQL\u74b0\u5883\u3067\u306e\u691c\u8a3c\uff09\u3092\u7406\u89e3\u3055\u308c\u3066\u3044\u308b\u4e2d\u7d1a\u8005\u4ee5\u4e0a\u306e\u65b9\u3092\u4e3b\u306a\u5bfe\u8c61\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br>\u7279\u306b\u3001DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u7d44\u8fbc\u307f\u3001\u5b9f\u8df5\u5229\u7528\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u308b\u65b9\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u524d\u63d0\u77e5\u8b58\u3068\u3057\u3066\u3001CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3084DB\u904b\u7528\u306b\u3064\u3044\u3066\u306e\u57fa\u790e\u77e5\u8b58\u304c\u3042\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8a18\u4e8b\u306e\u30b4\u30fc\u30eb<\/h3>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3092\u901a\u3058\u3066\u3001\u8aad\u8005\u306f\u4ee5\u4e0b\u306e\u70b9\u3092\u9054\u6210\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Atlas\u306b\u3088\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u3088\u308b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u88c5\u30a4\u30e1\u30fc\u30b8\u3092\u3064\u304b\u3080 (<a href=\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/79848\">\u524d\u7de8\u306e\u5185\u5bb9<\/a>)<\/li>\n\n\n\n<li>DB\u30b9\u30ad\u30fc\u30de\u306e\u521d\u671f\u4f5c\u6210\u304b\u3089\u3001\u5909\u66f4\u306e\u8ffd\u52a0\u9069\u7528\u306e\u5177\u4f53\u7684\u306a\u624b\u9806\u3092Postgresql\u74b0\u5883\u3067\u691c\u8a3c\u3059\u308b (<a href=\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/79848\">\u524d\u7de8\u306e\u5185\u5bb9<\/a>)<\/li>\n\n\n\n<li>CI\/CD\u3068\u306e\u7d71\u5408\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3076 (\u4eca\u56de\u306e\u5185\u5bb9)<\/li>\n\n\n\n<li>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u306a\u3069\u3001Atlas\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\u3084\u5b9f\u8df5\u7684\u306aTIPS\u3092\u5b66\u3076 (\u4eca\u56de\u306e\u5185\u5bb9)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">CI\/CD\u3068\u306e\u7d71\u5408<\/h2>\n\n\n\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u3082\u8ff0\u3079\u307e\u3057\u305f\u304c\u3001DevOps\u74b0\u5883\u306b\u304a\u3044\u3066\u3001DB\u30b9\u30ad\u30fc\u30de\u306e\u7ba1\u7406\u3092IaC(Infrastructure as Code)\u3084CI\/CD\u306e\u6587\u8108\u3067\u9069\u5207\u306b\u884c\u3046\u306b\u306f\u3001DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u3001\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u306e\u5909\u66f4\u5185\u5bb9\u3092\u30b3\u30fc\u30c9\u3068\u3057\u3066\u7ba1\u7406\u3057\u3001\u305d\u308c\u3092CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u7d44\u8fbc\u3080\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3078\u7d44\u8fbc\u307f<\/h3>\n\n\n\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u6d41\u308c\u3092\u898b\u3066\u304d\u305f\u901a\u308a\u3001<code>schemas<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306b\u3042\u308b\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u306f\u3001<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u3042\u308b\u3079\u304d\u59ff(\u6700\u7d42\u7684\u306a\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9)<\/strong> \u3092\u8868\u3059\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u308b\u306e\u3067\u3001Git\u3067\u9069\u6b63\u306b\u7ba1\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u307e\u305f\u3001<code>atlas migrate diff<\/code> \u30b3\u30de\u30f3\u30c9\u3067 <code>migrations<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u4f5c\u6210\u3055\u308c\u305f\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u306f\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u51e6\u7406\u306b\u5229\u7528\u3055\u308c\u308b\u3060\u3051\u3067\u306f\u306a\u304f\u3001<strong>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u4f5c\u6210\u6642\u306e\u6bd4\u8f03\u5143\u3068\u3057\u3066\u5229\u7528\u3055\u308c\u308b\u305f\u3081<\/strong>\u3001\u3053\u3061\u3089\u3082Git\u3067\u306e\u7ba1\u7406\u5bfe\u8c61\u3068\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u5229\u7528\u3057\u305f\u5834\u5408\u306eDB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u4e00\u4f8b\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u958b\u767a\u8005\u304c\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u306e\u5909\u66f4\u3092\u884c\u3046\u3002<\/li>\n\n\n\n<li>\u958b\u767a\u8005\u304c\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067 <code>atlas migrate diff<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u3092\u4f5c\u6210\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u5909\u66f4\u7d50\u679c\uff08<code>schemas<\/code> \u304a\u3088\u3073 <code>migrations<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\uff09\u3092GitHub\u3084GitLab\u3068\u3044\u3063\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7ba1\u7406\u30c4\u30fc\u30eb\u306bPUSH\u3059\u308b\u3002<\/li>\n\n\n\n<li>CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u5185\u3067 <code>atlas migrate apply<\/code> \u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u3001\u5404\u74b0\u5883\u306eDB\u306b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"736\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/image-46-1024x736.png\" alt=\"\" class=\"wp-image-80025\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/image-46-1024x736.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/image-46-360x259.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/image-46-768x552.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/image-46-1536x1103.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/image-46-2048x1471.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001CI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u5185\u3067 <code>schemas<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u5143\u306bER\u56f3\u3092\u4f5c\u6210\u3057\u305f\u308a\u3001<code>atlas migrate apply --dry-run<\/code> \u30b3\u30de\u30f3\u30c9\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3068\u3044\u3046\u306e\u3082\u826f\u3044\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8907\u6570\u74b0\u5883DB\u3078\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/h3>\n\n\n\n<p>\u8907\u6570\u74b0\u5883\u3042\u308bDB\u306b\u5bfe\u3059\u308b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3082\u3001\u524d\u7de8\u3067\u691c\u8a3c\u3057\u3066\u304d\u305f\u5185\u5bb9\u3092\u5fdc\u7528\u3059\u308c\u3070\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\u914d\u4e0b\u306eAtlas\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3092\u8ffd\u8a18\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><strong>atlas.hcl<\/strong><\/code><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">...\u524d\u7565(\u65e2\u5b58\u306e\u5185\u5bb9)\n\n# TST\u74b0\u5883DB\u3078\u306e migrate apply \u5b9f\u884c\u6642\u306e\u8a2d\u5b9a\nenv \"tst\" {\n  migration {\n    dir = \"file:\/\/migrations\"       # \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u683c\u7d0d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\n  }\n  url = \"postgres:\/\/&lt;\u30e6\u30fc\u30b6\u30fc\u540d>:&lt;\u30d1\u30b9\u30ef\u30fc\u30c9>@:5432\/&lt;DB\u540d>?search_path=&lt;\u30b9\u30ad\u30fc\u30de\u540d>\"  # TST\u74b0\u5883DB\u3078\u306e\u63a5\u7d9a\u6587\u5b57\u5217\n  dev = \"docker:\/\/postgres\/16\/dev\"  # \u51e6\u7406\u7528\u306e\u4e00\u6642DB\n}<\/pre>\n\n\n\n<p>\u3053\u3046\u3057\u305f\u74b0\u5883\u3054\u3068\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u4f8b\u3048\u3070TST\u74b0\u5883DB\u3078\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u969b\u306f\u3001CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u5185\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">atlas migrate apply --env tst<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u203b \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u6ce8\u610f<\/h4>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u76f4\u63a5\u8a18\u8ff0\u3059\u308b\u3088\u3046\u306a\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b<strong>\u30b7\u30fc\u30af\u30ec\u30c3\u30c8(\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9)\u3092\u5e73\u6587\u3067\u8a18\u8ff0\u3059\u308b\u306e\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306bNG<\/strong>\u3067\u3059\u3002<br>\u3053\u306e\u8ab2\u984c\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u3001\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u304c<a href=\"https:\/\/atlasgo.io\/guides\/deploying\/secrets\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001AWS\u306eSSM\u30d1\u30e9\u30e1\u30fc\u30bf\u30b9\u30c8\u30a2\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b <code>data \"runtimevar\"<\/code> \u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306f\u305d\u306e\u30d6\u30ed\u30c3\u30af\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306a\u8a18\u8ff0\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">data \"runtimevar\" \"db_migration_user\" {\n    url = \"awsparamstore:\/\/\/DB\/MIGRATION\/USER?region=ap-northeast-1&amp;decoder=string\"\n}\n\ndata \"runtimevar\" \"db_migration_password\" {\n    url = \"awsparamstore:\/\/\/DB\/MIGRATION\/PASSWORD?region=ap-northeast-1&amp;decoder=string\"\n}\n\n...\u4e2d\u7565...\n\nenv \"tst\" {\n    migration {\n        dir = \"file:\/\/migrations\" # \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u683c\u7d0d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\n    }\n    url = \"postgres:\/\/${data.runtimevar.db_migration_user}:${data.runtimevar.db_migration_password}@:5432\/?search_path=\" # TST\u74b0\u5883DB\u3078\u306e\u63a5\u7d9a\u6587\u5b57\u5217\n    dev = \"docker:\/\/postgres\/16\/dev\" # \u51e6\u7406\u7528\u306e\u4e00\u6642DB\n}<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u8df5\u3059\u308b\u4e0a\u3067\u306eTIPS\u3084\u6ce8\u610f\u70b9<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><code>schemas<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d<\/h3>\n\n\n\n<p>\u524d\u7de8\u3067\u3084\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u691c\u8a3c\u6642\u306b\u4f5c\u6210\u3057\u305f3\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u9593\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>1_users.sql<\/strong><\/li>\n\n\n\n<li><strong>2_repos.sql<\/strong> :users\u30c6\u30fc\u30d6\u30eb\u306eid\u3092\u53c2\u7167<\/li>\n\n\n\n<li><strong>3_commits.sql<\/strong> : users\u30c6\u30fc\u30d6\u30eb\u306eid \u3068 repos\u30c6\u30fc\u30d6\u30eb\u306eid\u3092\u53c2\u7167<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u3046\u3044\u3063\u305f\u95a2\u4fc2\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u666e\u901a\u306bDB\u4e0a\u3067\u624b\u52d5\u3067\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3067\u3082\u3001\u53c2\u7167\u5148\u306e\u30ab\u30e9\u30e0\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3067\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>Atlas\u306b\u304a\u3044\u3066\u3082\u3053\u308c\u306f\u540c\u69d8\u3067\u3001<code>atlas migrate diff<\/code> \u5b9f\u884c\u6642\u306b <code>schemas<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306e\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u73fe\u5728\u306e\u30b9\u30ad\u30fc\u30de\u72b6\u614b\u3092\u518d\u73fe\u3059\u308b\u969b\u306b\u306f\u3001<strong>\u30d5\u30a1\u30a4\u30eb\u540d\u9806<\/strong>\u306b\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u9593\u306b\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5148\u982d\u306b\u9023\u756a\u3092\u632f\u308b\u306a\u3069\u3057\u3066\u3001\u4f9d\u5b58\u95a2\u4fc2\u304c\u89e3\u6c7a\u3055\u308c\u308b\u9806\u756a\u306b\u306a\u308b\u3088\u3046\u306b\u547d\u540d\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af<\/h3>\n\n\n\n<p>Atlas\u3067\u306f\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5143\u306b\u623b\u3059\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\uff08\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c0\u30a6\u30f3\uff09\u3082\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<br>\u3053\u308c\u306f\u3001\u30c7\u30d7\u30ed\u30a4\u5f8c\u306e\u554f\u984c\u767a\u751f\u6642\u306a\u3069\u306b\u975e\u5e38\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<br><a href=\"https:\/\/atlasgo.io\/versioned\/down\">\u3053\u3061\u3089\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u3084\u308a\u65b9\u306b\u3064\u3044\u3066\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u306f <code>atlas migrate down<\/code> \u30b3\u30de\u30f3\u30c9\u3067\u884c\u3048\u307e\u3059\u3002<br>\u307e\u305a\u30c9\u30e9\u30a4\u30e9\u30f3\u30e2\u30fc\u30c9\u3067\u6319\u52d5\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">atlas migrate down --dry-run --env demo<\/pre>\n\n\n\n<p>\u30c9\u30e9\u30a4\u30e9\u30f3\u306e\u7d50\u679c\u3001\u76f4\u524d\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u53d6\u308a\u6d88\u3059\u51e6\u7406\uff08\u4eca\u56de\u306e\u30b1\u30fc\u30b9\u3067\u306f <code>commits<\/code> \u30c6\u30fc\u30d6\u30eb\u306e\u524a\u9664\uff09\u306e\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ atlas migrate down --env demo --dry-run\nMigrating down from version 20251010030347 to 20251010023825 (1 migration in total):\n\n  -- checks before reverting version 20251010030347\n    -> SELECT NOT EXISTS (SELECT 1 FROM \"commits\") AS \"is_empty\"\n  -- ok (901.743\u00b5s)\n\n  -- reverting version 20251010030347\n    -> DROP TABLE \"commits\"\n  -- ok (915.907\u00b5s)\n\n  -------------------------\n  -- 939.729\u00b5s\n  -- 1 migration\n  -- 1 sql statement<\/pre>\n\n\n\n<p>\u30c9\u30e9\u30a4\u30e9\u30f3\u30e2\u30fc\u30c9\u3067\u6319\u52d5\u304c\u78ba\u8a8d\u3067\u304d\u305f\u306e\u3067\u3001\u5b9f\u969b\u306b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">atlas migrate down --dry-run --env demo<\/pre>\n\n\n\n<p>\u30c9\u30e9\u30a4\u30e9\u30f3\u30e2\u30fc\u30c9\u306e\u6642\u3068\u540c\u3058\u3088\u3046\u306a\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ atlas migrate down --env demo\nMigrating down from version 20251010030347 to 20251010023825 (1 migration in total):\n\n  -- checks before reverting version 20251010030347\n    -> SELECT NOT EXISTS (SELECT 1 FROM \"commits\") AS \"is_empty\"\n  -- ok (521.776\u00b5s)\n\n  -- reverting version 20251010030347\n    -> DROP TABLE \"commits\"\n  -- ok (4.899343ms)\n\n  -------------------------\n  -- 28.148766ms\n  -- 1 migration\n  -- 1 sql statement<\/pre>\n\n\n\n<p>\u3067\u306f\u5b9f\u969b\u306bDB\u304c\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ psql -h localhost -p 5432 -d demo -U postgres\nPassword for user postgres:\npsql (15.14 (Ubuntu 15.14-1.pgdg22.04+1), server 17.2 (Debian 17.2-1.pgdg120+1))\nType \"help\" for help.<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30c6\u30fc\u30d6\u30eb\u4e00\u89a7<\/strong>\u3000\u21d2 <code>commits<\/code> \u30c6\u30fc\u30d6\u30eb\u304c\u524a\u9664<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">demo=# \\dt\n                 List of relations\n Schema |          Name          | Type  |  Owner\n--------+------------------------+-------+----------\n public | atlas_schema_revisions | table | postgres\n public | repos                  | table | postgres\n public | users                  | table | postgres\n(3 rows)<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>users<\/code> \u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9<\/strong>\u3000\u21d2 <code>commits<\/code> \u30c6\u30fc\u30d6\u30eb\u304b\u3089\u306e\u53c2\u7167\u304c\u6d88\u3048\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">demo=# \\d users\n                    Table \"public.users\"\n Column |       Type        | Collation | Nullable | Default\n--------+-------------------+-----------+----------+---------\n id     | bigint            |           | not null |\n name   | character varying |           | not null |\nIndexes:\n    \"users_pkey\" PRIMARY KEY, btree (id)\nReferenced by:\n    TABLE \"repos\" CONSTRAINT \"fk_repo_owner\" FOREIGN KEY (owner_id) REFERENCES users(id)<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>repos<\/code> \u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9<\/strong>\u3000\u21d2 <code>commits<\/code> \u30c6\u30fc\u30d6\u30eb\u304b\u3089\u306e\u53c2\u7167\u304c\u6d88\u3048\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">demo=# \\d repos\n                       Table \"public.repos\"\n   Column    |       Type        | Collation | Nullable | Default\n-------------+-------------------+-----------+----------+---------\n id          | bigint            |           | not null |\n name        | character varying |           | not null |\n owner_id    | bigint            |           | not null |\n description | character varying |           |          |\nIndexes:\n    \"repos_pkey\" PRIMARY KEY, btree (id)\nForeign-key constraints:\n    \"fk_repo_owner\" FOREIGN KEY (owner_id) REFERENCES users(id)<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>atlas_schema_revisions<\/code> \u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9<\/strong>\u3000\u21d2 \u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3 <code>20251010030347<\/code> \u304c\u7121\u304f\u306a\u3063\u305f(\u4ed6\u306e\u5185\u5bb9\u306b\u3088\u3063\u3066\u4e0a\u66f8\u304d\u3055\u308c\u305f\uff1f)<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">demo=# SELECT version,description,hash FROM atlas_schema_revisions;\n         version         |             description              |                     hash\n-------------------------+--------------------------------------+----------------------------------------------\n 20251009103327          | initial                              | k6B212fSjYGW\/i\/4rF8PUQUk0+WOHcpWOMrE+80j3fs=\n 20251010023825          | mod_repos                            | 4t3rp8ghYpS7eU+fH1\/zaR1CUZcvzSEdbWnubL241jc=\n .atlas_cloud_identifier | 6c907020-5bc0-4830-9fc9-fe0417030ae3 |\n(3 rows)<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b1\u3064\u524d\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u304d\u308c\u3044\u306b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001<code>--to-version 20251009103327<\/code> \u306e\u3088\u3046\u306b\u30d5\u30e9\u30b0\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u72d9\u3063\u305f\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u623b\u3059\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u203b \u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u5f8c\u306e\u6ce8\u610f\u70b9<\/strong><\/h4>\n\n\n\n<p>\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5b9f\u884c\u3057\u3066DB\u306e\u30b9\u30ad\u30fc\u30de\u304c\u5909\u66f4\u524d\u306e\u72b6\u614b\u306b\u623b\u3063\u3066\u3082\u3001<code>schemas<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e <strong>3_commits.sql<\/strong> \u306f\u305d\u306e\u307e\u307e\u6b8b\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u72b6\u614b\u306e\u307e\u307e <code>atlas migrate apply<\/code> \u3092\u5b9f\u884c\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u524a\u9664\u3057\u305f\u3082\u306e\u304c\u5fa9\u6d3b\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u5f8c\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u306a\u308a\u3001git revert \u3067\u5909\u66f4\u3092\u53d6\u308a\u6d88\u3059\u306a\u3069\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b0\u898f\u30c6\u30fc\u30d6\u30eb\u306b\u521d\u671f\u30c7\u30fc\u30bf\u3092INSERT<\/h3>\n\n\n\n<p>Atlas\u306fDB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u57fa\u672c\u7684\u306b\u30c7\u30fc\u30bf\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>\u3057\u304b\u3057\u5b9f\u969b\u306b\u306f\u3001\u30ea\u30ea\u30fc\u30b9\u30d7\u30ed\u30bb\u30b9\u306e\u4e2d\u3067\u65b0\u898f\u306b\u8ffd\u52a0\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3078\u521d\u671f\u30c7\u30fc\u30bf\u3092\u6295\u5165\u3057\u305f\u3044\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br>\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3001\uff08\u3061\u3087\u3063\u3068\u6426\u3081\u624b\u7684\u306a\u3084\u308a\u65b9\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u304c\uff09\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u624b\u52d5\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a <code>insert<\/code> \u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>schemas\/<strong>insert.sql<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- Create \"insert\" table\nCREATE TABLE \"test\" (\n  \"id\" bigint NOT NULL,\n  \"data\" character varying NOT NULL,\n  PRIMARY KEY (\"id\")\n);<\/pre>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001<code>atlas migrate diff<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">atlas migrate diff add_insert --env temp<\/pre>\n\n\n\n<p>\u3044\u3064\u3082\u306e\u3088\u3046\u306b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u304c\u4f5c\u6210\u3055\u308c\u308b\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u63a7\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ atlas migrate diff add_insert --env temp\n\n$ ls migrations\/\n20251009103327_initial.sql      20251010023825_mod_repos.sql    20251010030347_add_commits.sql  20251014074650_add_insert.sql   atlas.sum<\/pre>\n\n\n\n<p><code>atlas migrate edit<\/code> \u30b3\u30de\u30f3\u30c9\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u304c\u7de8\u96c6\u3067\u304d\u308b\u306e\u3067\u3001\u672b\u5c3e\u306bINSERT\u6587\u3092\u8ffd\u8a18\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">atlas migrate edit 20251014074650_add_insert.sql<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- Create \"test\" table\nCREATE TABLE \"public\".\"insert\" (\"id\" bigint NOT NULL, \"data\" character varying NOT NULL, PRIMARY KEY (\"id\"));\n\n-- \u4ee5\u4e0b\u3092\u8ffd\u8a18\n-- Insert initial data\nINSERT INTO \"insert\" (\"id\", \"data\") VALUES\n(1, 'Initial Record A'),\n(2, 'Initial Record B'),\n(3, 'Initial Record C');<\/pre>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u3001<code>atlas migrate apply<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">atlas migrate apply --env demo<\/pre>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u306e\u7d50\u679c\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u4f5c\u6210\u3068 <code>INSERT<\/code> \u306e\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ atlas migrate apply --env demo\nMigrating to version 20251014074650 from 20251010030347 (1 migrations in total):\n\n  -- migrating version 20251014074650\n    -> CREATE TABLE \"public\".\"insert\" (\"id\" bigint NOT NULL, \"data\" character varying NOT NULL, PRIMARY KEY (\"id\"));\n    -> INSERT INTO \"insert\" (\"id\", \"data\") VALUES\n       (1, 'Initial Record A'),\n       (2, 'Initial Record B'),\n       (3, 'Initial Record C');\n  -- ok (23.662576ms)\n\n  -------------------------\n  -- 30.017242ms\n  -- 1 migration\n  -- 2 sql statements<\/pre>\n\n\n\n<p>\u5b9f\u969b\u306bDB\u5185\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ psql -h localhost -p 5432 -d demo -U postgres\nPassword for user postgres:\npsql (15.14 (Ubuntu 15.14-1.pgdg22.04+1), server 17.2 (Debian 17.2-1.pgdg120+1))\nType \"help\" for help.<\/pre>\n\n\n\n<p>\u521d\u671f\u30c7\u30fc\u30bf\u3068\u3057\u30663\u4ef6\u306e\u30ec\u30b3\u30fc\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">demo=# SELECT * FROM insert;\n id |       data\n----+------------------\n  1 | Initial Record A\n  2 | Initial Record B\n  3 | Initial Record C\n(3 rows)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u203b \u521d\u671f\u30c7\u30fc\u30bfINSERT\u6642\u306e\u6ce8\u610f\u70b9<\/strong><\/h4>\n\n\n\n<p>\u3053\u306e\u6a5f\u80fd\u3082\u4fbf\u5229\u306a\u6a5f\u80fd\u306a\u306e\u3067\u3059\u304c\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u3092\u624b\u52d5\u3067\u7de8\u96c6\u3057\u3066\u521d\u671f\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3059\u308b\u3068\u3001\u524d\u8ff0\u306e <strong><code>atlas migrate down<\/code> \u306b\u3088\u308b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308b<\/strong>\u3068\u3044\u3046\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br>\u3053\u308c\u306fAtlas\u304c\u3001\u5b89\u5168\u6027\u306e\u89b3\u70b9\u304b\u3089\u3001\u30ec\u30b3\u30fc\u30c9\u304c\u5b58\u5728\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u6642\u306b\u524a\u9664\u3057\u306a\u3044\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002\uff08<a href=\"https:\/\/atlasgo.io\/blog\/2024\/04\/01\/migrate-down\">\u516c\u5f0f\u30d6\u30ed\u30b0<\/a>\u3092\u898b\u308b\u3068\u8272\u3005\u3068\u7406\u7531\u304c\u3042\u3063\u3066\u3053\u306e\u5f62\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff09<br>\u305d\u306e\u305f\u3081\u3001\u3082\u3057\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u5834\u5408\u306f\u3001\u4e8b\u524d\u306b\u8a72\u5f53\u30c6\u30fc\u30d6\u30eb\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u70b9\u306b\u3082\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b66\u3093\u3060\u3053\u3068\u306e\u6574\u7406<\/h3>\n\n\n\n<p>\u4eca\u56de\u306e\u5f8c\u7de8\u8a18\u4e8b\u3092\u901a\u3058\u3066\u3001\u4ee5\u4e0b\u306e\u5b9f\u8df5\u7684\u306a\u77e5\u8b58\u3068TIPS\u3092\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u7d44\u8fbc\u3080\u5834\u5408\u306f\u3001CD\u30d7\u30ed\u30bb\u30b9\u3067 <strong>atlas migrate apply<\/strong> \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3067\u304d\u308b\u3002<\/li>\n\n\n\n<li>\u8907\u6570\u74b0\u5883\u3078\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u969b\u306f\u3001<code>atlas.hcl<\/code> \u306b\u74b0\u5883\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3001<strong>\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u5e73\u6587\u3067\u8a18\u8ff0\u305b\u305a<\/strong>\u3001AWS SSM\u30d1\u30e9\u30e1\u30fc\u30bf\u30b9\u30c8\u30a2\u306a\u3069\u306e\u30e9\u30f3\u30bf\u30a4\u30e0\u5909\u6570\uff08<code>runtimevar<\/code>\uff09\u3092\u5229\u7528\u3059\u3079\u304d\u3002<\/li>\n\n\n\n<li>\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\uff08<code>schemas<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\uff09\u306b\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308b\u5834\u5408\u3001<strong>\u30d5\u30a1\u30a4\u30eb\u540d\u9806<\/strong>\u306b\u51e6\u7406\u3055\u308c\u308b\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u4ed8\u3051\u65b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/li>\n\n\n\n<li> <strong>atlas migrate down<\/strong> \u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u53ef\u80fd\u3002\u305f\u3060\u3057\u3001\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u5f8c\u306f schemas \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u5207\u306b\u7ba1\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n\n\n\n<li>\u521d\u671f\u30c7\u30fc\u30bfINSERT\u306a\u3069\u306e\u30c7\u30fc\u30bf\u306e\u64cd\u4f5c\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001<code>atlas migrate edit<\/code> \u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3SQL\u3092\u624b\u52d5\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3067\u304d\u308b\u3002\u305f\u3060\u3057\u3001<code>atlas migrate down<\/code> \u306b\u3088\u308b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308b\u305f\u3081\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u524d\u7de8\u3067\u89e3\u8aac\u3057\u305fAtlas\u306eDB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u5177\u4f53\u7684\u306a\u52d5\u4f5c\u30a4\u30e1\u30fc\u30b8\u306b\u7d9a\u3044\u3066\u3001\u5f8c\u7de8\u3067\u306fDevOps\u74b0\u5883\u306eCI\/CD\u3068\u306e\u7d71\u5408\u65b9\u6cd5\u3084\u3001\u5b9f\u8df5\u3059\u308b\u4e0a\u3067\u306eTIPS\u3084\u6ce8\u610f\u70b9\u3092\u4e2d\u5fc3\u306b\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u5bfe\u8c61\u8aad\u8005\u306e\u30ec\u30d9\u30eb\u611f \u672c [&#8230;]<\/p>\n","protected":false},"author":58,"featured_media":79999,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[67,935],"tags":[1111,260,271,1112,331,68,1113],"class_list":["post-80021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-s-sato","tag-atlasgo","tag-cicd","tag-db","tag-db-migration","tag-dba","tag-devops","tag-1113"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8) - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"DevOps, s-sato |\u306f\u3058\u3081\u306b\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8) - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"DevOps, s-sato |\u306f\u3058\u3081\u306b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-21T07:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-13T00:19:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u4f50\u85e4\u6ecb\u6643\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4f50\u85e4\u6ecb\u6643\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021\"},\"author\":{\"name\":\"\u4f50\u85e4\u6ecb\u6643\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/6327e24b340d0dace8dc67be8c8693c6\"},\"headline\":\"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8)\",\"datePublished\":\"2025-10-21T07:30:00+00:00\",\"dateModified\":\"2025-11-13T00:19:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021\"},\"wordCount\":121,\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png\",\"keywords\":[\"AtlasGo\",\"CICD\",\"db\",\"DB Migration\",\"DBA\",\"DevOps\",\"\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\"],\"articleSection\":[\"DevOps\",\"s-sato\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021\",\"name\":\"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8) - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png\",\"datePublished\":\"2025-10-21T07:30:00+00:00\",\"dateModified\":\"2025-11-13T00:19:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/6327e24b340d0dace8dc67be8c8693c6\"},\"description\":\"DevOps, s-sato |\u306f\u3058\u3081\u306b\",\"breadcrumb\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"DevOps\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/6327e24b340d0dace8dc67be8c8693c6\",\"name\":\"\u4f50\u85e4\u6ecb\u6643\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png\",\"caption\":\"\u4f50\u85e4\u6ecb\u6643\"},\"url\":\"https:\/\/www.creationline.com\/tech-blog\/author\/s-sato\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8) - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"DevOps, s-sato |\u306f\u3058\u3081\u306b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021","og_locale":"ja_JP","og_type":"article","og_title":"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8) - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"DevOps, s-sato |\u306f\u3058\u3081\u306b","og_url":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2025-10-21T07:30:00+00:00","article_modified_time":"2025-11-13T00:19:15+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png","type":"image\/png"}],"author":"\u4f50\u85e4\u6ecb\u6643","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"\u4f50\u85e4\u6ecb\u6643","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021"},"author":{"name":"\u4f50\u85e4\u6ecb\u6643","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/6327e24b340d0dace8dc67be8c8693c6"},"headline":"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8)","datePublished":"2025-10-21T07:30:00+00:00","dateModified":"2025-11-13T00:19:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021"},"wordCount":121,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png","keywords":["AtlasGo","CICD","db","DB Migration","DBA","DevOps","\u30b9\u30ad\u30fc\u30de\u7ba1\u7406"],"articleSection":["DevOps","s-sato"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021","url":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021","name":"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8) - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png","datePublished":"2025-10-21T07:30:00+00:00","dateModified":"2025-11-13T00:19:15+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/6327e24b340d0dace8dc67be8c8693c6"},"description":"DevOps, s-sato |\u306f\u3058\u3081\u306b","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/10\/Gemini_Generated_Image_61uxss61uxss61ux.png","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops\/80021#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps","item":"https:\/\/www.creationline.com\/tech-blog\/agile-devops"},{"@type":"ListItem","position":3,"name":"DevOps","item":"https:\/\/www.creationline.com\/tech-blog\/agile-devops\/devops"},{"@type":"ListItem","position":4,"name":"DB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebAtlas\u3067DevOps\u74b0\u5883\u306b\u304a\u3051\u308bDB\u30b9\u30ad\u30fc\u30de\u7ba1\u7406\u3092\u5b9f\u8df5\u3057\u3066\u307f\u3088\u3046(\u5f8c\u7de8)"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/6327e24b340d0dace8dc67be8c8693c6","name":"\u4f50\u85e4\u6ecb\u6643","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","caption":"\u4f50\u85e4\u6ecb\u6643"},"url":"https:\/\/www.creationline.com\/tech-blog\/author\/s-sato"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=80021"}],"version-history":[{"count":14,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80021\/revisions"}],"predecessor-version":[{"id":80650,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80021\/revisions\/80650"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/79999"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=80021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=80021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=80021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}