Skip to content

Commit 535a338

Browse files
authored
Merge pull request #2050 from opensource-workshop/sqlsrv
[コア] 外部のsqlsrvに繋ぐDB設定を追加
2 parents 0473eb4 + ed58fa3 commit 535a338

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

config/database.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@
122122
'prefix_indexes' => true,
123123
],
124124

125+
'sqlsrv_ext' => [
126+
'driver' => 'sqlsrv',
127+
'url' => env('SQLSRV_DATABASE_URL'),
128+
'host' => env('SQLSRV_DB_HOST', 'localhost'),
129+
'port' => env('SQLSRV_DB_PORT', '1433'),
130+
'database' => env('SQLSRV_DB_DATABASE', 'forge'),
131+
'username' => env('SQLSRV_DB_USERNAME', 'forge'),
132+
'password' => env('SQLSRV_DB_PASSWORD', ''),
133+
'charset' => 'utf8',
134+
'prefix' => '',
135+
'prefix_indexes' => true,
136+
],
137+
125138
],
126139

127140
/*

0 commit comments

Comments
 (0)