<commit_before><?php

return function ($step = NULL, $params = array()) {
    App::$cur->db->createTable('notifications_notification', [
        'notification_id' => 'pk',
        'notification_chanel_id' => 'int(11) UNSIGNED NOT NULL',
        'notification_name' => 'varchar(255) NOT NULL',
        'notification_text' => 'text NOT NULL',
        'notification_action' => 'text NOT NULL',
        'notification_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
    App::$cur->db->createTable('notifications_chanel', [
        'chanel_id' => 'pk',
        'chanel_name' => 'varchar(255) NOT NULL',
        'chanel_alias' => 'varchar(255) NOT NULL',
        'chanel_path' => 'varchar(255) NOT NULL',
        'chanel_parent_id' => 'int(11) UNSIGNED NOT NULL',
        'chanel_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
    App::$cur->db->createTable('notifications_subscriber', [
        'subscriber_id' => 'pk',
        'subscriber_key' => 'varchar(255) NOT NULL',
        'subscriber_user_id' => 'int(11) UNSIGNED NOT NULL',
        'subscriber_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
    App::$cur->db->createTable('notifications_subscriber_device', [
        'subscriber_device_id' => 'pk',
        'subscriber_device_key' => 'varchar(255) NOT NULL',
        'subscriber_device_subscriber_id' => 'int(11) UNSIGNED NOT NULL',
        'subscriber_device_date_last_check' => 'timestamp NOT NULL DEFAULT 0',
        'subscriber_device_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
    App::$cur->db->createTable('notifications_subscribe', [
        'subscribe_id' => 'pk',
        'subscribe_chanel_id' => 'int(11) UNSIGNED NOT NULL',
        'subscribe_subscriber_id' => 'int(11) UNSIGNED NOT NULL',
        'subscribe_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
};
<commit_msg>add key<commit_after><?php

return function ($step = NULL, $params = array()) {
    App::$cur->db->createTable('notifications_notification', [
        'notification_id' => 'pk',
        'notification_chanel_id' => 'int(11) UNSIGNED NOT NULL',
        'notification_name' => 'varchar(255) NOT NULL',
        'notification_text' => 'text NOT NULL',
        'notification_action' => 'text NOT NULL',
        'notification_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
    App::$cur->db->createTable('notifications_chanel', [
        'chanel_id' => 'pk',
        'chanel_name' => 'varchar(255) NOT NULL',
        'chanel_alias' => 'varchar(255) NOT NULL',
        'chanel_path' => 'varchar(255) NOT NULL',
        'chanel_parent_id' => 'int(11) UNSIGNED NOT NULL',
        'chanel_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
    App::$cur->db->createTable('notifications_subscriber', [
        'subscriber_id' => 'pk',
        'subscriber_key' => 'varchar(255) NOT NULL',
        'subscriber_user_id' => 'int(11) UNSIGNED NOT NULL',
        'subscriber_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
    App::$cur->db->createTable('notifications_subscriber_device', [
        'subscriber_device_id' => 'pk',
        'subscriber_device_key' => 'varchar(255) NOT NULL',
        'subscriber_device_subscriber_id' => 'int(11) UNSIGNED NOT NULL',
        'subscriber_device_date_last_check' => 'timestamp NOT NULL DEFAULT 0',
        'subscriber_device_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ],[
        'UNIQUE INDEX ' . App::$cur->db->table_prefix . 'notifications_subscriber_device_subscriber_device_key (subscriber_device_key)'
    ]);
    App::$cur->db->createTable('notifications_subscribe', [
        'subscribe_id' => 'pk',
        'subscribe_chanel_id' => 'int(11) UNSIGNED NOT NULL',
        'subscribe_subscriber_id' => 'int(11) UNSIGNED NOT NULL',
        'subscribe_date_create' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
    ]);
};

{'fraction_non_alphanumeric': 0.15120967741935484, 'fraction_numerical': 0.015625, 'mean_word_length': 3.6859504132231407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 75, 'https://': 0, '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': '2487149', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1278, 'n_words': 246}