FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpbb/.github/setup-database.sh at master · gwarshavsky/phpbb · GitHub
gwarshavsky
/
phpbb
Public
forked from
phpbb/phpbb
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpbb
/
.github
/
setup-database.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
28 lines (25 loc) · 721 Bytes
Breadcrumbs
phpbb
/
.github
/
setup-database.sh
Copy path
File metadata and controls
executable file
·
28 lines (25 loc) · 721 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!
/bin/bash
#
#
This file is part of the phpBB Forum Software package.
#
#
@copyright (c) phpBB Limited <https://www.phpbb.com>
#
@license GNU General Public License, version 2 (GPL-2.0)
#
#
For full copyright and license information, please see
#
the docs/CREDITS.txt file.
#
set
-e
set
-x
DB=
$1
MYISAM=
$2
if
[
"
$DB
"
==
"
postgres
"
]
then
psql -c
'
DROP DATABASE IF EXISTS phpbb_tests;
'
-U postgres
psql -c
'
create database phpbb_tests;
'
-U postgres
psql -c
"
ALTER DATABASE phpbb_tests SET statement_timeout = '60s';
"
-U postgres
psql -c
"
ALTER DATABASE phpbb_tests SET lock_timeout = '30s';
"
-U postgres
fi
if
[
"
$MYISAM
"
==
'
1
'
]
then
mysql -h 127.0.0.1 -u root -e
'
SET GLOBAL default_storage_engine=MyISAM;
'
fi
Back
|
FazBrowse Home
|
New Git URL