REFACTORING #1880 @15m: remove custom fields

This commit is contained in:
Michal Kváček
2016-11-23 03:21:23 +01:00
parent 675aec669b
commit d0fbce13fb
28 changed files with 1 additions and 727 deletions
-2
View File
@@ -12,8 +12,6 @@ class DatabaseSeeder extends Seeder
public function run()
{
// fill up custom field types
$this->call(SeedCustomFieldTypes::class);
$this->call(SeedCustomFieldResources::class);
$this->call(SeedActionLogTypes::class);
$this->call(SeedSettings::class);
}
@@ -1,24 +0,0 @@
<?php
use Illuminate\Database\Seeder;
class SeedCustomFieldResources extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$types = [
['name' => 'admin/customFields.resource_user'],
['name' => 'admin/customFields.resource_content']
];
foreach ($types as $type) {
\DB::table('custom_field_resource')
->insert($type);
}
}
}
-27
View File
@@ -1,27 +0,0 @@
<?php
use Illuminate\Database\Seeder;
class SeedCustomFieldTypes extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$types = [
['name' => 'admin/customFields.date', 'handler' => '\\App\\CustomFields\\Date'],
['name' => 'admin/customFields.number', 'handler' => '\\App\\CustomFields\\Number'],
['name' => 'admin/customFields.selectboxList', 'handler' => '\\App\\CustomFields\\SelectboxList'],
['name' => 'admin/customFields.string', 'handler' => '\\App\\CustomFields\\String']
];
foreach ($types as $type) {
\DB::table('custom_field_types')
->insert($type);
}
}
}