Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Wecube Platform2
Commits
2c5e7aaf
Commit
2c5e7aaf
authored
5 years ago
by
Jun Chen
Browse files
Options
Download
Email Patches
Plain Diff
set utf8 for all sql script
parent
0886e444
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/db/build-image.sh
+2
-0
build/db/build-image.sh
platform-auth-server/src/main/resources/database/02.auth.data.sql
+0
-2
...-auth-server/src/main/resources/database/02.auth.data.sql
with
2 additions
and
2 deletions
+2
-2
build/db/build-image.sh
+
2
-
0
View file @
2c5e7aaf
...
...
@@ -9,6 +9,7 @@ TEXT='use wecube;'
cd
database
for
i
in
`
ls
-1
./
*
.wecube.
*
.sql
`
;
do
CONTENTS
=
`
cat
$i
`
echo
"SET NAMES utf8;"
>
$i
echo
$TEXT
>
$i
echo
$CONTENTS
>>
$i
done
...
...
@@ -25,6 +26,7 @@ TEXT='use auth;'
cd
database
for
i
in
`
ls
-1
./
*
.auth.
*
.sql
`
;
do
CONTENTS
=
`
cat
$i
`
echo
"SET NAMES utf8;"
>
$i
echo
$TEXT
>
$i
echo
$CONTENTS
>>
$i
done
...
...
This diff is collapsed.
Click to expand it.
platform-auth-server/src/main/resources/database/02.auth.data.sql
+
0
-
2
View file @
2c5e7aaf
set
names
'utf8'
;
SET
FOREIGN_KEY_CHECKS
=
0
;
insert
into
`auth_sys_authority`
(
`id`
,
`created_by`
,
`created_time`
,
`updated_by`
,
`updated_time`
,
`is_active`
,
`is_deleted`
,
`code`
,
`description`
,
`display_name`
,
`scope`
)
values
(
'2c9280827019695c017019c28b0f001e'
,
'umadmin'
,
'2020-02-06 17:09:04'
,
NULL
,
NULL
,
''
,
'
\0
'
,
'IMPLEMENTATION_WORKFLOW_EXECUTION'
,
NULL
,
'IMPLEMENTATION_WORKFLOW_EXECUTION'
,
'GLOBAL'
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment