mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Allow DB connection values to come from the environment
Stop hardcoding everything everywhere for those of us that don't use the localhost/aur/aur/AUR setup. Also allow for the dummy data to be created in the reload script if it does not exist. Finally, remove two assumptions that the AUR database already exists. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
b9690972d0
commit
abd41bbb51
3 changed files with 33 additions and 21 deletions
|
@ -1,7 +1,7 @@
|
|||
-- The MySQL database layout for the AUR. Certain data
|
||||
-- is also included such as AccountTypes, etc.
|
||||
--
|
||||
DROP DATABASE AUR;
|
||||
DROP DATABASE IF EXISTS AUR;
|
||||
CREATE DATABASE AUR DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
USE AUR;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue