Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
TelegramBot
Commits
d53cddf8
Unverified
Commit
d53cddf8
authored
May 03, 2017
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indexed column length and quotes in comments.
parent
00aa9abb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
CHANGELOG.md
CHANGELOG.md
+1
-0
structure.sql
structure.sql
+8
-10
No files found.
CHANGELOG.md
View file @
d53cddf8
...
...
@@ -10,6 +10,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Deprecated
### Removed
### Fixed
-
Indexed table columns now have a fitting length.
### Security
## [0.44.1] - 2017-04-25
...
...
structure.sql
View file @
d53cddf8
CREATE
TABLE
IF
NOT
EXISTS
`user`
(
`id`
bigint
COMMENT
'Unique user identifier'
,
`first_name`
CHAR
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'User
\
'
s first name'
,
`last_name`
CHAR
(
255
)
DEFAULT
NULL
COMMENT
'User
\
'
s last name'
,
`username`
CHAR
(
255
)
DEFAULT
NULL
COMMENT
'User
\
'
s username'
,
`first_name`
CHAR
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'User
'
'
s first name'
,
`last_name`
CHAR
(
255
)
DEFAULT
NULL
COMMENT
'User
'
'
s last name'
,
`username`
CHAR
(
191
)
DEFAULT
NULL
COMMENT
'User
'
'
s username'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date update'
,
...
...
@@ -30,10 +30,8 @@ CREATE TABLE IF NOT EXISTS `user_chat` (
PRIMARY
KEY
(
`user_id`
,
`chat_id`
),
FOREIGN
KEY
(
`user_id`
)
REFERENCES
`user`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
FOREIGN
KEY
(
`chat_id`
)
REFERENCES
`chat`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
FOREIGN
KEY
(
`user_id`
)
REFERENCES
`user`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
FOREIGN
KEY
(
`chat_id`
)
REFERENCES
`chat`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_520_ci
;
CREATE
TABLE
IF
NOT
EXISTS
`inline_query`
(
...
...
@@ -54,7 +52,7 @@ CREATE TABLE IF NOT EXISTS `chosen_inline_result` (
`id`
bigint
UNSIGNED
AUTO_INCREMENT
COMMENT
'Unique identifier for this entry'
,
`result_id`
CHAR
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'Identifier for this result'
,
`user_id`
bigint
NULL
COMMENT
'Unique user identifier'
,
`location`
CHAR
(
255
)
NULL
DEFAULT
NULL
COMMENT
'Location object, user
\
'
s location'
,
`location`
CHAR
(
255
)
NULL
DEFAULT
NULL
COMMENT
'Location object, user
'
'
s location'
,
`inline_message_id`
CHAR
(
255
)
NULL
DEFAULT
NULL
COMMENT
'Identifier of the sent inline message'
,
`query`
TEXT
NOT
NULL
COMMENT
'The query that was used to obtain the result'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
...
...
@@ -160,7 +158,7 @@ CREATE TABLE IF NOT EXISTS `edited_message` (
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_520_ci
;
CREATE
TABLE
IF
NOT
EXISTS
`telegram_update`
(
`id`
bigint
UNSIGNED
COMMENT
'Update
\
'
s unique identifier'
,
`id`
bigint
UNSIGNED
COMMENT
'Update
'
'
s unique identifier'
,
`chat_id`
bigint
NULL
DEFAULT
NULL
COMMENT
'Unique chat identifier'
,
`message_id`
bigint
UNSIGNED
DEFAULT
NULL
COMMENT
'Unique message identifier'
,
`inline_query_id`
bigint
UNSIGNED
DEFAULT
NULL
COMMENT
'Unique inline query identifier'
,
...
...
@@ -221,4 +219,4 @@ CREATE TABLE IF NOT EXISTS `request_limiter` (
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
char
SET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_520_ci
;
)
ENGINE
=
InnoDB
DEFAULT
CHAR
SET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_520_ci
;
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