|
Revision 127
(checked in by fumanchu, 6 years ago)
|
Initial implementation of #16 (schema changes). See modeling.html ("Managing Schema Changes") for summary. Oh, and Unit has a new remove_property method.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
from dejavu.storage import storeado |
|---|
| 2 |
mod = storeado.gen_py() |
|---|
| 3 |
if mod is None: |
|---|
| 4 |
def run(): |
|---|
| 5 |
import warnings |
|---|
| 6 |
warnings.warn("ADO 2.7 support could not be verified. " |
|---|
| 7 |
"The SQLServer test will not be run.") |
|---|
| 8 |
else: |
|---|
| 9 |
opts = {u'Connect': ("Provider=SQLOLEDB.1; Integrated Security=SSPI; " |
|---|
| 10 |
"Initial Catalog=dejavu_test; " |
|---|
| 11 |
"Data Source=REDROVER\\"), |
|---|
| 12 |
u'Expanded Columns': "Animal.PreviousZoos:int", |
|---|
| 13 |
} |
|---|
| 14 |
SM_class = "dejavu.storage.storeado.StorageManagerADO_SQLServer" |
|---|
| 15 |
|
|---|
| 16 |
def run(): |
|---|
| 17 |
import zoo_fixture |
|---|
| 18 |
|
|---|
| 19 |
reload(zoo_fixture) |
|---|
| 20 |
zoo_fixture.init() |
|---|
| 21 |
zoo_fixture.run(SM_class, opts) |
|---|
| 22 |
|
|---|
| 23 |
if __name__ == "__main__": |
|---|
| 24 |
run() |
|---|