Changes between Initial Version and Version 1 of Ticket #6148, comment 112
- Timestamp:
- Apr 16, 2012, 12:50:44 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6148, comment 112
initial v1 3 3 - set database specific schema by settings.py DATABASES setting 'SCHEMA'. 4 4 - when running raw SQL you will need to use connection.qname to get the schema qualified table name of a model (the tests contain plenty of examples, search for qname in regressiontests/queries/tests.py). 5 - note that on MySQL and Oracle the schemas must beprefixed by the database alias to avoid collisions between production and testing. This is the reason for the above qname usage - you do not know the table's qualified name, and it will be different in testing and production.5 - note that on MySQL and Oracle the schemas is automatically prefixed by the database alias to avoid collisions between production and testing. This is the reason for the above qname usage - you do not know the table's qualified name, and it will be different in testing and production. 6 6 - do not test the patch on a database instance containing production data. It is possible that running tests will drop your production schemas instead of testing schemas. This should not happen, but the feature is currently alpha quality... 7 7