[続] Catalyst::Model::DBIC::Schema が生成するモジュール名(ファイル名)がおもしろい話

続編というか結果報告です。

■ DBIC::Schema を v0.50 -> 0.62 へアップグレード後、ヘルパースクリプトでモジュールを再生成してみます。

[[email protected] Neoflow-Bbs]# cp -Rip lib/Neoflow/Bbs/Schema lib/Neoflow/Bbs/_Schema
[[email protected] Neoflow-Bbs]# rm -f lib/Neoflow/Bbs/Schema/Result/*.pm
[[email protected] Neoflow-Bbs]# rm -f lib/Neoflow/Bbs/Model/DB.pm
[[email protected] Neoflow-Bbs]# script/neoflow_bbs_create.pl model DB DBIC::Schema Neoflow::Bbs::Schema create=static dbi:mysql:bbs.neoflow.jp:10.1.1.21 user pass AutoCommit=1 on_connect_do="[\"SET NAMES utf8\"]"
 exists "/mnt/bbs.neoflow.jp/Neoflow-Bbs/script/../lib/Neoflow/Bbs/Model"
 exists "/mnt/bbs.neoflow.jp/Neoflow-Bbs/script/../t"
Dumping manual schema for Neoflow::Bbs::Schema to directory /mnt/bbs.neoflow.jp/Neoflow-Bbs/script/../lib ...
Schema dump completed.
created "/mnt/bbs.neoflow.jp/Neoflow-Bbs/script/../lib/Neoflow/Bbs/Model/DB.pm"
 exists "/mnt/bbs.neoflow.jp/Neoflow-Bbs/script/../t/model_DB.t"

■ 結果
…orz

[[email protected] Neoflow-Bbs]# ls lib/Neoflow/Bbs/Schema/Result/
Art.pm  BusinessAndEconomy.pm  ComputerAndInternet.pm  Education.pm  Entertainment.pm  Government.pm  Health.pm  News.pm  R18.pm  Recreation.pm  Reference.pm  Regional.pm  Science.pm  SocialScience.pm  SocietyAndCulture.pm  TrendAndWom.pm
[[email protected] Neoflow-Bbs]# diff -r lib/Neoflow/Bbs/_Schema/ lib/Neoflow/Bbs/Schema/
diff -r lib/Neoflow/Bbs/_Schema/Result/Art.pm lib/Neoflow/Bbs/Schema/Result/Art.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:33
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8eH1A2nCJE6IJfGeyiAvmQ
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HBRzqHttcIM6Yn62O08W9A
diff -r lib/Neoflow/Bbs/_Schema/Result/BusinessAndEconomy.pm lib/Neoflow/Bbs/Schema/Result/BusinessAndEconomy.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:33
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h40CSPcqv4uqR3n4TBIylg
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aakaBH75SDEZ5h/Z+xKQ+A
diff -r lib/Neoflow/Bbs/_Schema/Result/ComputerAndInternet.pm lib/Neoflow/Bbs/Schema/Result/ComputerAndInternet.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:33
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QQABwtgkmTCqyYKienAb+g
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AAXhvA4NBGBDdP5AJ/By2g
diff -r lib/Neoflow/Bbs/_Schema/Result/Education.pm lib/Neoflow/Bbs/Schema/Result/Education.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NOPy6+oJNMfLbtg6Fhc+dg
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qzsnTsGm+e1XLd5UNyEM7g
diff -r lib/Neoflow/Bbs/_Schema/Result/Entertainment.pm lib/Neoflow/Bbs/Schema/Result/Entertainment.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 09:35:22
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RiyigpW8cD8g0wdC9GRBkw
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CUZH13xWMqWt8AFxc9slJg
diff -r lib/Neoflow/Bbs/_Schema/Result/Government.pm lib/Neoflow/Bbs/Schema/Result/Government.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:akAWDnkmxm2DM75Y01ZpWQ
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3Yg4k2YqRvkXUsGUn1KCSA
diff -r lib/Neoflow/Bbs/_Schema/Result/Health.pm lib/Neoflow/Bbs/Schema/Result/Health.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZtmGFXbOyHOPMl4qH6O+Bw
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yMWZtsRKPcvvP70+TSao3w
diff -r lib/Neoflow/Bbs/_Schema/Result/News.pm lib/Neoflow/Bbs/Schema/Result/News.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0DxgCnPd0kyEO1I2ZJ5/LA
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5wJGqi97d3d1zKhp5M1WvQ
diff -r lib/Neoflow/Bbs/_Schema/Result/R18.pm lib/Neoflow/Bbs/Schema/Result/R18.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3X5Ywn8pWbBsufv5U/Ks6Q
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:At6pf/HuJ4JaOnDtDsPuSg
diff -r lib/Neoflow/Bbs/_Schema/Result/Recreation.pm lib/Neoflow/Bbs/Schema/Result/Recreation.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XKJpNBeIKPwk3cE3ZROsHw
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uc80Me4CuvQGLy34rRBHbw
diff -r lib/Neoflow/Bbs/_Schema/Result/Reference.pm lib/Neoflow/Bbs/Schema/Result/Reference.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qtVN9E+gPszQb3OQQSMJfw
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XVxkSIxZsERNdWG24VgDaQ
diff -r lib/Neoflow/Bbs/_Schema/Result/Regional.pm lib/Neoflow/Bbs/Schema/Result/Regional.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8qVo6j9eUXoykMssrtDJ/w
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VVX6K5QRTxXthsGlJ8BqLQ
diff -r lib/Neoflow/Bbs/_Schema/Result/Science.pm lib/Neoflow/Bbs/Schema/Result/Science.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jsxUO8Hdtg4jU39iYqacNw
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9HgTfTCVxwuAEAWBywdmlQ
diff -r lib/Neoflow/Bbs/_Schema/Result/SocialScience.pm lib/Neoflow/Bbs/Schema/Result/SocialScience.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0zPaJ4q4dGmjN8iJZsOVKw
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UEtp0USDOJk3ybCagMsqtw
diff -r lib/Neoflow/Bbs/_Schema/Result/SocietyAndCulture.pm lib/Neoflow/Bbs/Schema/Result/SocietyAndCulture.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:21:34
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cjwkrN08pcKLMkX21jWfMQ
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:08
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SKGOVkT8MCq4638FbZJ+8g
diff -r lib/Neoflow/Bbs/_Schema/Result/TrendAndWom.pm lib/Neoflow/Bbs/Schema/Result/TrendAndWom.pm
67,68c67,68
< # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 05:24:05
< # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hTcC1qqeNS2SRdl7nJwc1w
---
> # Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 17:56:09
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s3IR7wZkGJm0+8ffRl5+bg
[[email protected] Neoflow-Bbs]# rm -rf lib/Neoflow/Bbs/_Schema/

ま、いっかw

スポンサーリンク