Ejemplo n.º 1
0
def doUpgrade(sqlStore):
    """
    Do the UUID-normalization upgrade if necessary and then bump the data
    version to indicate that it's been done.
    """
    yield fixUUIDNormalization(sqlStore)

    # Always bump the DB value
    yield updateCalendarDataVersion(sqlStore, UPGRADE_TO_VERSION)
def doUpgrade(sqlStore):
    """
    Do the UUID-normalization upgrade if necessary and then bump the data
    version to indicate that it's been done.
    """
    yield fixUUIDNormalization(sqlStore)

    # Always bump the DB value
    yield updateCalendarDataVersion(
        sqlStore, UPGRADE_TO_VERSION
    )
Ejemplo n.º 3
0
 def test_fixUUIDNormalization_lowerToUpper(self):
     """
     L{fixUUIDNormalization} will fix the normalization of UUIDs.  If a home
     is found with the wrong case but no duplicate, it will simply be
     upper-cased.
     """
     t1 = self.transactionUnderTest()
     yield t1.calendarHomeWithUID(denormalizedUID, create=True)
     yield self.commit()
     yield fixUUIDNormalization(self.storeUnderTest())
     self.assertEqual((yield self.allHomeUIDs()), [[normalizedUID]])
Ejemplo n.º 4
0
 def test_fixUUIDNormalization_lowerToUpper(self):
     """
     L{fixUUIDNormalization} will fix the normalization of UUIDs.  If a home
     is found with the wrong case but no duplicate, it will simply be
     upper-cased.
     """
     t1 = self.transactionUnderTest()
     yield t1.calendarHomeWithUID(denormalizedUID, create=True)
     yield self.commit()
     yield fixUUIDNormalization(self.storeUnderTest())
     self.assertEqual((yield self.allHomeUIDs()), [[normalizedUID]])