Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
slapos-mynij-dev
Commits
e7d776b5
Commit
e7d776b5
authored
Nov 08, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialise user-defined functions in mysql_update.
parent
13894aed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/__init__.py
+3
-1
slapos/recipe/erp5/template/mysql-init-database.sql.in
slapos/recipe/erp5/template/mysql-init-database.sql.in
+0
-0
slapos/recipe/erp5/template/mysql-init-function.sql.in
slapos/recipe/erp5/template/mysql-init-function.sql.in
+5
-0
No files found.
slapos/recipe/erp5/__init__.py
View file @
e7d776b5
...
...
@@ -1198,6 +1198,8 @@ SSLCARevocationPath %(ca_crl)s"""
mysql_conf
))
mysql_script_list
=
[]
mysql_script_list
.
append
(
pkg_resources
.
resource_string
(
__name__
,
'template/mysql-init-function.sql.in'
))
for
x_database
,
x_user
,
x_password
in
\
[(
mysql_conf
[
'mysql_database'
],
mysql_conf
[
'mysql_user'
],
...
...
@@ -1207,7 +1209,7 @@ SSLCARevocationPath %(ca_crl)s"""
mysql_conf
[
'mysql_test_password'
]),
]
+
mysql_conf
[
'mysql_parallel_test_dict'
]:
mysql_script_list
.
append
(
pkg_resources
.
resource_string
(
__name__
,
'template/
initmysql
.sql.in'
)
%
{
'template/
mysql-init-database
.sql.in'
)
%
{
'mysql_database'
:
x_database
,
'mysql_user'
:
x_user
,
'mysql_password'
:
x_password
})
...
...
slapos/recipe/erp5/template/
initmysql
.sql.in
→
slapos/recipe/erp5/template/
mysql-init-database
.sql.in
View file @
e7d776b5
File moved
slapos/recipe/erp5/template/mysql-init-function.sql.in
0 → 100644
View file @
e7d776b5
USE mysql;
DROP FUNCTION IF EXISTS last_insert_grn_id;
CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME 'ha_groonga.so';
DROP FUNCTION IF EXISTS sphinx_snippets;
CREATE FUNCTION sphinx_snippets RETURNS STRING SONAME 'sphinx.so';
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