diff options
| author | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-04-20 16:08:10 +0800 |
|---|---|---|
| committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-04-27 16:30:50 +0800 |
| commit | f7ae12ff655129a76df6eb8333a2c08c088253d0 (patch) | |
| tree | 60c52c12668efe0de1e4acbf9066a38c3193ddb9 /nova/db | |
| parent | f025fc90f6f69bac27a8734659d9a3313f2cb010 (diff) | |
Update NovaBase model per changes on oslo.db.sqlalchemy
Fixed NovaBase to inherit from models.TimestampMixin
Added metadata attribute
Added db.sqlalchemy to openstack-common.conf
Oslo sync command:
python update.py --modules db.sqlalchemy --base nova --dest-dir ../nova
Change-Id: Ie4ad8e8b235e146ddb946cdf7f15d74e060ee4a3
Diffstat (limited to 'nova/db')
| -rw-r--r-- | nova/db/sqlalchemy/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/db/sqlalchemy/models.py b/nova/db/sqlalchemy/models.py index 016563c37..85a13c028 100644 --- a/nova/db/sqlalchemy/models.py +++ b/nova/db/sqlalchemy/models.py @@ -35,8 +35,10 @@ CONF = cfg.CONF BASE = declarative_base() -class NovaBase(models.SoftDeleteMixin, models.ModelBase): - pass +class NovaBase(models.SoftDeleteMixin, + models.TimestampMixin, + models.ModelBase): + metadata = None class Service(BASE, NovaBase): |
