From 670b4831a73db3c8fe7a2dc895aa6a44ad7bc81d Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Mon, 17 Sep 2007 20:39:37 +0000 Subject: [PATCH] Updated to new schema format. --- tests/schema.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/tests/schema.yml b/tests/schema.yml index 2ce91fef5..ffd322948 100644 --- a/tests/schema.yml +++ b/tests/schema.yml @@ -1,5 +1,5 @@ --- -user: +User: tableName: user className: User columns: @@ -10,33 +10,29 @@ user: type: string length: 11 -user_group: +UserGroup: tableName: user_group className: UserGroup columns: user_id: type: int length: 11 - foreignClass: User - foreignReference: id - localClass: Group - localName: Groups - foreignName: User - primary: true - counterpart: group_id group_id: type: int length: 11 - foreignClass: Group - foreignReference: id - localClass: User - localName: Users - foreignName: Group - primary: true - counterpart: user_id - + relations: + User: + class: User + alias: User + foreign: id + local: user_id + Group: + class: Group + alias: Group + foreign: id + local: group_id -group: +Group: tableName: group className: Group columns: