Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
114bad36
Commit
114bad36
authored
Aug 17, 2017
by
Ryan Herbert
Browse files
db.py add tag tables
parent
556db610
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/db.py
View file @
114bad36
...
...
@@ -256,6 +256,13 @@ db.define_table('user_log',
Field
(
'table_name'
,
'string'
),
Field
(
'record_id'
,
'integer'
))
db
.
define_table
(
'tag'
,
Field
(
'name'
,
'string'
,
unique
=
True
))
db
.
define_table
(
'tag_ref'
,
Field
(
'tag_id'
,
'reference tag'
),
Field
(
'table_name'
,
'string'
),
Field
(
'record_id'
,
'integer'
))
## after defining tables, uncomment below to enable auditing
auth
.
enable_record_versioning
(
db
)
...
...
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