Closed Bug 1244528 Opened 10 years ago Closed 10 years ago

Default to DBD::SQLite for new installs for "out of the box" working bugzilla experience

Categories

(Bugzilla :: Installation & Upgrading, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: dylan, Assigned: dylan)

Details

Attachments

(1 file, 1 obsolete file)

I would like to be able to checkout bugzilla, run cpanm && checksetup.pl && plackup and have it work. For that another thing that is needed is a working database -- we can do this with SQLite. It's not great for production but drastically lowers the bar to contributing to Bugzilla.
Assignee: general → installation
Severity: normal → enhancement
Component: Bugzilla-General → Installation & Upgrading
Attached patch 1244528_1.patch (obsolete) — Splinter Review
Assignee: installation → dylan
Status: NEW → ASSIGNED
Attachment #8716678 - Flags: review?(dkl)
Comment on attachment 8716678 [details] [diff] [review] 1244528_1.patch > { > name => 'db_name', >- default => 'bugs', >+ default => 'data/bugzilla.sqlite3', > }, Why do you edit db_name? By default, the sqlite DB will be installed in data/db/, which is fine. I see no reason to put it in data/ itself. This would also prevent trouble with other DBs (such as MySQL or Pg), because your change makes us think that you have to specify the full path to the DB, which is incorrect. So please revert this change. > { > name => 'db_user', >- default => 'bugs', >+ default => '', > }, This change is also useless. It's totally fine to have db_user set, and is a good default. Please revert this change too.
Attached patch 1244528_2.patchSplinter Review
I am very uncomfortable with the level of magic we're doing in our subclass of DBD::SQLite but I'll reserve that battle for another day.
Attachment #8716678 - Attachment is obsolete: true
Attachment #8716678 - Flags: review?(dkl)
Attachment #8716803 - Flags: review?(dkl)
Comment on attachment 8716803 [details] [diff] [review] 1244528_2.patch Review of attachment 8716803 [details] [diff] [review]: ----------------------------------------------------------------- r=dkl
Attachment #8716803 - Flags: review?(dkl) → review+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git 9faa0dc..6bd668c master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 6.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: