16 Commits

Author SHA1 Message Date
Peter Kokot
fd1338e3de Revert "Add automatic fixtures generator importer"
This reverts commit 5cdac95adc.

Due to the https://github.com/php/web-bugs/pull/77 discussion and
request from a prominent member of the PHP group - Kalle - I'm reverting
this awesome addition because it caused too many conflicts and issues.
So it is not worth of investing more from my side into this neither
having a ruined experience further on from any side here.

This fix has been really helpful with some development ways but people
who maintain this app further better have peace of mind...
2019-05-25 12:16:43 +02:00
Peter Kokot
5cdac95adc Add automatic fixtures generator importer
When developing site locally, developer needs to have data sets to run
manual tests, see how the app is built, and similar. The new additional
command line command using Symfony/Console component creates a main
scripts/console entry point for running Commands. Initial set of demo
fixtures data is generated using the faker library and includes most
data needed to use and test application manually in the local
environment.
2019-05-22 03:15:30 +02:00
Peter Kokot
16bea4f84a Refactor SQL files
This separates the SQL files according to its functionality:
- database.sql for creating only database
- schema.sql for creating only database schema
- fixtures.sql for inserting only data fixtures

This helps in building project from scratch with empty database with
only schema to insert custom development fixtures.
2018-10-24 20:29:19 +02:00
Peter Kokot
f1614132bc Use SQL standard comment instead of MySQL specific 2018-10-23 19:36:59 +02:00
Peter Kokot
e6700f9eed Change visitor_ip MySQL field type to varbinary(16)
This now enables local installation more easily without manually
adjusting the field. The new varbinary field has been recently updated
in the code for reporting bugs and adding comments.
2018-10-23 00:00:00 +02:00
Peter Kokot
8c52db6905 Sync leading and final newlines
This patch adds missing newlines, trims multiple redundant final
newlines into a single one and trims leading newlines at the beginning
of the files.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 15:51:47 +02:00
Gabriel Caruso
69994ca6bb Fix default value for bugdb_comments.ts 2018-03-31 01:27:57 -03:00
Johannes Schlüter
e67097c14b Add missing field to SQL file 2013-02-13 16:40:31 +01:00
Johannes Schlüter
6710f40dbe Rename table, a bit more consistent 2013-02-13 02:55:06 +01:00
Johannes Schlüter
da44efe24b Add possibility to add rull requests to a bug report 2013-02-08 02:36:48 +01:00
Ferenc Kovacs
90d133859a updating the bugdb table schema using the current "live" values, the only major diff is the length diff for the passwd field(we use sha-256 for a while now) 2012-01-15 22:17:49 +00:00
Ferenc Kovacs
5b4026df80 add ip logging for bugreports and comments 2011-08-29 23:10:20 +00:00
Felipe Pena
3f640e56a9 - Added field to CVE-ID
- Added support to private report
  (When setting the package name to 'Security related', it will turns automatically a private report)

private report: Only the original reporter and people behind security@php will can see/edit/comment it.

When the report is ok to be public, anyone from security@php can turn it public.

# Initial commit... :P
2010-11-15 20:22:55 +00:00
Felipe Pena
6231b6f7cf - Added option to block user comments (reverted previous changes) 2010-07-25 18:32:19 +00:00
Jani Taskinen
bb7a8a5609 - Irrelevant since conversion in main site has already been done, there is no turning back now :) 2010-03-16 12:53:30 +00:00
Jani Taskinen
80be4159f5 - Cleanup "root" dir 2010-03-03 17:45:25 +00:00