[Jifty-commit] r3452 - Jifty-DBI/trunk/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Jun 12 08:42:24 EDT 2007
Author: ruz
Date: Tue Jun 12 08:42:23 2007
New Revision: 3452
Modified:
Jifty-DBI/trunk/t/02records_cachable.t
Log:
* schema for oracle
Modified: Jifty-DBI/trunk/t/02records_cachable.t
==============================================================================
--- Jifty-DBI/trunk/t/02records_cachable.t (original)
+++ Jifty-DBI/trunk/t/02records_cachable.t Tue Jun 12 08:42:23 2007
@@ -76,7 +76,7 @@
Jifty::DBI::Record::Cachable->flush_cache;
ok( $rec->load_by_cols( Phone => undef ), "Loaded the record" );
- is( $rec->name, 'UndefPhone', "UndefPhone record" );
+ is( $rec->name, 'UndefPhone', "UndefPhone record" );
is( $rec->phone, undef, "Phone number is undefined" );
@@ -164,6 +164,21 @@
}
+sub schema_oracle { [
+ "CREATE SEQUENCE addresses_seq",
+ "CREATE TABLE addresses (
+ id integer CONSTRAINT addresses_key PRIMARY KEY,
+ name varchar(36),
+ phone varchar(18),
+ employee_id integer
+ )",
+] }
+
+sub cleanup_schema_oracle { [
+ "DROP SEQUENCE addresses_seq",
+ "DROP TABLE addresses",
+] }
+
1;
package TestApp::Address;
More information about the Jifty-commit
mailing list