Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
a08b334d
Unverified
Commit
a08b334d
authored
Aug 09, 2023
by
zhu-mingye
Committed by
GitHub
Aug 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sql bug (#2190)
* fix sql bug
parent
48abeec8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dinky-mysql.sql
script/sql/dinky-mysql.sql
+1
-1
dinky-pg.sql
script/sql/dinky-pg.sql
+2
-1
No files found.
script/sql/dinky-mysql.sql
View file @
a08b334d
...
@@ -843,7 +843,7 @@ CREATE TABLE `dinky_user` (
...
@@ -843,7 +843,7 @@ CREATE TABLE `dinky_user` (
-- ----------------------------
-- ----------------------------
-- Records of dinky_user
-- Records of dinky_user
-- ----------------------------
-- ----------------------------
INSERT
INTO
dinky
.
dinky
_user
INSERT
INTO
dinky_user
(
id
,
username
,
user_type
,
password
,
nickname
,
worknum
,
avatar
,
mobile
,
enabled
,
super_admin_flag
,
is_delete
,
create_time
,
update_time
)
(
id
,
username
,
user_type
,
password
,
nickname
,
worknum
,
avatar
,
mobile
,
enabled
,
super_admin_flag
,
is_delete
,
create_time
,
update_time
)
VALUES
(
1
,
'admin'
,
0
,
'21232f297a57a5a743894a0e4a801fc3'
,
'Admin'
,
'Dinky-001'
,
null
,
'17777777777'
,
1
,
1
,
0
,
'2022-12-13 05:27:19'
,
'2023-07-28 23:22:52'
);
VALUES
(
1
,
'admin'
,
0
,
'21232f297a57a5a743894a0e4a801fc3'
,
'Admin'
,
'Dinky-001'
,
null
,
'17777777777'
,
1
,
1
,
0
,
'2022-12-13 05:27:19'
,
'2023-07-28 23:22:52'
);
...
...
script/sql/dinky-pg.sql
View file @
a08b334d
...
@@ -24,7 +24,8 @@ BEGIN
...
@@ -24,7 +24,8 @@ BEGIN
END
;
END
;
$$
LANGUAGE
plpgsql
;
$$
LANGUAGE
plpgsql
;
-- CREATE IF NOT EXISTS CAST (boolean AS smallint) WITH FUNCTION boolean_to_smallint(boolean) AS implicit;
CREATE
IF
NOT
EXISTS
CAST
(
boolean
AS
smallint
)
WITH
FUNCTION
boolean_to_smallint
(
boolean
)
AS
implicit
;
-- ----------------------------
-- ----------------------------
-- Sequence structure for dinky_alert_group_seq
-- Sequence structure for dinky_alert_group_seq
-- ----------------------------
-- ----------------------------
...
...
Write
Preview
Markdown
is supported
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