Skip to content

Commit

Permalink
Add explicit sequence names
Browse files Browse the repository at this point in the history
Add explicit sequence names for Oracle database
  • Loading branch information
kvesteri committed Jan 21, 2016
1 parent 3185ce8 commit 0bb36e0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Changelog
Here you can see the full list of changes between each SQLAlchemy-Continuum release.


1.2.4 (2015-01-10)
^^^^^^^^^^^^^^^^^^

- Added explicit sequence names for Oracle (#118, courtesy of apfeiffer1)


1.2.3 (2015-01-10)
^^^^^^^^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion sqlalchemy_continuum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)


__version__ = '1.2.3'
__version__ = '1.2.4'


versioning_manager = VersioningManager()
Expand Down
7 changes: 6 additions & 1 deletion sqlalchemy_continuum/plugins/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@


class ActivityBase(object):
id = sa.Column(sa.BigInteger, primary_key=True, autoincrement=True)
id = sa.Column(
sa.BigInteger,
sa.schema.Sequence('activity_id_seq'),
primary_key=True,
autoincrement=True
)

verb = sa.Column(sa.Unicode(255))

Expand Down
1 change: 1 addition & 0 deletions sqlalchemy_continuum/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class Transaction(

id = sa.Column(
sa.types.BigInteger,
sa.schema.Sequence('transaction_id_seq'),
primary_key=True,
autoincrement=True
)
Expand Down

0 comments on commit 0bb36e0

Please sign in to comment.