[Jifty-commit] r1560 - Jifty-DBI/trunk/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Jul 13 16:33:10 EDT 2006
Author: audreyt
Date: Thu Jul 13 16:33:10 2006
New Revision: 1560
Modified:
Jifty-DBI/trunk/t/testmodels.pl
Log:
* update the testmodels.pl to use new schema decl syntax
Modified: Jifty-DBI/trunk/t/testmodels.pl
==============================================================================
--- Jifty-DBI/trunk/t/testmodels.pl (original)
+++ Jifty-DBI/trunk/t/testmodels.pl Thu Jul 13 16:33:10 2006
@@ -1,19 +1,19 @@
package Sample::Employee;
+use Jifty::DBI::Schema;
use base qw/Jifty::DBI::Record/;
-package Sample::Employee::Schema;
-use Jifty::DBI::Schema;
+schema {
column dexterity => type is 'integer';
column name => type is 'varchar';
-
+};
package Sample::Address;
+use Jifty::DBI::Schema;
use base qw/Jifty::DBI::Record/;
-package Sample::Address::Schema;
-use Jifty::DBI::Schema;
+schema {
column employee_id =>
refers_to Sample::Employee;
@@ -25,4 +25,6 @@
column phone =>
type is 'varchar';
+};
+
1;
More information about the Jifty-commit
mailing list