You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dusk.md
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -173,12 +173,6 @@ The `DatabaseMigrations` trait will run your database migrations before each tes
173
173
<aname="reset-truncation"></a>
174
174
#### Using Database Truncation
175
175
176
-
Before using the `DatabaseTruncation` trait, you must install the `doctrine/dbal` package using the Composer package manager:
177
-
178
-
```shell
179
-
composer require --dev doctrine/dbal
180
-
```
181
-
182
176
The `DatabaseTruncation` trait will migrate your database on the first test in order to ensure your database tables have been properly created. However, on subsequent tests, the database's tables will simply be truncated - providing a speed boost over re-running all of your database migrations:
If your application is utilizing an SQLite database, you must install the `doctrine/dbal` package using the Composer package manager before modifying a column. The Doctrine DBAL library is used to determine the current state of the column and to create the SQL queries needed to make the requested changes to your column:
1039
-
1040
-
composer require doctrine/dbal
1041
-
1042
-
If you plan to modify columns created using the `timestamp` method, you must also add the following configuration to your application's `config/database.php` configuration file:
1043
-
1044
-
```php
1045
-
use Illuminate\Database\DBAL\TimestampType;
1046
-
1047
-
'dbal' => [
1048
-
'types' => [
1049
-
'timestamp' => TimestampType::class,
1050
-
],
1051
-
],
1052
-
```
1053
-
1054
-
> [!WARNING]
1055
-
> When using the `doctrine/dbal` package, the following column types can be modified: `bigInteger`, `binary`, `boolean`, `char`, `date`, `dateTime`, `dateTimeTz`, `decimal`, `double`, `integer`, `json`, `longText`, `mediumText`, `smallInteger`, `string`, `text`, `time`, `tinyText`, `unsignedBigInteger`, `unsignedInteger`, `unsignedSmallInteger`, `ulid`, and `uuid`.
1056
-
1057
1035
<aname="renaming-columns"></a>
1058
1036
### Renaming Columns
1059
1037
@@ -1063,19 +1041,6 @@ To rename a column, you may use the `renameColumn` method provided by the schema
If you are running a database installation older than one of the following releases, you should ensure that you have installed the `doctrine/dbal` library via the Composer package manager before renaming a column:
1070
-
1071
-
<divclass="content-list"markdown="1">
1072
-
1073
-
- MySQL < `8.0.3`
1074
-
- MariaDB < `10.5.2`
1075
-
- SQLite < `3.25.0`
1076
-
1077
-
</div>
1078
-
1079
1044
<aname="dropping-columns"></a>
1080
1045
### Dropping Columns
1081
1046
@@ -1091,11 +1056,6 @@ You may drop multiple columns from a table by passing an array of column names t
If you are running a version of SQLite prior to `3.35.0`, you must install the `doctrine/dbal` package via the Composer package manager before the `dropColumn` method may be used. Dropping or modifying multiple columns within a single migration while using this package is not supported.
1098
-
1099
1059
<aname="available-command-aliases"></a>
1100
1060
#### Available Command Aliases
1101
1061
@@ -1176,9 +1136,6 @@ To rename an index, you may use the `renameIndex` method provided by the schema
1176
1136
1177
1137
$table->renameIndex('from', 'to')
1178
1138
1179
-
> [!WARNING]
1180
-
> If your application is utilizing an SQLite database, you must install the `doctrine/dbal` package via the Composer package manager before the `renameIndex` method may be used.
0 commit comments