mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Explicitly initialize PackageBases.FlaggerComment
Since commit 09cb61a
(schema: Remove invalid default values for TEXT
columns, 2017-04-15), the PackageBases.FlaggerComment field no longer
has a default value. Initialize this field explicitly whenever a new row
is added to the PackageBases table.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
90ab7c7b83
commit
f4e2d143ad
6 changed files with 25 additions and 23 deletions
|
@ -61,8 +61,9 @@ def create_pkgbase(conn, pkgbase, user):
|
|||
|
||||
now = int(time.time())
|
||||
cur = conn.execute("INSERT INTO PackageBases (Name, SubmittedTS, " +
|
||||
"ModifiedTS, SubmitterUID, MaintainerUID) VALUES " +
|
||||
"(?, ?, ?, ?, ?)", [pkgbase, now, now, userid, userid])
|
||||
"ModifiedTS, SubmitterUID, MaintainerUID, " +
|
||||
"FlaggerComment) VALUES (?, ?, ?, ?, ?, '')",
|
||||
[pkgbase, now, now, userid, userid])
|
||||
pkgbase_id = cur.lastrowid
|
||||
|
||||
cur = conn.execute("INSERT INTO PackageNotifications " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue