| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch got a bit more involved than what was originally planned, but
since we're messing with the tables I decided to do it all right away.
- Moves the constraint definition to the CREATE TABLE statement for the
concerts table. This replaces the existing KEY definition that it had.
- Make sure the venues table is created before the concerts table so
that the above mentioned constraint definition works.
- Rename the tables. Use the wpdb-prefix and make the name a bit
prettier. This caused some changes in the Concert and Venue classes,
and for slightly silly reasons some test classes. The code actually
turned out better (for the most part), but some refactoring can still
be done. The column names remains unchanged for now.
|
|
|
|
| |
Move logging to presentation/logic layer if necessary.
|
| |
|
|
|
|
| |
It does not make sense to have anonymous venues nowhere.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Added test to create duplicate concert with varied cases in string
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Run `reuse lint` to verify that all material is licensed.
|
| |
|
|
|
|
| |
Made form for concert both functional to edit existing concert or add new concert
|
|
|
|
|
|
|
|
|
| |
This means most static functions now either return a venue object, or an
array of venue objects. The exception is the `all_cities` method, which
still return an array of cities as strings.
The constructor has been made private, as it should not be used directly
from anywhere but the static methods on the Venue class.
|
| |
|
| |
|
|
|
|
|
|
| |
Moved it to the admin page for now. May move it further to a partial or
something later. There's quite a bit of cleanup needed. It still refers
to some utility functions in the old shortcode module.
|
|
Moves all database operations to separate classes for each type of
object, bands, venues and concerts. This makes the logic cleaner, and
concentrates the db related code to logically distinct parts of the
code.
This means we no longer need the global access to the $wpdb object from
the processing code.
|