Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
9dee79ba
Commit
9dee79ba
authored
Mar 27, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing SQLite connector.
Signed-off-by:
Taylor Otwell
<
taylorotwell@gmail.com
>
parent
0e6312d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
sqlite.php
laravel/database/connectors/sqlite.php
+1
-15
No files found.
laravel/database/connectors/sqlite.php
View file @
9dee79ba
...
...
@@ -20,21 +20,7 @@ class SQLite extends Connector {
return
new
PDO
(
'sqlite::memory:'
,
null
,
null
,
$options
);
}
// We'll allow the "database" configuration option to be a fully qualified
// path to the database so we'll check if that is the case first. If it
// isn't a fully qualified path we will use the storage directory.
if
(
file_exists
(
$config
[
'database'
]))
{
$path
=
$config
[
'database'
];
}
// The database option does not appear to be a fully qualified path so we
// will just assume it is a relative path from the storage directory
// which is typically used to store all SQLite databases.
else
{
$path
=
path
(
'storage'
)
.
'database'
.
DS
.
$config
[
'database'
]
.
'.sqlite'
;
}
$path
=
path
(
'storage'
)
.
'database'
.
DS
.
$config
[
'database'
]
.
'.sqlite'
;
return
new
PDO
(
'sqlite:'
.
$path
,
null
,
null
,
$options
);
}
...
...
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