Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
钟尚武
physical
Commits
5b1c94f7
Commit
5b1c94f7
authored
Jun 25, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql
parent
d0c4a1a3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
0 deletions
+44
-0
sl_user_login_status.sql
sqls/deploy/sl_user_login_status.sql
+16
-0
sl_user_login_status.sql
sqls/revert/sl_user_login_status.sql
+7
-0
sqitch.conf
sqls/sqitch.conf
+8
-0
sqitch.plan
sqls/sqitch.plan
+5
-0
sl_user_login_status.sql
sqls/verify/sl_user_login_status.sql
+8
-0
No files found.
sqls/deploy/sl_user_login_status.sql
0 → 100644
View file @
5b1c94f7
-- Deploy flipr:sl_user_login_status to mysql
BEGIN
;
CREATE
TABLE
`sl_user_login_status`
(
`user_id`
varchar
(
100
)
NOT
NULL
COMMENT
'用户ID'
,
`is_shadow`
tinyint
(
1
)
NOT
NULL
COMMENT
'是否是马甲用户'
,
`first_visit_day`
date
COMMENT
'首次日期'
,
`last_visit_day`
date
COMMENT
'最后一次登陆日期'
,
`day_id`
varchar
(
10
)
NOT
NULL
COMMENT
'数据账期'
,
PRIMARY
KEY
(
`user_id`
),
INDEX
`lv_day`
(
`last_visit_day`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'数据仓库推送表用户登录状态表'
;
-- XXX Add DDLs here.
COMMIT
;
sqls/revert/sl_user_login_status.sql
0 → 100644
View file @
5b1c94f7
-- Revert flipr:sl_user_login_status from mysql
BEGIN
;
DROP
table
sl_user_login_status
;
-- XXX Add DDLs here.
COMMIT
;
sqls/sqitch.conf
0 → 100644
View file @
5b1c94f7
[
core
]
engine
=
mysql
# plan_file = sqitch.plan
# top_dir = .
# [engine "mysql"]
# target = db:mysql:
# registry = sqitch
# client = /usr/local/mysql/bin/mysql
sqls/sqitch.plan
0 → 100644
View file @
5b1c94f7
%syntax-version=1.0.0
%project=flipr
%uri=https://github.com/sqitchers/sqitch-mysql-intro/
sl_user_login_status 2019-06-25T11:06:15Z Lxrent <lxrent@lxrentdeMacBook-Pro.local> # 数据仓库推送表用户登录状态表
sqls/verify/sl_user_login_status.sql
0 → 100644
View file @
5b1c94f7
-- Verify flipr:sl_user_login_status on mysql
BEGIN
;
SELECT
user_id
FROM
sl_user_login_status
;
-- XXX Add verifications here.
ROLLBACK
;
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