mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
ANOTHER fix for enum fuckery
This commit is contained in:
parent
e27f6a483d
commit
233ebf06ee
|
@ -13,6 +13,9 @@ class SetAssetArchivedToZeroDefault extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
|
||||||
|
$platform->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
Schema::table('assets', function (Blueprint $table) {
|
Schema::table('assets', function (Blueprint $table) {
|
||||||
$table->boolean('archived')->default(0)->change();
|
$table->boolean('archived')->default(0)->change();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue