{"id":1908,"date":"2022-09-01T10:52:08","date_gmt":"2022-09-01T10:52:08","guid":{"rendered":"https:\/\/www.bigdata.rmutt.ac.th\/?p=1908"},"modified":"2022-09-14T03:20:34","modified_gmt":"2022-09-14T03:20:34","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%9e%e0%b8%b1%e0%b8%92%e0%b8%99%e0%b8%b2%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%9a%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-yii2-%e0%b8%95%e0%b8%ad%e0%b8%99%e0%b8%97%e0%b8%b5-5","status":"publish","type":"post","link":"https:\/\/www.bigdata.rmutt.ac.th\/?p=1908","title":{"rendered":"\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e30\u0e1a\u0e1a\u0e14\u0e49\u0e27\u0e22 Yii2: \u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 5 \u0e01\u0e32\u0e23\u0e17\u0e33 migration \u0e01\u0e31\u0e1a database"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u0e04\u0e27\u0e32\u0e21\u0e40\u0e14\u0e34\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27<\/h2>\n\n\n\n<p>\u0e22\u0e49\u0e2d\u0e19\u0e14\u0e39\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 4 \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"https:\/\/www.bigdata.rmutt.ac.th\/?p=1900\">https:\/\/www.bigdata.rmutt.ac.th\/?p=1900<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Migration \u0e04\u0e37\u0e2d<\/h2>\n\n\n\n<p>Migration \u0e16\u0e49\u0e32\u0e43\u0e2b\u0e49\u0e41\u0e1b\u0e25\u0e15\u0e23\u0e07 \u0e46 \u0e15\u0e32\u0e21 dictionary \u0e41\u0e1b\u0e25\u0e44\u0e14\u0e49\u0e27\u0e48\u0e32 &#8220;\u0e01\u0e32\u0e23\u0e42\u0e22\u0e01\u0e22\u0e49\u0e32\u0e22&#8221; \u0e41\u0e15\u0e48\u0e16\u0e49\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19 framework \u0e08\u0e30\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a database \u0e40\u0e0a\u0e48\u0e19 \u0e01\u0e32\u0e23 create\/alter table \u0e2b\u0e23\u0e37\u0e2d \u0e01\u0e32\u0e23 insert\/update\/delete data \u0e43\u0e19 table \u0e2b\u0e23\u0e37\u0e2d \u0e01\u0e32\u0e23\u0e01\u0e23\u0e30\u0e17\u0e33\u0e43\u0e14 \u0e46 \u0e01\u0e47\u0e15\u0e32\u0e21\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e1a database<\/p>\n\n\n\n<p>\u0e2b\u0e23\u0e37\u0e2d\u0e01\u0e25\u0e48\u0e32\u0e27\u0e44\u0e14\u0e49\u0e2d\u0e35\u0e01\u0e19\u0e31\u0e22\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e27\u0e48\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e27\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 migration \u0e43\u0e19 framework \u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e17\u0e33\u0e43\u0e2b\u0e49 database \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 up-to-date \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e0a\u0e23\u0e4c\u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a developer \u0e17\u0e35\u0e48\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a\u0e40\u0e23\u0e32 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49 database \u0e21\u0e35\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e17\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e19\u0e43\u0e19\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e2b\u0e25\u0e31\u0e01\u0e40\u0e2a\u0e21\u0e2d<\/p>\n\n\n\n<p>\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"https:\/\/www.yiiframework.com\/doc\/guide\/2.0\/en\/db-migrations\">https:\/\/www.yiiframework.com\/doc\/guide\/2.0\/en\/db-migrations<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e43\u0e2b\u0e21\u0e48<\/h2>\n\n\n\n<p>\u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e40\u0e23\u0e32\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 database \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e40\u0e2d\u0e07\u0e01\u0e48\u0e2d\u0e19 \u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e43\u0e19 MariaDB \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48   \u0e41\u0e25\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e43\u0e2b\u0e21\u0e48 \u0e42\u0e14\u0e22\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 &#8220;my_app&#8221; (\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e2d\u0e37\u0e48\u0e19\u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23) \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e14 create \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/08\/db_create.png\" alt=\"\" class=\"wp-image-1911\" width=\"585\" height=\"174\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u0e1b\u0e23\u0e31\u0e1a script \u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d DB<\/h2>\n\n\n\n<p>\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e44\u0e1f\u0e25\u0e4c common\\config\\main-local.php \u0e42\u0e14\u0e22\u0e1b\u0e23\u0e31\u0e1a db connect \u0e43\u0e2b\u0e49\u0e0a\u0e35\u0e49\u0e44\u0e1b\u0e17\u0e35\u0e48 database \u0e17\u0e35\u0e48\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 my_app \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 \u0e2b\u0e32\u0e01\u0e43\u0e04\u0e23\u0e43\u0e0a\u0e49 username \u0e41\u0e25\u0e30 password \u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2d\u0e37\u0e48\u0e19 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e2b\u0e23\u0e37\u0e2d\u0e43\u0e04\u0e23\u0e43\u0e0a\u0e49 database \u0e40\u0e1b\u0e47\u0e19 port \u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>       'db' => &#91;\n            'class' => 'yii\\db\\Connection',\n            'dsn' => 'mysql:host=localhost;port=3306;dbname=<strong>my_app<\/strong>',\n            'username' => 'root',\n            'password' => '',\n            'charset' => 'utf8',\n        ],<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Yii2 advanced template migration<\/h2>\n\n\n\n<p>\u0e43\u0e19 Yii2 \u0e21\u0e35\u0e44\u0e1f\u0e25\u0e4c migration \u0e21\u0e32\u0e15\u0e23\u0e10\u0e32\u0e19\u0e43\u0e2b\u0e49\u0e08\u0e33\u0e19\u0e27\u0e19 2 \u0e44\u0e1f\u0e25\u0e4c \u0e14\u0e39\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01  console\\migrations<\/p>\n\n\n\n<p>\u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 migration \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"https:\/\/mailrmuttac-my.sharepoint.com\/:u:\/g\/personal\/pongpon_n_rmutt_ac_th\/ESRe5vLHaApIn6uICwcO0woBE3bKtKP9fJGvW3EEgS7xzQ?e=ILeprT\">https:\/\/mailrmuttac-my.sharepoint.com\/:u:\/g\/personal\/pongpon_n_rmutt_ac_th\/ESRe5vLHaApIn6uICwcO0woBE3bKtKP9fJGvW3EEgS7xzQ?e=ILeprT<\/a> \u0e0b\u0e36\u0e48\u0e07\u0e1c\u0e21\u0e44\u0e14\u0e49\u0e1b\u0e23\u0e31\u0e1a\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e27\u0e49 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e19\u0e35\u0e49 \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 unzip \u0e41\u0e25\u0e30\u0e19\u0e33\u0e44\u0e1f\u0e25\u0e4c\u0e14\u0e31\u0e07\u0e01\u0e25\u0e48\u0e32\u0e27\u0e44\u0e1b\u0e27\u0e32\u0e07\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48 console\\migrations <strong>\u0e16\u0e49\u0e32\u0e44\u0e1f\u0e25\u0e4c\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19\u0e43\u0e2b\u0e49\u0e17\u0e31\u0e1a\u0e44\u0e1b\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a<\/strong> \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e1c\u0e21\u0e21\u0e35\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e1b\u0e40\u0e25\u0e47\u0e01\u0e19\u0e49\u0e2d\u0e22 \u0e40\u0e0a\u0e48\u0e19 \u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48 profile \u0e40\u0e1e\u0e34\u0e48\u0e21 \u0e0a\u0e37\u0e48\u0e2d \u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25 \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e2a\u0e31\u0e48\u0e07 migrate \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e25\u0e07\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/h2>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e41\u0e25\u0e49\u0e27\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e31\u0e48\u0e07 migrate \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e44\u0e27\u0e49\u0e43\u0e19 console\\migrations \u0e0b\u0e36\u0e48\u0e07\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1c\u0e48\u0e32\u0e19\u0e17\u0e32\u0e07 command line \u0e2b\u0e23\u0e37\u0e2d terminal \u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e04\u0e38\u0e49\u0e19\u0e40\u0e04\u0e22\u0e01\u0e31\u0e19\u0e08\u0e32\u0e01\u0e15\u0e2d\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e35\u0e49\u0e19\u0e31\u0e48\u0e19\u0e40\u0e2d\u0e07 \u0e42\u0e14\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e04\u0e37\u0e2d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php yii migrate<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\xampp\\htdocs\\my_app&gt; php yii migrate\nYii Migration Tool (based on Yii v2.0.45)\n\nCreating migration history table \"migration\"...Done.\nTotal 5 new migrations to be applied:\n        m130524_201442_init\n        m190124_110200_add_verification_token_column_to_user_table\n        m220101_004717_add_profile_column_to_user\n        m220429_012712_alter_create_at_column_in_user\n        m220430_012132_insert_default_user\n\nApply the above migrations? (yes|no) &#91;no]:<\/code><\/pre>\n\n\n\n<p>\u0e16\u0e49\u0e32 migration \u0e17\u0e33\u0e07\u0e32\u0e19 \u0e08\u0e30\u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19 \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e15\u0e2d\u0e1a yes \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e08\u0e30\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e15\u0e2d\u0e1a\u0e01\u0e25\u0e31\u0e1a\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e27\u0e48\u0e32 5 migrations were applied. Migrated up successfully. \u0e0b\u0e36\u0e48\u0e07\u0e41\u0e2a\u0e14\u0e07\u0e43\u0e2b\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23 migrate \u0e17\u0e31\u0e49\u0e07 5 \u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e23\u0e27\u0e08\u0e1e\u0e1a \u0e16\u0e39\u0e01\u0e23\u0e31\u0e19\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e2a\u0e31\u0e48\u0e07 php yii migrate \u0e2d\u0e35\u0e01\u0e23\u0e2d\u0e1a\u0e2b\u0e19\u0e36\u0e48\u0e07 \u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e30\u0e1f\u0e49\u0e2d\u0e07\u0e01\u0e25\u0e31\u0e1a\u0e27\u0e48\u0e32\u0e44\u0e21\u0e48\u0e15\u0e23\u0e27\u0e08\u0e1e\u0e1a\u0e44\u0e1f\u0e25\u0e4c migration \u0e43\u0e2b\u0e21\u0e48 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 migrate \u0e44\u0e1b\u0e04\u0e23\u0e1a\u0e41\u0e25\u0e49\u0e27<\/p>\n\n\n\n<p>\u0e25\u0e2d\u0e07\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a \u0e2a\u0e31\u0e07\u0e40\u0e01\u0e15\u0e44\u0e14\u0e49\u0e27\u0e48\u0e32\u0e21\u0e35 table \u0e1b\u0e23\u0e32\u0e01\u0e0f\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32 2 table<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"153\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/09\/table_test.png\" alt=\"\" class=\"wp-image-1922\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u0e04\u0e27\u0e32\u0e21\u0e40\u0e14\u0e34\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e22\u0e49\u0e2d\u0e19\u0e14\u0e39\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 4 \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 https:\/\/www.bigdata.rmutt.ac.th\/?p=1900 Migration \u0e04\u0e37\u0e2d Migration \u0e16\u0e49\u0e32\u0e43\u0e2b\u0e49\u0e41\u0e1b\u0e25\u0e15\u0e23\u0e07 \u0e46 \u0e15\u0e32\u0e21 dictionary \u0e41\u0e1b\u0e25\u0e44\u0e14\u0e49\u0e27\u0e48\u0e32 &#8220;\u0e01\u0e32\u0e23\u0e42\u0e22\u0e01\u0e22\u0e49\u0e32\u0e22&#8221; \u0e41\u0e15\u0e48\u0e16\u0e49\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19 framework \u0e08\u0e30\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a database \u0e40\u0e0a\u0e48\u0e19 \u0e01\u0e32\u0e23 create\/alter table \u0e2b\u0e23\u0e37\u0e2d \u0e01\u0e32\u0e23 insert\/update\/delete data \u0e43\u0e19 table \u0e2b\u0e23\u0e37\u0e2d \u0e01\u0e32\u0e23\u0e01\u0e23\u0e30\u0e17\u0e33\u0e43\u0e14 \u0e46 \u0e01\u0e47\u0e15\u0e32\u0e21\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e1a database \u0e2b\u0e23\u0e37\u0e2d\u0e01\u0e25\u0e48\u0e32\u0e27\u0e44\u0e14\u0e49\u0e2d\u0e35\u0e01\u0e19\u0e31\u0e22\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e27\u0e48\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e27\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 migration \u0e43\u0e19 framework \u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e17\u0e33\u0e43\u0e2b\u0e49 database \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 up-to-date \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e0a\u0e23\u0e4c\u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a developer \u0e17\u0e35\u0e48\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a\u0e40\u0e23\u0e32 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49 database \u0e21\u0e35\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e17\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e19\u0e43\u0e19\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e2b\u0e25\u0e31\u0e01\u0e40\u0e2a\u0e21\u0e2d \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 https:\/\/www.yiiframework.com\/doc\/guide\/2.0\/en\/db-migrations [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1630,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,21],"tags":[13,20,19],"class_list":["post-1908","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-yii2-development","tag-development","tag-web","tag-yii2"],"_links":{"self":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1908"}],"collection":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1908"}],"version-history":[{"count":14,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1908\/revisions"}],"predecessor-version":[{"id":1933,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1908\/revisions\/1933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/media\/1630"}],"wp:attachment":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}