short_hash_id to issue_id
authorSam Hart <criswellious@gmail.com>
Sun Apr 06 14:09:14 2008 -0400 (3 months ago)
changeset 26530be108fda3a
parent 2648505e3c3428e
child 266c5c785fec243
short_hash_id to issue_id
swarmlib/db/data_objects.py
swarmlib/db/schema.py
       1 --- a/swarmlib/db/data_objects.py	Sat Apr 05 21:17:01 2008 -0400
       2 +++ b/swarmlib/db/data_objects.py	Sun Apr 06 14:09:14 2008 -0400
       3 @@ -28,7 +28,7 @@
       4  
       5  class Issue(object):
       6      def __init__(self, hash_id, short_hash_id):
       7 -        self.short_hash_id = short_hash_id
       8 +        self.issue_id = short_hash_id
       9          self.hash_id = hash_id
      10      def __repr__(self):
      11         return "<Issue('%s', '%s')>" % (self.hash_id, self.short_hash_id)
     1.1 --- a/swarmlib/db/schema.py	Sat Apr 05 21:17:01 2008 -0400
     1.2 +++ b/swarmlib/db/schema.py	Sun Apr 06 14:09:14 2008 -0400
     1.3 @@ -42,7 +42,7 @@
     1.4  issues_table = Table('issues', metadata,
     1.5      Column('hash_id', String(__HASH_ID_LENGTH__),
     1.6              primary_key=True, unique=True, nullable=False),
     1.7 -    Column('short_hash_id', String(__HASH_ID_LENGTH__),
     1.8 +    Column('issue_id', String(__HASH_ID_LENGTH__),
     1.9              unique=True, nullable=False),
    1.10  
    1.11      Column('block_id', String(__HASH_ID_LENGTH__),
    1.12 @@ -75,7 +75,6 @@
    1.13  nodes_table = Table('nodes', metadata,
    1.14      Column('hash_id', String(__HASH_ID_LENGTH__),
    1.15              primary_key=True, unique=True, nullable=False),
    1.16 -    Column('summary', String(__SUMMARY_LENGTH__), nullable=False),
    1.17      Column('issue_id', String(__HASH_ID_LENGTH__),
    1.18              ForeignKey('issues.hash_id')),
    1.19      Column('parent_node_id', String(__HASH_ID_LENGTH__),