diff options
author | Leonidas Spyropoulos <artafinde@gmail.com> | 2015-06-14 17:36:52 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-14 21:54:53 +0200 |
commit | e1d92e05f29fcf791e456a2a21e3bcb51e1ef7e7 (patch) | |
tree | b5f5cd916f2de3cee1eb2f6ac3c1d448ff57aec9 /schema | |
parent | 37960beea130699969e4870799d073f28bc0f550 (diff) | |
download | aur-e1d92e05f29fcf791e456a2a21e3bcb51e1ef7e7.tar.gz aur-e1d92e05f29fcf791e456a2a21e3bcb51e1ef7e7.tar.xz |
Adding PackagerUID to the generated dummy data
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'schema')
-rwxr-xr-x | schema/gendummydata.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/schema/gendummydata.py b/schema/gendummydata.py index 9ad5373c..7b18a500 100755 --- a/schema/gendummydata.py +++ b/schema/gendummydata.py @@ -193,16 +193,18 @@ for p in list(seen_pkgs.keys()): NOW = int(time.time()) if count % 2 == 0: muid = developers[random.randrange(0,len(developers))] + puid = developers[random.randrange(0,len(developers))] else: muid = trustedusers[random.randrange(0,len(trustedusers))] + puid = trustedusers[random.randrange(0,len(trustedusers))] if count % 20 == 0: # every so often, there are orphans... muid = "NULL" uuid = genUID() # the submitter/user s = ("INSERT INTO PackageBases (ID, Name, CategoryID, SubmittedTS, " - "SubmitterUID, MaintainerUID) VALUES (%d, '%s', %d, %d, %d, %s);\n") - s = s % (seen_pkgs[p], p, genCategory(), NOW, uuid, muid) + "SubmitterUID, MaintainerUID, PackagerUID) VALUES (%d, '%s', %d, %d, %d, %s, %s);\n") + s = s % (seen_pkgs[p], p, genCategory(), NOW, uuid, muid, puid) out.write(s) s = ("INSERT INTO Packages (ID, PackageBaseID, Name, Version) VALUES " |