Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
logbook-hfe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
harshavardhan.c
logbook-hfe
Commits
ed65da41
Commit
ed65da41
authored
Mar 09, 2021
by
archana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified User Actions
parent
ac23c240
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
scripts/utils/sql_db_utils.py
scripts/utils/sql_db_utils.py
+13
-0
No files found.
scripts/utils/sql_db_utils.py
View file @
ed65da41
...
@@ -104,10 +104,23 @@ class UserActions(Base):
...
@@ -104,10 +104,23 @@ class UserActions(Base):
def
column_last_updated
():
def
column_last_updated
():
return
'last_updated'
return
'last_updated'
@
staticmethod
def
column_id
():
return
'id'
@
staticmethod
@
staticmethod
def
column_audit_id
():
def
column_audit_id
():
return
'audit_id'
return
'audit_id'
def
table_def_user_actions
(
self
,
meta
=
MetaData
()):
return
Table
(
self
.
__tablename__
,
meta
,
Column
(
self
.
column_template_id
(),
ForeignKey
(
'table_user_entry.template_id'
)),
Column
(
self
.
column_action
(),
String
),
Column
(
self
.
column_user_id
(),
String
),
Column
(
self
.
column_last_updated
(),
Integer
),
Column
(
self
.
column_id
(),
Integer
,
primary_key
=
True
,
autoincrement
=
True
),
Column
(
self
.
column_audit_id
(),
String
))
class
SQLDBUtils
(
CommonUtils
):
class
SQLDBUtils
(
CommonUtils
):
def
__init__
(
self
,
create_tables
=
False
):
def
__init__
(
self
,
create_tables
=
False
):
...
...
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