hasTable('group_folders_trash')) { $table = $schema->createTable('group_folders_trash'); $table->addColumn('trash_id', 'bigint', [ 'autoincrement' => true, 'notnull' => true, 'length' => 6, ]); $table->addColumn('name', 'string', [ 'notnull' => true, 'length' => 250, ]); $table->addColumn('original_location', 'string', [ 'notnull' => true, 'length' => 4000, ]); $table->addColumn('deleted_time', 'bigint', [ 'notnull' => true, 'length' => 6, ]); $table->addColumn('folder_id', 'bigint', [ 'notnull' => true, 'length' => 6, ]); $table->setPrimaryKey(['trash_id']); $table->addUniqueIndex(['folder_id', 'name', 'deleted_time'], 'groups_folder_trash_unique'); } return $schema; } }