Change aur-schema.sql to check if table exists

Jelle van der Waa jelle at vdwaa.nl
Sat Mar 10 20:05:55 UTC 2018


Would it be possible to change the aur-schema.sql to check if tables
exists before creating them? This would be easier for the Ansible role
for deploying the AUR, since I can skip the check if the User table
exists.

I believe it would be as easy as changing it to:

CREATE  TABLE IF NOT EXISTS tbl_name

-- 
Jelle van der Waa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-dev/attachments/20180310/b7b18e5e/attachment.asc>


More information about the aur-dev mailing list