Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
agenda-libre
agenda-libre-php
Commits
44ace62f
Commit
44ace62f
authored
Nov 26, 2018
by
Loïc DAYOT
Committed by
Ploc
Apr 10, 2019
Browse files
fix(sql): sql schema for install
Add autoincrement in localgroups table. Adjust , in create query.
parent
21c9997b
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/schema.sql
View file @
44ace62f
...
...
@@ -78,7 +78,7 @@ DEALLOCATE PREPARE stmt;
SET
@
s
=
CONCAT
(
"CREATE TABLE IF NOT EXISTS "
,
@
tablePrefix
,
"localgroups"
,
" (
`id` int(11) NOT NULL,
`id` int(11) NOT NULL
AUTO_INCREMENT
,
`country` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',
...
...
@@ -97,10 +97,8 @@ SET @s = CONCAT("CREATE TABLE IF NOT EXISTS ", @tablePrefix, "localgroups",
`decision_time` datetime NOT NULL,
`submission_time` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`)
KEY `department` (`department`),
KEY `region` (`region`),
KEY `moderated` (`moderated`),
KEY `name` (`name`),
KEY `moderated` (`moderated`)
) DEFAULT CHARSET=utf8;"
);
PREPARE
stmt
FROM
@
s
;
EXECUTE
stmt
;
...
...
@@ -150,7 +148,7 @@ SET @s = CONCAT("CREATE TABLE IF NOT EXISTS ", @tablePrefix, "notes",
`event_id` int(11) default NULL,
`author_id` int(11) default NULL,
PRIMARY KEY (`id`)
);"
);
)
DEFAULT CHARSET=utf8
;"
);
PREPARE
stmt
FROM
@
s
;
EXECUTE
stmt
;
DEALLOCATE
PREPARE
stmt
;
...
...
@@ -264,4 +262,3 @@ EXECUTE stmt;
DEALLOCATE
PREPARE
stmt
;
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