Re: [Catalyst] (no subject)

2012-08-31 Thread Octavian Rasnita
Hi Dimitar,

From: Dimitar Petrov 


  Hello Octavian,


  If you take a look at the generated files from DBIx::Class::Schema::Loader 
you'll see something like:


  # Created by DBIx::Class::Schema::Loader v0.07024 @ 2012-07-25 17:05:05
  # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YCnxLAuOQnGE4pbIiellqA


  where the md5sum, the loader version and date are going to be different. You 
are not suppose to editi anything above so I guess you made some change above 
the line and there is mismatch with the md5sum?


  Cheers,
  Dimitar



  Yes I know that it should be so, but I haven't changed anything on the 
server, above or below that line.

  The file on the Linux server is exactly the same as the file on Windows (I 
have checked them using diff -u) and they both have Windows end of line.
  But I can change the DBIC schema under Windows without problems, but not the 
DBIC schema on Linux.

  Maybe it has something to do with the fact that the Perl module on Linux uses 
a Windows end of line... although if the files are exactly the same, they 
should generate the same MD5 sum...

  Octavian



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] (no subject)

2012-08-31 Thread Dimitar Petrov
Hello Octavian,

If you take a look at the generated files from DBIx::Class::Schema::Loader
you'll see something like:

# Created by DBIx::Class::Schema::Loader v0.07024 @ 2012-07-25 17:05:05
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YCnxLAuOQnGE4pbIiellqA

where the md5sum, the loader version and date are going to be different.
You are not suppose to editi anything above so I guess you made some change
above the line and there is mismatch with the md5sum?

Cheers,
Dimitar

On Thu, Aug 30, 2012 at 1:26 PM, Octavian Rasnita wrote:

> **
> *From:* Dimitar Petrov 
>
>
> Hello,
>
> you can pass a use_moose => 1 option to the make_schema_at as it's
> described in the documentation here
> https://metacpan.org/module/DBIx::Class::Schema::Loader#make_schema_at
>
>
> Thanks. I used use_moose=1 in the Catalyst helper command line and it
> should have worked because it didn't give that error anymore, however it
> gave another one:
>
> DBIx::Class::Schema::Loader::make_schema_at(): Checksum mismatch in
> '/srv/ZRK2/script/../lib/ZRK/ZRKSchema/Result/Anunturi.pm', the
> auto-generated part of the file has been modified outside of this loader.
> Aborting.
>
> Which is strange, because I checked and on the Linux server Anunturi.pm is
> exactly the same as on my development computer (using Windows end of line
> on both places).
>
> Octavian
>
>
>
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/