-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.x] Prompt to create sqlite db when migrating (#43867)
* prompt to create SQLite database if it does not yet exist * formatting Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
0d936a9
commit c5772dd
Showing
3 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/Illuminate/Database/SQLiteDatabaseDoesNotExistException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Illuminate\Database; | ||
|
||
use InvalidArgumentException; | ||
|
||
class SQLiteDatabaseDoesNotExistException extends InvalidArgumentException | ||
{ | ||
/** | ||
* The path to the database. | ||
* | ||
* @var string | ||
*/ | ||
public $path; | ||
|
||
/** | ||
* Create a new exception instance. | ||
* | ||
* @param string $path | ||
* @return void | ||
*/ | ||
public function __construct($path) | ||
{ | ||
parent::__construct("Database ({$path}) does not exist."); | ||
|
||
$this->path = $path; | ||
} | ||
} |