<commit_before><?php

/**
 * Part of the Antares package.
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the 3-clause BSD License.
 *
 * This source file is subject to the 3-clause BSD License that is
 * bundled with this package in the LICENSE file.
 *
 * @package    Antares Core
 * @version    0.9.0
 * @author     Original Orchestral https://github.com/orchestral
 * @author     Antares Team
 * @license    BSD License (3-clause)
 * @copyright  (c) 2017, Antares
 * @link       http://antaresproject.io
 */


use Illuminate\Database\Seeder;

class NotificationTypesSeeder extends Seeder
{

    /**
     * Run the database seeding.
     *
     * @return void
     */
    public function run()
    {
        $this->down();
        $types = [
                ['name' => 'mail', 'title' => 'Mail'],
                ['name' => 'sms', 'title' => 'Sms'],
                ['name' => 'notification', 'title' => 'Notification'],
        ];

        DB::table('tbl_notification_types')->insert($types);
        DB::table('tbl_notification_categories')->insert([
                ['name' => 'default', 'title' => 'System'],
                ['name' => 'users', 'title' => 'Users']
        ]);
    }

    /**
     * delete all database occurences for logger component
     */
    public function down()
    {
        if (Schema::hasTable('tbl_notification_types')) {
            DB::table('tbl_notification_types')->delete();
        }
        if (Schema::hasTable('tbl_notification_categories')) {
            DB::table('tbl_notification_categories')->delete();
        }
    }

}<commit_msg>ADD: alert notification type to seed<commit_after><?php

/**
 * Part of the Antares package.
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the 3-clause BSD License.
 *
 * This source file is subject to the 3-clause BSD License that is
 * bundled with this package in the LICENSE file.
 *
 * @package    Antares Core
 * @version    0.9.0
 * @author     Original Orchestral https://github.com/orchestral
 * @author     <NAME>
 * @license    BSD License (3-clause)
 * @copyright  (c) 2017, Antares
 * @link       http://antaresproject.io
 */


use Illuminate\Database\Seeder;

class NotificationTypesSeeder extends Seeder
{

    /**
     * Run the database seeding.
     *
     * @return void
     */
    public function run()
    {
        $this->down();
        $types = [
                ['name' => 'mail', 'title' => 'Mail'],
                ['name' => 'sms', 'title' => 'Sms'],
                ['name' => 'notification', 'title' => 'Notification'],
                ['name' => 'alert', 'title' => 'Alert'],
        ];

        DB::table('tbl_notification_types')->insert($types);
        DB::table('tbl_notification_categories')->insert([
                ['name' => 'default', 'title' => 'System'],
                ['name' => 'users', 'title' => 'Users']
        ]);
    }

    /**
     * delete all database occurences for logger component
     */
    public function down()
    {
        if (Schema::hasTable('tbl_notification_types')) {
            DB::table('tbl_notification_types')->delete();
        }
        if (Schema::hasTable('tbl_notification_categories')) {
            DB::table('tbl_notification_categories')->delete();
        }
    }

}
{'fraction_non_alphanumeric': 0.1549165120593692, 'fraction_numerical': 0.006184291898577613, 'mean_word_length': 2.2447342026078236, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 36, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6649209', 'n_tokens_mistral': 948, 'n_tokens_neox': 926, 'n_words': 232}