-
-
Notifications
You must be signed in to change notification settings - Fork 1
2. Installation
The recommended installation is using composer require --dev toramanlis/implicit-migrations command. Since this will make the implication attributes unavailable in production, if you want to use attributes for implications you have to take one of these approaches:
You can publish the attribute classes with php artisan vendor:publish --tag=implication-attributes and add the line "database/attributes/composer.json" in the composer.json file like this:
...
"extra": {
"merge-plugin": {
"include": [
"database/attributes/composer.json"
]
}
}
...Each and every one of the implications are available as both attributes and annotations. You can completely give up using attributes and switch to the annotation notation with no missing functionality.
Alternatively, you can always install the package with composer install toramanlis/implicit-migrations without the --dev option. Having a tool like this in production sure is unnecessary, but it's just that, unnecessary.
- Overview
- Installation
- Configuration
- Manual Migrations
-
Implication Reference
TableColumnBinaryCharCStringIntegerTinyIntegerSmallIntegerMedumIntegerBigIntegerIncrementsTinyIncrementsSmallIncrementsMedumIncrementsCFloatDecimalDateTimeDateTimeTzTimeTimeTzTimestampTimestampTzEnumSetGeometryGeographyComputedIndexUniquePrimaryRelationshipForeignKeyPivotTablePivotColumnOff