mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Fix more enum fuckery
This commit is contained in:
parent
81e358a01d
commit
6232a077b5
|
@ -12,10 +12,13 @@ class AddSoftDeletedToLog extends Migration {
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
|
||||||
Schema::table('asset_logs', function ($table) {
|
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
|
||||||
$table->string('asset_type',100)->nullable()->change();
|
$platform->registerDoctrineTypeMapping('enum', 'string');
|
||||||
});
|
|
||||||
|
Schema::table('asset_logs', function ($table) {
|
||||||
|
$table->string('asset_type',100)->nullable()->change();
|
||||||
|
});
|
||||||
|
|
||||||
// DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'asset_logs MODIFY column asset_type varchar(100) null');
|
// DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'asset_logs MODIFY column asset_type varchar(100) null');
|
||||||
// DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'asset_logs MODIFY column added_on timestamp default "0000-00-00 00:00:00"');
|
// DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'asset_logs MODIFY column added_on timestamp default "0000-00-00 00:00:00"');
|
||||||
|
|
Loading…
Reference in a new issue