Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ColumnDefinition.php 1.9KB

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