mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Add enum conversation
Tho I don’t know why we need this. I don’t see any enums left in the DB structure.
This commit is contained in:
parent
e8f45555ff
commit
eb4562a28b
|
@ -45,6 +45,9 @@ class IncreasePurchaseCostSize extends Migration
|
|||
*/
|
||||
public function down()
|
||||
{
|
||||
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
|
||||
$platform->registerDoctrineTypeMapping('enum', 'string');
|
||||
|
||||
Schema::table('assets', function ($table) {
|
||||
$table->decimal('purchase_cost', 8, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue