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: migrations.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Laravel will use the name of the migration to attempt to guess the name of the t
44
44
45
45
If you would like to specify a custom path for the generated migration, you may use the `--path` option when executing the `make:migration` command. The given path should be relative to your application's base path.
46
46
47
-
> [!NOTE]
47
+
> [!NOTE]
48
48
> Migration stubs may be customized using [stub publishing](/docs/{{version}}/artisan#stub-customization).
You should commit your database schema file to source control so that other new developers on your team may quickly create your application's initial database structure.
72
72
73
-
> [!WARNING]
73
+
> [!WARNING]
74
74
> Migration squashing is only available for the MariaDB, MySQL, PostgreSQL, and SQLite databases and utilizes the database's command-line client.
75
75
76
76
<aname="migration-structure"></a>
@@ -161,7 +161,7 @@ When the `isolated` option is provided, Laravel will acquire an atomic lock usin
161
161
php artisan migrate --isolated
162
162
```
163
163
164
-
> [!WARNING]
164
+
> [!WARNING]
165
165
> To utilize this feature, your application must be using the `memcached`, `redis`, `dynamodb`, `database`, `file`, or `array` cache driver as your application's default cache driver. In addition, all servers must be communicating with the same central cache server.
@@ -241,7 +241,7 @@ By default, the `migrate:fresh` command only drops tables from the default datab
241
241
php artisan migrate:fresh --database=admin
242
242
```
243
243
244
-
> [!WARNING]
244
+
> [!WARNING]
245
245
> The `migrate:fresh` command will drop all database tables regardless of their prefix. This command should be used with caution when developing on a database that is shared with other applications.
246
246
247
247
<aname="tables"></a>
@@ -458,6 +458,7 @@ The schema builder blueprint offers a variety of methods that correspond to the
458
458
[uuidMorphs](#column-method-uuidMorphs)
459
459
[ulid](#column-method-ulid)
460
460
[uuid](#column-method-uuid)
461
+
[vector](#column-method-vector)
461
462
[year](#column-method-year)
462
463
463
464
</div>
@@ -587,7 +588,7 @@ The `geography` method creates a `GEOGRAPHY` equivalent column with the given sp
> Support for spatial types depends on your database driver. Please refer to your database's documentation. If your application is utilizing a PostgreSQL database, you must install the [PostGIS](https://postgis.net) extension before the `geography` method may be used.
592
593
593
594
<aname="column-method-geometry"></a>
@@ -597,7 +598,7 @@ The `geometry` method creates a `GEOMETRY` equivalent column with the given spat
> Support for spatial types depends on your database driver. Please refer to your database's documentation. If your application is utilizing a PostgreSQL database, you must install the [PostGIS](https://postgis.net) extension before the `geometry` method may be used.
602
603
603
604
<aname="column-method-id"></a>
@@ -918,6 +919,13 @@ The `uuid` method creates a `UUID` equivalent column:
918
919
919
920
$table->uuid('id');
920
921
922
+
<aname="column-method-vector"></a>
923
+
#### `vector()` {.collection-method}
924
+
925
+
The `vector` method creates a `vector` equivalent column:
926
+
927
+
$table->vector('embedding');
928
+
921
929
<aname="column-method-year"></a>
922
930
#### `year()` {.collection-method}
923
931
@@ -990,7 +998,7 @@ The `default` modifier accepts a value or an `Illuminate\Database\Query\Expressi
990
998
}
991
999
};
992
1000
993
-
> [!WARNING]
1001
+
> [!WARNING]
994
1002
> Support for default expressions depends on your database driver, database version, and the field type. Please refer to your database's documentation.
995
1003
996
1004
<aname="column-order"></a>
@@ -1229,7 +1237,7 @@ You may enable or disable foreign key constraints within your migrations by usin
1229
1237
// Constraints disabled within this closure...
1230
1238
});
1231
1239
1232
-
> [!WARNING]
1240
+
> [!WARNING]
1233
1241
> SQLite disables foreign key constraints by default. When using SQLite, make sure to [enable foreign key support](/docs/{{version}}/database#configuration) in your database configuration before attempting to create them in your migrations.
0 commit comments