{"id":70963,"date":"2024-03-15T09:00:00","date_gmt":"2024-03-15T00:00:00","guid":{"rendered":"https:\/\/www.creationline.com\/?p=70963"},"modified":"2024-03-18T11:10:40","modified_gmt":"2024-03-18T02:10:40","slug":"schemahero%e3%81%a7db%e3%81%aeschema-migration%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963","title":{"rendered":"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u79c1\u306fDB\u5206\u91ce\u306e\u4eba\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u81ea\u5206\u3067\u3084\u308b\u3068\u3057\u305f\u3089\u7dca\u5f35\u611f\u306b\u62bc\u3057\u3064\u3076\u3055\u308c\u3066\u8aa4\u3063\u305fDDL\u3092\u66f8\u3044\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u4eca\u56de\u306fDDL\u3088\u308a\u3044\u304f\u3089\u304b\u7c21\u5358\u306aYAML\u3067schema\u3092\u5b9a\u7fa9\u3057\u3066shema\u7ba1\u7406\u3092\u5b9f\u73fe\u3055\u305b\u308bCloud Native Computing Foundation Sandbox Projects\u306eOSS\u3067\u3042\u308bSchemaHero\u3092\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/schemahero.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/schemahero.io\/<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"578\" height=\"395\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png\" alt=\"\" class=\"wp-image-70964\" style=\"width:841px;height:auto\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png 578w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7-360x246.png 360w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u672c\u8a18\u4e8b\u306e\u6e96\u62e0\u30d0\u30fc\u30b8\u30e7\u30f3<\/h2>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306fSchemaHero v0.17.5\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SchemaHero\u3092\u3056\u3063\u304f\u308a\u7d39\u4ecb<\/h2>\n\n\n\n<p>SchemaHero\u306f\u5ba3\u8a00\u7684\u306bDB\u306eschema\u7ba1\u7406\u3092\u5b9f\u73fe\u3059\u308bOSS\u3067\u3001\u5e73\u305f\u304f\u8a00\u3048\u3070YAML\u3067\u5b9a\u7fa9\u3057\u305f\u72b6\u614b\u306eschema\u3092\u5b9f\u73fe\u3057\u3066\u304f\u308c\u308bOSS\u3067\u3059\u3002(Ansible\u306eschema\u7248\u3068\u30a4\u30e1\u30fc\u30b8\u3059\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093)<\/p>\n\n\n\n<p>Cloud Native Computing Foundation Sandbox Projects\u306eOSS\u3067\u30e9\u30a4\u30bb\u30f3\u30b9\u306fApache-2.0 license\u3067\u3059\u3002<\/p>\n\n\n\n<p>Kubernetes\u4e0a\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30db\u30fc\u30e0\u30da\u30fc\u30b8\uff1a <a href=\"https:\/\/schemahero.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/schemahero.io\/<\/a><\/p>\n\n\n\n<p>GitHub\u30ea\u30dd\u30b8\u30c8\u30ea\uff1a<a href=\"https:\/\/github.com\/schemahero\/schemahero\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/schemahero\/schemahero<\/a><\/p>\n\n\n\n<p>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff1a<a href=\"https:\/\/schemahero.io\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/schemahero.io\/docs\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SchemaHero\u304c\u4f7f\u3048\u308bDB\u30b5\u30fc\u30d0\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea<\/h2>\n\n\n\n<p>SchemaHero v0.17.5\u3067\u306f\u4ee5\u4e0b\u306eDB\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Postgresql 9.5 - 15.1<\/li>\n\n\n\n<li>Mysql 5.6 - 8.0<\/li>\n\n\n\n<li>Cockroachdb v19.2 - v22.1<\/li>\n\n\n\n<li>Cassandra 3.x<\/li>\n\n\n\n<li>SQLite 3.x<\/li>\n<\/ul>\n\n\n\n<p>\u6700\u65b0\u306e\u5bfe\u5fdc\u72b6\u6cc1\u3001\u4eca\u5f8c\u306e\u5bfe\u5fdc\u30ed\u30fc\u30c9\u30de\u30c3\u30d7\u306f\u3053\u3061\u3089\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/schemahero.io\/databases\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/schemahero.io\/databases\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ORM\u3068\u306e\u6bd4\u8f03<\/h2>\n\n\n\n<p>ORM\u3068\u306e\u6bd4\u8f03\u306fSchemaHero\u516c\u5f0f\u3067\u3082\u8a00\u53ca\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/schemahero.io\/learn\/comparisons\/orm\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/schemahero.io\/learn\/comparisons\/orm\/<\/a><\/p>\n\n\n\n<p>\u8981\u70b9\u3068\u3057\u3066\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SchemaHero\u306fschema\u306e\u7ba1\u7406\u3001\u5909\u66f4\u306e\u8ffd\u8de1\u3092\u3088\u308a\u826f\u3044\u65b9\u6cd5\u3067\u884c\u3046\u305f\u3081\u306e\u3082\u306e<\/li>\n\n\n\n<li>SchemaHero\u306fshcema migration tool\u3067ORM\u306e\u3088\u3046\u306aquery builder\u306e\u6a5f\u80fd\u306f\u306a\u3044<\/li>\n\n\n\n<li>\u65e2\u306bORM\u3067schema\u3092\u7ba1\u7406\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070SchemaHero\u3092\u5c0e\u5165\u3059\u308b\u7406\u7531\u306f\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<p>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u691c\u8a3c\u5185\u5bb9<\/h2>\n\n\n\n<p>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5185\u5bb9\u3092\u305f\u3069\u308a\u3001SchemaHero\u3067schema\u306e\u30c7\u30d7\u30ed\u30a4\u3001\u5909\u66f4\u3092\u884c\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SchemaHero\u306e\u5c0e\u5165<\/h3>\n\n\n\n<p>SchemaHero\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u69cb\u6210\u3092\u53d6\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u5c0e\u5165<\/h4>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306fkubectl\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u3066\u3001krew\u7d4c\u7531\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>krew\u3092\u5c0e\u5165\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u304b\u3089\u5148\u306b\u5c0e\u5165\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/krew.sigs.k8s.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/krew.sigs.k8s.io\/<\/a><\/p>\n\n\n\n<p>krew\u3055\u3048\u3042\u308c\u3070\u5c0e\u5165\u306f\u3059\u3050\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl krew update\n$ kubectl krew install schemahero<\/code><\/pre>\n\n\n\n<p>\u6b63\u5e38\u306b\u5c0e\u5165\u3055\u308c\u305f\u304b\u306e\u78ba\u8a8d\u306f\u30b3\u30de\u30f3\u30c9\u304b\u3089<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero version\nSchemaHero v0.17.5<\/code><\/pre>\n\n\n\n<p>\u3068\u3044\u3063\u305f\u5f62\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">SchemaHero\u306e\u5c0e\u5165<\/h4>\n\n\n\n<p>SchemaHero\u3001SchemaHero\u306e\u5229\u7528\u3059\u308bCRD\u306e\u5c0e\u5165\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u30891\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero install<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u4f9d\u5b58\u305b\u305a\u3001\u624b\u52d5\u3084Git\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089YAML\u3092\u9069\u7528\u3057\u305f\u3044\u5834\u5408\u306f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero install --yaml<\/code><\/pre>\n\n\n\n<p>\u3067\u540c\u7b49\u306eYAML\u5b9a\u7fa9\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5c0e\u5165\u7d50\u679c\u306f\u30b3\u30de\u30f3\u30c9\u304b\u3089<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl get pod -n schemahero-system&nbsp;\nNAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; READY &nbsp; STATUS&nbsp; &nbsp; RESTARTS &nbsp; AGE\nschemahero-0 &nbsp; 1\/1 &nbsp; &nbsp; Running &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12m\n\n$ kubectl api-resources | grep schemahero.io\ndatabases&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; databases.schemahero.io\/v1alpha4 &nbsp; true &nbsp; &nbsp; &nbsp; &nbsp; Database\nmigrations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; schemas.schemahero.io\/v1alpha4 &nbsp; &nbsp; true &nbsp; &nbsp; &nbsp; &nbsp; Migration\ntables &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; schemas.schemahero.io\/v1alpha4 &nbsp; &nbsp; true &nbsp; &nbsp; &nbsp; &nbsp; Table\nviews&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; schemas.schemahero.io\/v1alpha4 &nbsp; &nbsp; true &nbsp; &nbsp; &nbsp; &nbsp; View<\/code><\/pre>\n\n\n\n<p>\u3068\u3044\u3063\u305f\u5f62\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u5b9f\u65bd\u7528\u306eDB\u3068\u3057\u3066PostgreSQL pod\u3092\u30c7\u30d7\u30ed\u30a4<\/h3>\n\n\n\n<p>\u65b0\u305f\u306b\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u306b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u5229\u7528\u3059\u308bDB\u3068\u3057\u3066PostgreSQL\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl create ns schemahero-tutorial\n$ kubectl apply -n schemahero-tutorial -f https:\/\/raw.githubusercontent.com\/schemahero\/schemahero\/main\/examples\/tutorial\/postgresql\/postgresql-11.8.0.yaml<\/code><\/pre>\n\n\n\n<p>\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306a\u5b9a\u7fa9\u304c\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u308b\u304b\u306f<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/schemahero\/schemahero\/blob\/main\/examples\/tutorial\/postgresql\/postgresql-11.8.0.yaml\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/schemahero\/schemahero\/blob\/main\/examples\/tutorial\/postgresql\/postgresql-11.8.0.yaml<\/a><\/p>\n\n\n\n<p>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u6b63\u5e38\u304b\u306e\u5224\u65ad\u306fpod\u304crunning\u306b\u306a\u3063\u3066\u3044\u308b\u4e8b\u3092\u78ba\u8a8d\u3057\u305f\u5f8c\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl exec -it -n schemahero-tutorial postgresql-0 -- psql -U airlinedb-user -d airlinedb<\/code><\/pre>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a4\u30f3(\u30d1\u30b9\u30ef\u30fc\u30c9\u306fpassword)\u3057\u3066\u63a5\u7d9a\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30ed\u30b0\u30a4\u30f3\u5f8c\u306f\\dt\u30b3\u30de\u30f3\u30c9\u3067\u521d\u671f\u72b6\u614b\u3067\u306fschema\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>airlinedb=&gt; \\dt\nDid not find any relations.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">SchemaHero\u3092DB\u306b\u63a5\u7d9a\u3059\u308b<\/h3>\n\n\n\n<p>\u5b9f\u306e\u3068\u3053\u308d\u3001\u307e\u3060SchemaHero\u3068DB\u306f\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a\u5148\u3068\u8a8d\u8a3c\u60c5\u5831\u3092\u4e0e\u3048\u3066SchemaHero\u3092DB\u306b\u63a5\u7d9a\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>airline-db.yaml\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: databases.schemahero.io\/v1alpha4\nkind: Database\nmetadata:\n  name: airlinedb\n  namespace: schemahero-tutorial\nspec:\n  connection:\n    postgres: # \u63a5\u7d9a\u5148\u306e\u7a2e\u985e\u306bPostgreSQL\u30b5\u30fc\u30d0\u3092\u6307\u5b9a\n      uri: # uri\u5f62\u5f0f\u3067\u63a5\u7d9a\u5148\u3001\u8a8d\u8a3c\u60c5\u5831\u3092\u6307\u5b9a\n        valueFrom:\n          secretKeyRef:\n            name: postgresql\n            key: uri<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u3053\u306eairline-db.yaml\u30d5\u30a1\u30a4\u30eb\u3092kubernetes\u306b\u9069\u7528\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl apply -f .\/airline-db.yaml<\/code><\/pre>\n\n\n\n<p>airline-db.yaml\u306e\u4e2d\u8eab\u306e\u89e3\u8aac\u3067\u3059\u304c\u3001airlinedb\u3068\u3044\u3046\u540d\u524d\u306eDatabase\u30ab\u30b9\u30bf\u30e0\u30ea\u30bd\u30fc\u30b9\u3067SchemaHero\u306bDB\u306e\u63a5\u7d9a\u60c5\u5831\u3092\u6e21\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e2d\u8eab\u306fspec.connection.postgres\u3067PostgreSQL\u30b5\u30fc\u30d0\u3067\u3042\u308b\u4e8b\u3092\u793a\u3057\u3001\u305d\u306e\u4e2d\u306euri\u3067\u63a5\u7d9a\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a\u6587\u5b57\u5217\u306fsecret\u30ea\u30bd\u30fc\u30b9\u3092\u53c2\u7167\u3057\u3066\u3044\u3066\u3001\u53c2\u7167\u7d50\u679c\u306fpostgresql:\/\/airlinedb-user:password@postgresql:5432\/airlinedb\u3068\u3044\u3063\u305f\u6587\u5b57\u5217\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067DB\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u60c5\u5831\u304cSchemaHero\u306b\u6e21\u308a\u3001SchemaHero\u304cDB\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SchemaHero\u3067table\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n\n\n\n<p>SchemaHero\u7d4c\u7531\u3067\u3053\u3061\u3089\u306eDDL\u3067\u4f5c\u6210\u3055\u308c\u308btable\u3068\u7b49\u3057\u3044table\u3092\u4f5c\u6210\u3057\u307e\u3059<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE airport\n  (\n    code char(4) not null primary key,\n    name varchar(255)\n  )<\/code><\/pre>\n\n\n\n<p>SchemaHero\u3067table\u306fTable\u30ab\u30b9\u30bf\u30e0\u30ea\u30bd\u30fc\u30b9\u3067\u5b9a\u7fa9\u3057\u307e\u3059<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306a\u624b\u9806\u3068\u3057\u3066\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>airport-table.yaml\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: schemas.schemahero.io\/v1alpha4\nkind: Table\nmetadata:\n  name: airport\n  namespace: schemahero-tutorial\nspec:\n  database: airlinedb # airline-db.yaml\u3067\u5b9a\u7fa9\u3057\u305f\u540d\u524d\u306b\u63c3\u3048\u308b\n  name: airport # table\u540d\n  schema:\n    postgres:\n      primaryKey: &#91;code] # primalyKey\u306ecolumn\u3092\u6307\u5b9a\n      columns: # column\u306e\u540d\u524d\u3068\u578b\u3092\u5b9a\u7fa9\n        - name: code\n          type: char(4)\n        - name: name\n          type: varchar(255)\n          constraints:\n            notNull: true # not null\u5236\u7d04\u3092\u6709\u52b9\u306b\u3059\u308b<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0a\u8a18\u306etable\u5b9a\u7fa9\u3092\u9069\u7528\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl apply -f .\/airport-table.yaml<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067table\u5b9a\u7fa9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001\u3053\u306etable\u5b9a\u7fa9\u3092\u3069\u3046\u5b9f\u73fe\u3059\u308b\u304b\u3092\u30ec\u30d3\u30e5\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u627f\u8a8d\u5f85\u3061\u306e\u5909\u66f4\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4f8b\u3068\u3057\u3066\u3001\u3053\u3053\u3067\u306fID\u304ceaa36ef\u306e\u5909\u66f4\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero get migrations -n schemahero-tutorial \nID       DATABASE   TABLE    PLANNED  EXECUTED  APPROVED  REJECTED\neaa36ef  airlinedb  airport  13m    <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5177\u4f53\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u5185\u5bb9\u306a\u306e\u304b\u898b\u3066\u3044\u304d\u307e\u3059<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero describe migration eaa36ef -n schemahero-tutorial\n\nMigration Name: eaa36ef\nGenerated DDL Statement (generated at 2024-03-02T11:41:54+09:00): \n  create table \"airport\" (\"code\" character (4), \"name\" character varying (255) not null, primary key (\"code\"))\n\nTo apply this migration:\n  kubectl schemahero -n schemahero-tutorial approve migration eaa36ef\n\nTo recalculate this migration against the current schema:\n  kubectl schemahero -n schemahero-tutorial recalculate migration eaa36ef\n\nTo deny and cancel this migration:\n  kubectl schemahero -n schemahero-tutorial reject migration eaa36ef<\/code><\/pre>\n\n\n\n<p>DDL\u3068\u3057\u3066\u306fcreate table \"airport\" (\"code\" character (4), \"name\" character varying (255) not null, primary key (\"code\"))\u304c\u9069\u7528\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u3092\u627f\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero -n schemahero-tutorial approve migration eaa36ef\nMigration eaa36ef approved<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u5909\u308f\u3063\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero get migrations -n schemahero-tutorial\nID       DATABASE   TABLE    PLANNED  EXECUTED  APPROVED  REJECTED\neaa36ef  airlinedb  airport  19m      52s       52s       <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DB\u5074\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067table\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>airlinedb=&gt; \\d+\n                         List of relations\n Schema |  Name   | Type  |     Owner      |  Size   | Description \n--------+---------+-------+----------------+---------+-------------\n public | airport | table | airlinedb-user | 0 bytes | \n(1 row)\n \nairlinedb=&gt; \\d+ airport\n                                          Table \"public.airport\"\n Column |          Type          | Collation | Nullable | Default | Storage  | Stats target | Description \n--------+------------------------+-----------+----------+---------+----------+--------------+-------------\n code   | character(4)           |           | not null |         | extended |              | \n name   | character varying(255) |           | not null |         | extended |              | \nIndexes:\n    \"airport_pkey\" PRIMARY KEY, btree (code)\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u3068\u540c\u69d8\u306e\u624b\u9806\u3067schedule-table.yaml\u3092\u4f5c\u6210\u3057\u3001schedule table\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>schedule-table.yaml\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: schemas.schemahero.io\/v1alpha4\nkind: Table\nmetadata:\n  name: schedule\n  namespace: schemahero-tutorial\nspec:\n  database: airlinedb\n  name: schedule\n  schema:\n    postgres:\n      primaryKey: &#91;flight_num]\n      columns:\n        - name: flight_num\n          type: int\n        - name: origin\n          type: char(4)\n          constraints:\n            notNull: true\n        - name: destination\n          type: char(4)\n          constraints:\n            notNull: true\n        - name: departure_time\n          type: time\n          constraints:\n            notNull: true\n        - name: arrival_time\n          type: time\n          constraints:\n            notNull: true<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>schedule-table.yaml\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl apply -f .\/schedule-table.yaml<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero get migrations -n schemahero-tutorial\nID       DATABASE   TABLE     PLANNED  EXECUTED  APPROVED  REJECTED\na9626a8  airlinedb  schedule  10s                          \neaa36ef  airlinedb  airport   30m      11m       11m       \n\n$ kubectl schemahero describe migration a9626a8 -n schemahero-tutorial\n\nMigration Name: a9626a8\n\nGenerated DDL Statement (generated at 2024-03-02T12:12:33+09:00): \n  create table \"schedule\" (\"flight_num\" integer, \"origin\" character (4) not null, \"destination\" character (4) not null, \"departure_time\" time not null, \"arrival_time\" time not null, primary key (\"flight_num\"))\n\nTo apply this migration:\n  kubectl schemahero -n schemahero-tutorial approve migration a9626a8\n\nTo recalculate this migration against the current schema:\n  kubectl schemahero -n schemahero-tutorial recalculate migration a9626a8\n\nTo deny and cancel this migration:\n  kubectl schemahero -n schemahero-tutorial reject migration a9626a8<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u3092\u627f\u8a8d\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero -n schemahero-tutorial approve migration a9626a8\nMigration a9626a8 approved<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DB\u5074\u3067table\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>airlinedb=&gt; \\d+ schedule\n                                             Table \"public.schedule\"\n     Column     |          Type          | Collation | Nullable | Default | Storage  | Stats target | Description \n----------------+------------------------+-----------+----------+---------+----------+--------------+-------------\n flight_num     | integer                |           | not null |         | plain    |              | \n origin         | character(4)           |           | not null |         | extended |              | \n destination    | character(4)           |           | not null |         | extended |              | \n departure_time | time without time zone |           | not null |         | plain    |              | \n arrival_time   | time without time zone |           | not null |         | plain    |              | \nIndexes:\n    \"schedule_pkey\" PRIMARY KEY, btree (flight_num)<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067SchemaHero\u3092\u901a\u3057\u3066table\u3092\u4f5c\u6210\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Table\u5b9a\u7fa9\u306e\u5909\u66f4<\/h3>\n\n\n\n<p>\u5148\u7a0b\u4f5c\u6210\u3057\u305fschedule table\u306ecolumn\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5909\u66f4\u5185\u5bb9\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>departure_time\u3092nullable\u306b<\/li>\n\n\n\n<li>arrival_time\u3092nullable\u306b<\/li>\n\n\n\n<li>int\u304c\u5165\u308bduration column\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<p>\u306b\u306a\u308a\u307e\u3059\u3002\u624b\u9806\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fschedule-table.yaml\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u306b\u5909\u66f4\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: schemas.schemahero.io\/v1alpha4\nkind: Table\nmetadata:\n  name: schedule\n  namespace: schemahero-tutorial\nspec:\n  database: airlinedb\n  name: schedule\n  schema:\n    postgres:\n      primaryKey: &#91;flight_num]\n      columns:\n        - name: flight_num\n          type: int\n        - name: origin\n          type: char(4)\n          constraints:\n            notNull: true\n        - name: destination\n          type: char(4)\n          constraints:\n            notNull: true\n        - name: departure_time # constraints\u3092\u53d6\u308a\u9664\u304f\n          type: time\n        - name: arrival_time # constraints\u3092\u53d6\u308a\u9664\u304f\n          type: time\n        - name: duration # \u8ffd\u52a0\u5206\n          type: int<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>schedule-table.yaml\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl apply -f .\/schedule-table.yaml<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero get migrations -n schemahero-tutorial\nID       DATABASE   TABLE     PLANNED  EXECUTED  APPROVED  REJECTED\na9626a8  airlinedb  schedule  12m      9m37s     9m37s     \neaa36ef  airlinedb  airport   43m      24m       24m       \nfa32022  airlinedb  schedule  4s                           \n\n$ kubectl schemahero describe migration fa32022 -n schemahero-tutorial\n\n\nMigration Name: fa32022\n\nGenerated DDL Statement (generated at 2024-03-02T12:24:56+09:00): \n  alter table \"schedule\" alter column \"departure_time\" type time, alter column \"departure_time\" drop not null;\nalter table \"schedule\" alter column \"arrival_time\" type time, alter column \"arrival_time\" drop not null;\nalter table \"schedule\" add column \"duration\" integer\n\nTo apply this migration:\n  kubectl schemahero -n schemahero-tutorial approve migration fa32022\n\nTo recalculate this migration against the current schema:\n  kubectl schemahero -n schemahero-tutorial recalculate migration fa32022\n\nTo deny and cancel this migration:\n  kubectl schemahero -n schemahero-tutorial reject migration fa32022<\/code><\/pre>\n\n\n\n<p>alter table\u304c\u5b9f\u884c\u3055\u308c\u3001table\u5b9a\u7fa9\u3092\u5909\u66f4\u3059\u308b\u5185\u5bb9\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u3092\u627f\u8a8d\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero -n schemahero-tutorial approve migration fa32022\nMigration fa32022 approved<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DB\u5074\u3067\u5909\u66f4\u304c\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>airlinedb=&gt; \\d+ schedule\n                                             Table \"public.schedule\"\n     Column     |          Type          | Collation | Nullable | Default | Storage  | Stats target | Description \n----------------+------------------------+-----------+----------+---------+----------+--------------+-------------\n flight_num     | integer                |           | not null |         | plain    |              | \n origin         | character(4)           |           | not null |         | extended |              | \n destination    | character(4)           |           | not null |         | extended |              | \n departure_time | time without time zone |           |          |         | plain    |              | \n arrival_time   | time without time zone |           |          |         | plain    |              | \n duration       | integer                |           |          |         | plain    |              | \nIndexes:\n    \"schedule_pkey\" PRIMARY KEY, btree (flight_num)<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067table\u306e\u5b9a\u7fa9\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002table\u4f5c\u6210\u306e\u6642\u3068\u624b\u9806\u304c\u5909\u308f\u3089\u306a\u3044\u306e\u3067\u899a\u3048\u3084\u3059\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5916\u90e8\u30ad\u30fc\u5236\u7d04\u306e\u8ffd\u52a0<\/h3>\n\n\n\n<p>\u5148\u7a0b\u306eschedule table\u306b\u5916\u90e8\u30ad\u30fc\u5236\u7d04\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>airport table\u306ecode column\u3092schedule table\u306eorigin column\u306e\u5916\u90e8\u30ad\u30fc\u306b\u6307\u5b9a\u3059\u308b<\/li>\n\n\n\n<li>airport table\u306ecode column\u3092schedule table\u306edestination column\u306e\u5916\u90e8\u30ad\u30fc\u306b\u6307\u5b9a\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<p>\u5b9f\u73fe\u65b9\u6cd5\u306f\u5148\u7a0b\u3068\u540c\u3058\u304f\u3001schedule-table.yaml\u306e\u5909\u66f4\u3068\u9069\u7528\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>schedule-table.yaml\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u306b\u5909\u66f4\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: schemas.schemahero.io\/v1alpha4\nkind: Table\nmetadata:\n  name: schedule\n  namespace: schemahero-tutorial\nspec:\n  database: airlinedb\n  name: schedule\n  schema:\n    postgres:\n      primaryKey: &#91;flight_num]\n      foreignKeys: # \u3053\u3053\u3067\u5916\u90e8\u30ad\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\n        - columns:\n            - origin # \u5916\u90e8\u30ad\u30fc\u5236\u7d04\u3092\u9069\u7528\u3059\u308bcolumn\n          references: # \u5916\u90e8\u30ad\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308btable\u306ecolumn\u3092\u6307\u5b9a\u3059\u308b\n            table: airport\n            columns:\n              - code\n        - columns:\n          - destination\n          references:\n            table: airport\n            columns:\n              - code\n      columns:\n        - name: flight_num\n          type: int\n        - name: origin\n          type: char(4)\n          constraints:\n            notNull: true\n        - name: destination\n          type: char(4)\n          constraints:\n            notNull: true\n        - name: departure_time\n          type: time\n        - name: arrival_time\n          type: time\n        - name: duration\n          type: int<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>schedule-table.yaml\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl apply -f .\/schedule-table.yaml<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero get migrations -n schemahero-tutorial\nID       DATABASE   TABLE     PLANNED  EXECUTED  APPROVED  REJECTED\na9626a8  airlinedb  schedule  27m      25m       25m       \nb12d3fd  airlinedb  schedule  40s                          \neaa36ef  airlinedb  airport   58m      39m       39m       \nfa32022  airlinedb  schedule  15m      13m       13m \n\n$ kubectl schemahero -n schemahero-tutorial describe migration b12d3fd\n\nMigration Name: b12d3fd\n\nGenerated DDL Statement (generated at 2024-03-12T12:39:48+09:00): \n  alter table schedule add constraint schedule_origin_fkey foreign key (\"origin\") references \"airport\" (\"code\");\nalter table schedule add constraint schedule_destination_fkey foreign key (\"destination\") references \"airport\" (\"code\")\n\nTo apply this migration:\n  kubectl schemahero -n schemahero-tutorial approve migration b12d3fd\n\nTo recalculate this migration against the current schema:\n  kubectl schemahero -n schemahero-tutorial recalculate migration b12d3fd\n\nTo deny and cancel this migration:\n  kubectl schemahero -n schemahero-tutorial reject migration b12d3fd<\/code><\/pre>\n\n\n\n<p>alter table\u304c\u5b9f\u884c\u3055\u308c\u3001\u5916\u90e8\u30ad\u30fc\u5236\u7d04\u304c\u9069\u7528\u3055\u308c\u308b\u5185\u5bb9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u3092\u627f\u8a8d\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ kubectl schemahero -n schemahero-tutorial approve migration b12d3fd\nMigration b12d3fd approved<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5909\u66f4\u304c\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u304bDB\u5074\u3067\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>airlinedb=&gt; \\d+ schedule\n                                             Table \"public.schedule\"\n     Column     |          Type          | Collation | Nullable | Default | Storage  | Stats target | Description \n----------------+------------------------+-----------+----------+---------+----------+--------------+-------------\n flight_num     | integer                |           | not null |         | plain    |              | \n origin         | character(4)           |           | not null |         | extended |              | \n destination    | character(4)           |           | not null |         | extended |              | \n departure_time | time without time zone |           |          |         | plain    |              | \n arrival_time   | time without time zone |           |          |         | plain    |              | \n duration       | integer                |           |          |         | plain    |              | \nIndexes:\n    \"schedule_pkey\" PRIMARY KEY, btree (flight_num)\nForeign-key constraints:\n    \"schedule_destination_fkey\" FOREIGN KEY (destination) REFERENCES airport(code)\n    \"schedule_origin_fkey\" FOREIGN KEY (origin) REFERENCES airport(code)<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u5916\u90e8\u30ad\u30fc\u5236\u7d04\u304c\u8ffd\u52a0\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>DDL\u304c\u82e6\u624b\u306a\u81ea\u5206\u3067\u3082SchemaHero\u3067\u306a\u3089schema\u7ba1\u7406\u3067\u304d\u305d\u3046\u306a\u6c17\u304c\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5404ORM\u306e\u66f8\u304d\u65b9\u3084\u65b9\u8a00\u3092\u899a\u3048\u306a\u304f\u3066\u3082\u6163\u308c\u89aa\u3057\u3093\u3060YAML\u3067\u5b9a\u7fa9\u3067\u304d\u308b\u3068\u3053\u308d\u306f\u597d\u5370\u8c61\u3067\u3057\u305f\u3002(\u69cb\u9020\u306f\u899a\u3048\u308b\/\u8abf\u3079\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c...)<\/p>\n\n\n\n<p>DB\u306e\u77e5\u8b58\u306f\u5fc5\u8981\u3067\u3059\u304c\u3001\u3042\u307e\u308a\u69cb\u9020\u3092\u899a\u3048\u306a\u304f\u3068\u3082\u4ed6\u4eba\u306e\u66f8\u3044\u305fYAML\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u306a\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002 \u79c1\u306fDB\u5206\u91ce\u306e\u4eba\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u81ea\u5206\u3067\u3084\u308b\u3068\u3057\u305f\u3089\u7dca\u5f35\u611f\u306b\u62bc\u3057\u3064\u3076\u3055\u308c\u3066\u8aa4\u3063\u305fDDL\u3092 [&#8230;]<\/p>\n","protected":false},"author":150,"featured_media":70964,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[889,122],"tags":[123,112,1006],"class_list":["post-70963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-h-kanno","category-kubernetes","tag-k8s","tag-kubernetes","tag-schemahero"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"h-kanno, Kubernetes |\u306f\u3058\u3081\u306b DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002\" \/>\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\/cloudnative\/kubernetes\/70963\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"h-kanno, Kubernetes |\u306f\u3058\u3081\u306b DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963\" \/>\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:author\" content=\"https:\/\/www.facebook.com\/HiKanno\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-15T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-18T02:10:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"578\" \/>\n\t<meta property=\"og:image:height\" content=\"395\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u83c5\u91ce \u6d0b\u4fe1\" \/>\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=\"\u83c5\u91ce \u6d0b\u4fe1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"8\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\\\/cloudnative\\\/kubernetes\\\/70963#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963\"},\"author\":{\"name\":\"\u83c5\u91ce \u6d0b\u4fe1\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/1605fbdd089ad11458f9f3b77984ea9e\"},\"headline\":\"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f\",\"datePublished\":\"2024-03-15T00:00:00+00:00\",\"dateModified\":\"2024-03-18T02:10:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963\"},\"wordCount\":278,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/image-7.png\",\"keywords\":[\"k8s\",\"Kubernetes\",\"SchemaHero\"],\"articleSection\":[\"h-kanno\",\"Kubernetes\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963\",\"name\":\"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f - 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\\\/cloudnative\\\/kubernetes\\\/70963#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/image-7.png\",\"datePublished\":\"2024-03-15T00:00:00+00:00\",\"dateModified\":\"2024-03-18T02:10:40+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/1605fbdd089ad11458f9f3b77984ea9e\"},\"description\":\"h-kanno, Kubernetes |\u306f\u3058\u3081\u306b DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/image-7.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/image-7.png\",\"width\":578,\"height\":395},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\\\/70963#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Kubernetes\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/kubernetes\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f\"}]},{\"@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\\\/1605fbdd089ad11458f9f3b77984ea9e\",\"name\":\"\u83c5\u91ce \u6d0b\u4fe1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/img_1_1717486114459-230x230.webp\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/img_1_1717486114459-230x230.webp\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/img_1_1717486114459-230x230.webp\",\"caption\":\"\u83c5\u91ce \u6d0b\u4fe1\"},\"description\":\"\u8272\u3005\u3084\u3089\u305b\u3066\u3082\u3089\u3063\u3066\u3044\u308b\u7cfb\u30a8\u30f3\u30b8\u30cb\u30a2\u3002 Arch Linux\u30e6\u30fc\u30b6\u30fc\u3002\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/HiKanno\",\"https:\\\/\\\/jp.linkedin.com\\\/in\\\/kanno\"],\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/h-kanno\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"h-kanno, Kubernetes |\u306f\u3058\u3081\u306b DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002","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\/cloudnative\/kubernetes\/70963","og_locale":"ja_JP","og_type":"article","og_title":"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"h-kanno, Kubernetes |\u306f\u3058\u3081\u306b DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_author":"https:\/\/www.facebook.com\/HiKanno","article_published_time":"2024-03-15T00:00:00+00:00","article_modified_time":"2024-03-18T02:10:40+00:00","og_image":[{"width":578,"height":395,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png","type":"image\/png"}],"author":"\u83c5\u91ce \u6d0b\u4fe1","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"\u83c5\u91ce \u6d0b\u4fe1","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"8\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963"},"author":{"name":"\u83c5\u91ce \u6d0b\u4fe1","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/1605fbdd089ad11458f9f3b77984ea9e"},"headline":"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f","datePublished":"2024-03-15T00:00:00+00:00","dateModified":"2024-03-18T02:10:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963"},"wordCount":278,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png","keywords":["k8s","Kubernetes","SchemaHero"],"articleSection":["h-kanno","Kubernetes"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963","name":"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f - 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\/cloudnative\/kubernetes\/70963#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png","datePublished":"2024-03-15T00:00:00+00:00","dateModified":"2024-03-18T02:10:40+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/1605fbdd089ad11458f9f3b77984ea9e"},"description":"h-kanno, Kubernetes |\u306f\u3058\u3081\u306b DB\u306eschema\u7ba1\u7406\u3068\u3044\u3048\u3070\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u304cDDL\u66f8\u3044\u3066\u6d41\u3059\u30ec\u30d9\u30eb\u306e\u9ad8\u3044\u4f5c\u696d\u306e\u4e00\u3064\u3060\u3068\u3044\u3046\u504f\u898b\u3092\u500b\u4eba\u7684\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-7.png","width":578,"height":395},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes\/70963#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"Kubernetes","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/kubernetes"},{"@type":"ListItem","position":4,"name":"SchemaHero\u3067DB\u306eschema migration\u3057\u3066\u307f\u305f"}]},{"@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\/1605fbdd089ad11458f9f3b77984ea9e","name":"\u83c5\u91ce \u6d0b\u4fe1","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/08\/img_1_1717486114459-230x230.webp","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/08\/img_1_1717486114459-230x230.webp","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/08\/img_1_1717486114459-230x230.webp","caption":"\u83c5\u91ce \u6d0b\u4fe1"},"description":"\u8272\u3005\u3084\u3089\u305b\u3066\u3082\u3089\u3063\u3066\u3044\u308b\u7cfb\u30a8\u30f3\u30b8\u30cb\u30a2\u3002 Arch Linux\u30e6\u30fc\u30b6\u30fc\u3002","sameAs":["https:\/\/www.facebook.com\/HiKanno","https:\/\/jp.linkedin.com\/in\/kanno"],"url":"https:\/\/www.creationline.com\/tech-blog\/author\/h-kanno"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/70963","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\/150"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=70963"}],"version-history":[{"count":12,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/70963\/revisions"}],"predecessor-version":[{"id":71086,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/70963\/revisions\/71086"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/70964"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=70963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=70963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=70963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}