~raxnetworking/nova/bare_bones_melange

« back to all changes in this revision

Viewing changes to melange/db/sqlalchemy/migration.py

  • Committer: Rajaram Mallya
  • Date: 2011-09-15 07:31:58 UTC
  • Revision ID: rajarammallya@gmail.com-20110915073158-1e2qoi7kl0opy8zu
Rajaram/Vinkesh | Cleaned up the code a bit. Small style fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
 
35
35
def db_version(options):
36
 
    """Return the database's current migration number
 
36
    """Return the database's current migration number.
37
37
 
38
38
    :param options: options dict
39
39
    :retval version number
50
50
 
51
51
 
52
52
def upgrade(options, version=None):
53
 
    """Upgrade the database's current migration level
 
53
    """Upgrade the database's current migration level.
54
54
 
55
55
    :param options: options dict
56
56
    :param version: version to upgrade (defaults to latest)
67
67
 
68
68
 
69
69
def downgrade(options, version):
70
 
    """Downgrade the database's current migration level
 
70
    """Downgrade the database's current migration level.
71
71
 
72
72
    :param options: options dict
73
73
    :param version: version to downgrade to
83
83
 
84
84
 
85
85
def version_control(options):
86
 
    """Place a database under migration control
 
86
    """Place a database under migration control.
87
87
 
88
88
    :param options: options dict
89
89
 
98
98
 
99
99
 
100
100
def _version_control(options):
101
 
    """Place a database under migration control
 
101
    """Place a database under migration control.
102
102
 
103
103
    :param options: options dict
104
104
 
109
109
 
110
110
 
111
111
def db_sync(options, version=None):
112
 
    """Place a database under migration control and perform an upgrade
 
112
    """Place a database under migration control and perform an upgrade.
113
113
 
114
114
    :param options: options dict
115
115
    :retval version number