Obviously my brain checked out halfway through designing on this;
feel free to insult me greatly
Signed-off-by: Michael Casadevall <sonicmctails@gmail.com>
+2009-01-01 Michael Casadevall <sonicmctails@gmail.com>
+
+ * dak/process_unchecked.pu - Changed it to look up on the correct table
+
+ * dak/dakdb/update1.py - Changed to add the right table
+
2008-12-30 Michael Casadevall <sonicmctails@gmail.com>
* src/sql-aptvc.cpp - Fixed to work on modern postgresql version
try:
c = self.db.cursor()
c.execute("ALTER TABLE source ADD COLUMN dm_upload_allowed BOOLEAN DEFAULT 'no' NOT NULL;")
- c.execute("ALTER TABLE uid ADD COLUMN debian_maintainer BOOLEAN DEFAULT 'false' NOT NULL;")
+ c.execute("ALTER TABLE fingerprint ADD COLUMN is_dm BOOLEAN DEFAULT 'false' NOT NULL;")
print "Migrating DM data to source table. This might take some time ..."
################################################################################
def lookup_uid_from_fingerprint(fpr):
- q = Upload.projectB.query("SELECT u.uid, u.name, u.debian_maintainer FROM fingerprint f, uid u WHERE f.uid = u.id AND f.fingerprint = '%s'" % (fpr))
+ q = Upload.projectB.query("SELECT u.uid, u.name, f.is_dm FROM fingerprint f, uid u WHERE f.uid = u.id AND f.fingerprint = '%s'" % (fpr))
qs = q.getresult()
if len(qs) == 0:
return (None, None)