indices:
- fields:
- modified
+ constraints:
+ - fields:
+ - modified
+ type: UNIQUE
Person:
name: Person
fields:
name: first_name
};
+# Should include the the items added from the Global table defined above in the
+# schema as well as those defined in the filter args below.
my $ans_yaml = qq{---
schema:
procedures: {}
tables:
Person:
comments: ''
- constraints: []
+ constraints:
+ - deferrable: 1
+ expression: ''
+ fields:
+ - modified
+ match_type: ''
+ name: ''
+ on_delete: ''
+ on_update: ''
+ options: []
+ reference_fields: []
+ reference_table: ''
+ type: UNIQUE
fields:
created:
comments: ''
extra: {}
is_nullable: 1
is_primary_key: 0
- is_unique: 0
+ is_unique: 1
name: modified
order: 4
size:
version: 0.07
};
+
# Parse the test XML schema
my $obj;
$obj = SQL::Translator->new(