ColumnDefinition.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Illuminate\Database\Schema;
  3. use Illuminate\Support\Fluent;
  4. use Illuminate\Database\Query\Expression;
  5. /**
  6. * @method ColumnDefinition after(string $column) Place the column "after" another column (MySQL)
  7. * @method ColumnDefinition always() Used as a modifier for generatedAs() (PostgreSQL)
  8. * @method ColumnDefinition autoIncrement() Set INTEGER columns as auto-increment (primary key)
  9. * @method ColumnDefinition change() Change the column
  10. * @method ColumnDefinition charset(string $charset) Specify a character set for the column (MySQL)
  11. * @method ColumnDefinition collation(string $collation) Specify a collation for the column (MySQL/PostgreSQL/SQL Server)
  12. * @method ColumnDefinition comment(string $comment) Add a comment to the column (MySQL)
  13. * @method ColumnDefinition default(mixed $value) Specify a "default" value for the column
  14. * @method ColumnDefinition first() Place the column "first" in the table (MySQL)
  15. * @method ColumnDefinition generatedAs(string|Expression $expression = null) Create a SQL compliant identity column (PostgreSQL)
  16. * @method ColumnDefinition index(string $indexName = null) Add an index
  17. * @method ColumnDefinition nullable(bool $value = true) Allow NULL values to be inserted into the column
  18. * @method ColumnDefinition primary() Add a primary index
  19. * @method ColumnDefinition spatialIndex() Add a spatial index
  20. * @method ColumnDefinition storedAs(string $expression) Create a stored generated column (MySQL)
  21. * @method ColumnDefinition unique() Add a unique index
  22. * @method ColumnDefinition unsigned() Set the INTEGER column as UNSIGNED (MySQL)
  23. * @method ColumnDefinition useCurrent() Set the TIMESTAMP column to use CURRENT_TIMESTAMP as default value
  24. * @method ColumnDefinition virtualAs(string $expression) Create a virtual generated column (MySQL)
  25. * @method ColumnDefinition persisted() Mark the computed generated column as persistent (SQL Server)
  26. */
  27. class ColumnDefinition extends Fluent
  28. {
  29. //
  30. }