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
408cbd42
Commit
408cbd42
authored
Jun 20, 2017
by
Armando Lüscher
Committed by
GitHub
Jun 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #490 from noplanman/fix_sql_structure
Fix indexed column length and quotes in comments.
parents
cef365ab
572f8d26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
CHANGELOG.md
CHANGELOG.md
+1
-0
structure.sql
structure.sql
+4
-6
No files found.
CHANGELOG.md
View file @
408cbd42
...
@@ -16,6 +16,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
...
@@ -16,6 +16,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Fixed
### Fixed
-
ID fields are now typed with
`PARAM_STR`
PDO data type, to allow huge numbers.
-
ID fields are now typed with
`PARAM_STR`
PDO data type, to allow huge numbers.
-
Message type data type for PDO corrected.
-
Message type data type for PDO corrected.
-
Indexed table columns now have a fitting length.
### Security
### Security
## [0.44.1] - 2017-04-25
## [0.44.1] - 2017-04-25
...
...
structure.sql
View file @
408cbd42
...
@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `user` (
...
@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `user` (
`id`
bigint
COMMENT
'Unique user identifier'
,
`id`
bigint
COMMENT
'Unique user identifier'
,
`first_name`
CHAR
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'User
''
s first name'
,
`first_name`
CHAR
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'User
''
s first name'
,
`last_name`
CHAR
(
255
)
DEFAULT
NULL
COMMENT
'User
''
s last name'
,
`last_name`
CHAR
(
255
)
DEFAULT
NULL
COMMENT
'User
''
s last name'
,
`username`
CHAR
(
255
)
DEFAULT
NULL
COMMENT
'User
''
s username'
,
`username`
CHAR
(
191
)
DEFAULT
NULL
COMMENT
'User
''
s username'
,
`language_code`
CHAR
(
10
)
DEFAULT
NULL
COMMENT
'User
''
s system language'
,
`language_code`
CHAR
(
10
)
DEFAULT
NULL
COMMENT
'User
''
s system language'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date update'
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date update'
,
...
@@ -31,10 +31,8 @@ CREATE TABLE IF NOT EXISTS `user_chat` (
...
@@ -31,10 +31,8 @@ CREATE TABLE IF NOT EXISTS `user_chat` (
PRIMARY
KEY
(
`user_id`
,
`chat_id`
),
PRIMARY
KEY
(
`user_id`
,
`chat_id`
),
FOREIGN
KEY
(
`user_id`
)
REFERENCES
`user`
(
`id`
)
FOREIGN
KEY
(
`user_id`
)
REFERENCES
`user`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
FOREIGN
KEY
(
`chat_id`
)
REFERENCES
`chat`
(
`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
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_520_ci
;
CREATE
TABLE
IF
NOT
EXISTS
`inline_query`
(
CREATE
TABLE
IF
NOT
EXISTS
`inline_query`
(
...
@@ -221,4 +219,4 @@ CREATE TABLE IF NOT EXISTS `request_limiter` (
...
@@ -221,4 +219,4 @@ CREATE TABLE IF NOT EXISTS `request_limiter` (
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
PRIMARY
KEY
(
`id`
)
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