| | 704 | |
| | 705 | e1_schema = e1_desc.table_options.get('schema', None) |
| | 706 | e2_schema = e2_desc.table_options.get('schema', None) |
| | 707 | assert e1_schema == e2_schema, \ |
| | 708 | "Schema %r for entity %s differs from schema %r of entity %s" \ |
| | 709 | % (e1_schema, self.entity.__name__, |
| | 710 | e2_schema, self.target.__name__) |
| 777 | | # Build the list of columns the foreign key will point |
| 778 | | # to. |
| 779 | | fk_refcols.append(desc.tablename + '.' + pk_col.key) |
| | 784 | # Build the list of column "paths" the foreign key will |
| | 785 | # point to |
| | 786 | target_path = "%s.%s" % (desc.tablename, pk_col.key) |
| | 787 | schema = desc.table_options.get('schema', None) |
| | 788 | if e1_schema is not None: |
| | 789 | target_path = "%s.%s" % (e1_schema, target_path) |
| | 790 | fk_refcols.append(target_path) |