| dbix :: migration :: µð·ºÅ丮 DBIX :: Migration :: µð·ºÅ丮´Â SQL ½ºÅ°¸¶¸¦ ¼³Ä¡ / Á¦°Å / ¾÷±×·¹À̵å / ´Ù¿î ±×·¹À̵åÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
dbix :: migration :: µð·ºÅ丮 ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Tyler MacDonald
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~crakrjack/
dbix :: migration :: µð·ºÅ丮 ű×
dbix :: migration :: µð·ºÅ丮 ¼³¸í
dbix :: migration :: µð·ºÅ丮´Â SQL ½ºÅ°¸¶¸¦ ¼³Ä¡ / Á¦°Å / ¾÷±×·¹À̵å / ´Ù¿î ±×·¹À̵åÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. dbix :: migration :: µð·ºÅ丮´Â SQL SCHEMAS.SYNOPSIS¸¦ ¼³Ä¡ / Á¦°Å / ¾÷±×·¹À̵å / ´Ù¿î ±×·¹À̵带 ¼³Ä¡ / Á¦°Å / ¾÷±×·¹À̵åÇÏ´Â PERL ¸ðµâÀÔ´Ï´Ù. DBIX :: Migration :: µð·ºÅ丮; DBI¸¦ »ç¿ëÇϽʽÿÀ. MY $ dbh = dbi-> connect ( 'db : ¹º°¡ : ÀϺΠ= ¿©±â¼', '»ç¿ëÀÚ', 'Æнº'); my $ m = dbix :: migration :: directories-> new (base => / path / where / schemas / are where / schemas / is 'schema => myApp', myApp_version_from => 'myApp :: datapackage', dbh => $ dbh); $ M-> ¸¶À̱׷¹ÀÌ¼Ç ¶Ç´Â ´ÙÀÌ "µ¥ÀÌÅͺ£À̽º ¼³Ä¡ ½ÇÆÐ!"; dbix :: migration :: µð·ºÅ丮´Â µ¥ÀÌÅͺ£À̽º ½ºÅ°¸¶¸¦ ½±°Ô °ü¸®ÇϱâÀ§ÇÑ ÇÁ·¹ÀÓ ¿öÅ©¸¦ Á¦°øÇÕ´Ï´Ù. ½ºÅ°¸¶¸¦ ´©¸¥ ´ÙÀ½ ÇØ´ç µð·ºÅ丮¿¡¼ ½ºÅ°¸¶¸¦ ¼³Ä¡, Á¦°Å, ¾÷±×·¹ÀÌµå ¶Ç´Â ´Ù¿î ±×·¹À̵å ÇÒ SQL Äڵ尡 Æ÷ÇÔ µÈ ÇÏÀ§ µð·ºÅ͸®¸¦ ¸¸µå´Â µð·ºÅ丮¸¦ ¸¸µì´Ï´Ù. ½ºÅ°¸¶ ·¹À̾ƿôÀº ¾Æ·¡ÀÇ "µð·ºÅ͸® ·¹À̾ƿô"¼½¼Ç¿¡¼ ÀÚ¼¼È÷ ¼³¸íÇÕ´Ï´Ù. µ¥ÀÌÅͺ£À̽º ½ºÅ°¸¶¸¦ ¼³Ä¡, ¾÷±×·¹ÀÌµå ¶Ç´Â ´Ù¿î ±×·¹À̵åÇ϶ó´Â ¸Þ½ÃÁö°¡ Ç¥½ÃµÇ¸é DBIX :: migration :: µð·ºÅ丮 °¡ÀÌ µð·ºÅ丮¸¦º¸°í °¡Àå ªÀº °æ·Î¸¦ ãÀ¸·Á°í ½ÃµµÇÕ´Ï´Ù. µÎ °³ÀÇ ½ºÅ°¸¶ ¹öÀü. ±×·± ´ÙÀ½ ÇϳªÀÇ Æ®·£Àè¼Ç¿¡¼ Àüü ¾÷±×·¹À̵å Äڵ带 ½ÇÇàÇÏ°í ¾÷±×·¹À̵å fails.multiple µ¥ÀÌÅͺ£À̽º ½ºÅ°¸¶¸¦ ÇϳªÀÇ µ¥ÀÌÅͺ£À̽º ³»¿¡¼ °ü¸® ÇÒ ¼öÀÖ´Â °æ¿ì ´Ù½Ã ·Ñ¹éµË´Ï´Ù. dbix :: migration :: µð·ºÅ丮´Â ÇöÀç ½ºÅ°¸¶ ¹öÀü ¹øÈ£ ¹× ¾÷±×·¹À̵å / ´Ù¿î ±×·¹ÀÌµå ±â·ÏÀ» ÃßÀûÇϱâ À§ÇØ µ¥ÀÌÅͺ£À̽º¿¡ µÎ °³ÀÇ Å×À̺íÀÌ Á¸ÀçÇؾßÇÕ´Ï´Ù. ÀÌ Ç¥´Â "migration_schema_version"¹× "migration_schema_log"¶ó°í ºÒ¸®¸ç dbix :: migration :: µð·ºÅ丮¸¦ »ç¿ëÇÏ¿© °ü¸®°¡ °¡´ÉÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
dbix :: migration :: µð·ºÅ丮 °ü·Ã ¼ÒÇÁÆ®¿þ¾î