diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-01 16:59:03 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-03-04 10:29:14 +0100 |
commit | abd41bbb51ea2340bd06648cc0cd5b9144cce91e (patch) | |
tree | afbaae2fb8cc2bbdc71ccbe9b87419fc47cee270 /support/schema/aur-schema.sql | |
parent | b9690972d084c09f5cc080322db29c54be872045 (diff) | |
download | aur-abd41bbb51ea2340bd06648cc0cd5b9144cce91e.tar.gz aur-abd41bbb51ea2340bd06648cc0cd5b9144cce91e.tar.xz |
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>
Diffstat (limited to 'support/schema/aur-schema.sql')
-rw-r--r-- | support/schema/aur-schema.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/schema/aur-schema.sql b/support/schema/aur-schema.sql index 1649055e..44501b6b 100644 --- a/support/schema/aur-schema.sql +++ b/support/schema/aur-schema.sql @@ -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; |