Toggle navigation
Sign in
rust
/
artshop
·
Commits
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
4
Merge Requests
0
Labels
Wiki
Forks
Snippets
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
28f4e90b7810d21cf9f13cd3d2e67766b0f69f26
Authored by
Georg Hopp
2022-02-04 10:08:13 +0100
1 parent
48c704cc
build: skipped
Add table view for cli
Changes
2
Builds
0
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
migrations/2022-02-04-083809_b64_view_on_images/down.sql
migrations/2022-02-04-083809_b64_view_on_images/up.sql
migrations/2022-02-04-083809_b64_view_on_images/down.sql
0 → 100644
View file @
28f4e90
1
+
-- This file should undo anything in `up.sql`
2
+
DROP
VIEW
images_blob_as_b64
;
...
...
migrations/2022-02-04-083809_b64_view_on_images/up.sql
0 → 100644
View file @
28f4e90
1
+
CREATE
VIEW
images_blob_as_b64
AS
2
+
SELECT
id
,
TO_BASE64
(
upload_uuid
),
TO_BASE64
(
uuid
),
size
,
dim_x
,
dim_y
,
3
+
mime_type
,
date_created
,
date_updated
4
+
FROM
images
;
...
...
Please
register
or
login
to post a comment