telefonicaid/fiware-orion — pull request #243 by fgalan (2014-02-25 17:43:10+00:00)
Title: Solving problems with the 0.10.0 migration

**NO MERGE YET**: pending: 1) include the new scripts in the RPM (modifying the .spec) as contrib material; 2) include a checking at mongoInit() time, to ensure that the DB is in the shape CB is expecting (by the moment, checking that expiration/throttling fields are 64bits integers, in newer versions this method could be modified).

I've search for all occurrences in the code of

CSUB_EXPIRATION
CSUB_THROTTLING
CASUB_EXPIRATION
REG_EXPIRATION

trying to fix all the cases in which int was used instead of long long. A second check of the reviewer is highly welcomed.

In addition, two utility scripts has been added to the repository. There are easy to use. To inspect types:

```
./type-analizer.py registrations expiration
./type-analizer.py csubs expiration
./type-analize.py casubs expiration
./type-analize.py csubs throttling
```
To change types to 64 bits:

```
./field-converster-64bits.py registrations expiration
./field-converster-64bits.py csubs expiration
./field-converster-64bits.py casubs expiration
./field-converster-64bits.py csubs throttling
```