Update table names to new format
This commit is contained in:
parent
fe06cd915c
commit
ac1c84ea55
5 changed files with 16 additions and 8 deletions
|
@ -2,7 +2,11 @@
|
|||
@section('title', 'guestbook')
|
||||
@section('content')
|
||||
@php
|
||||
$entries = DB::select('SELECT id, name, timestamp, message FROM guestbook_entries ORDER BY id DESC');
|
||||
$entries = DB::select('
|
||||
SELECT id, name, timestamp, message
|
||||
FROM guestbook__entries
|
||||
ORDER BY id DESC
|
||||
');
|
||||
@endphp
|
||||
<h1>Entries <small>({{ count($entries) }} total)</small></h1>
|
||||
@foreach ($entries as $entry)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
@php
|
||||
$categories = DB::select('
|
||||
SELECT id, name
|
||||
FROM bookmark_categories
|
||||
FROM bookmark__categories
|
||||
ORDER BY priority ASC
|
||||
');
|
||||
@endphp
|
||||
|
@ -15,7 +15,7 @@
|
|||
@php
|
||||
$sites = DB::select('
|
||||
SELECT name, url, description
|
||||
FROM bookmark_sites
|
||||
FROM bookmark__sites
|
||||
WHERE category_id = ? ORDER BY priority ASC
|
||||
', array($category->id));
|
||||
@endphp
|
||||
|
|
|
@ -43,7 +43,11 @@
|
|||
</ul>
|
||||
<hr/>
|
||||
@php
|
||||
$entries = DB::select('SELECT name, timestamp, message FROM guestbook_entries ORDER BY id DESC');
|
||||
$entries = DB::select('
|
||||
SELECT name, timestamp, message
|
||||
FROM guestbook__entries
|
||||
ORDER BY id DES
|
||||
');
|
||||
@endphp
|
||||
<h1>Entries <small>({{ count($entries) }} total)</small></h1>
|
||||
@foreach ($entries as $entry)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue