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
Donald Haase
Cockatrice
Commits
ba71d3a2
Commit
ba71d3a2
authored
Dec 13, 2014
by
Fabio Bas
Browse files
Add db schema and fix sql plugins installation
parent
ef8bd60a
Changes
2
Show whitespace changes
Inline
Side-by-side
servatrice/CMakeLists.txt
View file @
ba71d3a2
...
@@ -145,10 +145,10 @@ if(APPLE)
...
@@ -145,10 +145,10 @@ if(APPLE)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
FILES_MATCHING REGEX
"(
codecs|iconengines|imageformats|mediaservice|phonon_backend
|platforms)/.*_debug
\\
.dylib"
)
FILES_MATCHING REGEX
"(
sqldrivers
|platforms)/.*_debug
\\
.dylib"
)
else
()
else
()
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
FILES_MATCHING REGEX
"(
codecs|iconengines|imageformats|mediaservice|phonon_backend
|platforms)/[^_]*
\\
.dylib"
)
FILES_MATCHING REGEX
"(
sqldrivers
|platforms)/[^_]*
\\
.dylib"
)
endif
()
endif
()
install
(
CODE
"
install
(
CODE
"
...
@@ -177,10 +177,10 @@ if(WIN32)
...
@@ -177,10 +177,10 @@ if(WIN32)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
FILES_MATCHING REGEX
"(
codecs|iconengines|imageformats|mediaservice|phonon_backend
|platforms)/.*d
\\
.dll"
)
FILES_MATCHING REGEX
"(
sqldrivers
|platforms)/.*d
\\
.dll"
)
else
()
else
()
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
install
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/"
DESTINATION
${
plugin_dest_dir
}
COMPONENT Runtime
FILES_MATCHING REGEX
"(
codecs|iconengines|imageformats|mediaservice|phonon_backend
|platforms)/.*[^d]
\\
.dll"
)
FILES_MATCHING REGEX
"(
sqldrivers
|platforms)/.*[^d]
\\
.dll"
)
endif
()
endif
()
install
(
CODE
"
install
(
CODE
"
...
...
servatrice/servatrice.sql
View file @
ba71d3a2
...
@@ -223,3 +223,18 @@ CREATE TABLE IF NOT EXISTS `cockatrice_rooms_gametypes` (
...
@@ -223,3 +223,18 @@ CREATE TABLE IF NOT EXISTS `cockatrice_rooms_gametypes` (
PRIMARY
KEY
(
`name`
)
PRIMARY
KEY
(
`name`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
IF
NOT
EXISTS
`cockatrice_log`
(
`log_time`
datetime
NOT
NULL
,
`sender_id`
int
(
7
)
unsigned
NULL
,
`sender_name`
varchar
(
35
)
NOT
NULL
,
`sender_ip`
varchar
(
255
)
NOT
NULL
,
`log_message`
text
NOT
NULL
,
`target_type`
ENUM
(
'room'
,
'game'
,
'chat'
),
`target_id`
int
(
7
)
NULL
,
`target_name`
varchar
(
50
)
NOT
NULL
,
KEY
`sender_name`
(
`sender_name`
),
KEY
`sender_ip`
(
`sender_ip`
),
KEY
`target_type`
(
`target_type`
),
KEY
`target_id`
(
`target_id`
),
KEY
`target_name`
(
`target_name`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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