version5.py 501 Bytes
Newer Older
dario's avatar
dario committed
1
2
3
4
5
6
#!/usr/bin/python

# Lift DB to version 5
#
# Changes:
#
7
#   Adds `internal_net_only` metadata field 
dario's avatar
dario committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Rationale:
#
#  - Up to this version, we've had everything world-accessible,
#    therefore we need to set the is_internal flag to False for
#    everything that already exists


import simple_upgrade
import util.univis

def set_public_false(meta):
    meta['internal_net_only'] = False
    return meta

if __name__ == "__main__":
    simple_upgrade.upgrade(5, lambda _, x: set_public_false(x))