migrations/Version20230908151529.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Migration 1 - create basic tables
  8. */
  9. final class Version20230908151529 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.        $this->addSql('CREATE TABLE IF NOT EXISTS `user` (
  18.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  19.                         `admin_id` int(11) DEFAULT NULL,
  20.                         `email` varchar(180) NOT NULL,
  21.                         `roles` text NOT NULL,
  22.                         `user_type` int(11) NOT NULL,
  23.                         `password` varchar(255) DEFAULT NULL,
  24.                         `main_admin` tinyint(1) NOT NULL DEFAULT 0,
  25.                         `super_admin` tinyint(1) NOT NULL DEFAULT 0,
  26.                         `is_verified` tinyint(1) NOT NULL DEFAULT 1,
  27.                         `is_active` tinyint(2) DEFAULT NULL,
  28.                         `created_at` datetime DEFAULT NULL,
  29.                         `updated_at` datetime DEFAULT NULL,
  30.                         `deleted_at` datetime DEFAULT NULL,
  31.                         `is_deleted` tinyint(1) DEFAULT 0,
  32.                         `user_group_id` int(11) DEFAULT NULL,
  33.                         `created_by` int(11) DEFAULT NULL,
  34.                         `updated_by` int(11) DEFAULT NULL,
  35.                         `deleted_by` int(11) DEFAULT NULL,
  36.                         PRIMARY KEY (`id`),
  37.                         KEY `user_user_group` (`user_group_id`),
  38.                         KEY `user_type` (`user_type`),
  39.                         KEY `admin_id` (`admin_id`),
  40.                         KEY `created_by` (`created_by`),
  41.                         KEY `updated_by` (`updated_by`),
  42.                         KEY `deleted_by` (`deleted_by`),
  43.                         CONSTRAINT `user_ibfk_1` FOREIGN KEY (`created_by`) REFERENCES `user` (`id`),
  44.                         CONSTRAINT `user_ibfk_2` FOREIGN KEY (`updated_by`) REFERENCES `user` (`id`),
  45.                         CONSTRAINT `user_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`id`)
  46.                       ) ENGINE=InnoDB AUTO_INCREMENT=719 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  47.        
  48.        $this->addSql('CREATE TABLE IF NOT EXISTS `user_group` (
  49.                         `id` int(11) NOT NULL,
  50.                         `user_group` varchar(255) NOT NULL,
  51.                         `is_active` int(1) NOT NULL,
  52.                         `is_deleted` int(1) NOT NULL,
  53.                         `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  54.                         PRIMARY KEY (`id`)
  55.                       ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  56.        
  57.        $this->addSql('CREATE TABLE IF NOT EXISTS `user_profile` (
  58.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  59.                         `user_id` int(11) DEFAULT NULL,
  60.                         `ref_id` int(11) NOT NULL DEFAULT 1,
  61.                         `first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  62.                         `last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  63.                         `user_profile_image` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  64.                         `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  65.                         `company_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  66.                         `company_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  67.                         `language` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  68.                         `company_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  69.                         `town` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  70.                         `state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  71.                         `country` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  72.                         `postcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  73.                         `last_login_at` datetime DEFAULT current_timestamp(),
  74.                         PRIMARY KEY (`id`),
  75.                         KEY `user_id` (`user_id`),
  76.                         CONSTRAINT `user_profile_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
  77.                       ) ENGINE=InnoDB AUTO_INCREMENT=411 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;');
  78.        
  79.        
  80.        
  81.        $this->addSql('CREATE TABLE IF NOT EXISTS `tc_user_roles` (
  82.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  83.                         `role_key` varchar(100) NOT NULL,
  84.                         `category` varchar(100) NOT NULL,
  85.                         `role` varchar(100) NOT NULL,
  86.                         `is_active` tinyint(1) NOT NULL DEFAULT 1,
  87.                         `is_deleted` tinyint(1) NOT NULL DEFAULT 0,
  88.                         PRIMARY KEY (`id`)
  89.                       ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  90.        
  91.        $this->addSql('CREATE TABLE IF NOT EXISTS `terminology` (
  92.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  93.                         `terminology_key` varchar(50) NOT NULL,
  94.                         `singular_text` varchar(255) DEFAULT NULL,
  95.                         `plural_text` varchar(255) DEFAULT NULL,
  96.                         PRIMARY KEY (`id`),
  97.                         UNIQUE KEY `terminology_key` (`terminology_key`)
  98.                       ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  99.        
  100.        $this->addSql('CREATE TABLE IF NOT EXISTS `company` (
  101.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  102.                         `company_title` varchar(255) NOT NULL,
  103.                         `is_active` tinyint(1) NOT NULL DEFAULT 1,
  104.                         `is_deleted` tinyint(1) NOT NULL DEFAULT 0,
  105.                         `created_at` datetime DEFAULT NULL,
  106.                         `created_by` int(11) DEFAULT NULL,
  107.                         `updated_at` datetime DEFAULT NULL,
  108.                         `updated_by` int(11) DEFAULT NULL,
  109.                         `deleted_at` datetime DEFAULT NULL,
  110.                         `deleted_by` int(11) DEFAULT NULL,
  111.                         PRIMARY KEY (`id`),
  112.                         KEY `created_by` (`created_by`),
  113.                         KEY `updated_by` (`updated_by`),
  114.                         KEY `deleted_by` (`deleted_by`),
  115.                         CONSTRAINT `company_ibfk_1` FOREIGN KEY (`created_by`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  116.                         CONSTRAINT `company_ibfk_2` FOREIGN KEY (`updated_by`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  117.                         CONSTRAINT `company_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
  118.                       ) ENGINE=InnoDB AUTO_INCREMENT=199 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  119.               
  120.        $this->addSql('CREATE TABLE IF NOT EXISTS `account_settings` (
  121.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  122.                         `version` varchar(255) DEFAULT NULL,
  123.                         PRIMARY KEY (`id`)
  124.                       ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;');
  125.        
  126.        $this->addSql("CREATE TABLE IF NOT EXISTS `company_settings` (
  127.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  128.                         `company_id` int(11) NOT NULL,
  129.                         `company_domain` varchar(255) DEFAULT NULL,
  130.                         `company_image` varchar(255) DEFAULT NULL,
  131.                         `account_version` int(11) DEFAULT NULL,
  132.                         `plan` enum('demo','free_trail','enterprise') NOT NULL DEFAULT 'free_trail',
  133.                         `plan_expire_date` date DEFAULT NULL,
  134.                         `default_form_id` int(11) DEFAULT NULL,
  135.                         `system_language` varchar(10) NOT NULL,
  136.                         `date_format` varchar(255) DEFAULT NULL,
  137.                         `time_format` varchar(255) DEFAULT NULL,
  138.                         `week_start_day` varchar(255) DEFAULT NULL,
  139.                         `datetime_format` varchar(255) DEFAULT NULL,
  140.                         `timezone` varchar(255) DEFAULT NULL,
  141.                         `missed_audit_cron_time` time DEFAULT NULL,
  142.                         `missed_audit_last_cron_date` datetime DEFAULT NULL,
  143.                         `auto_schedule_operator_cron_time` time DEFAULT NULL,
  144.                         `auto_schedule_operator_last_crone_date` datetime DEFAULT NULL,
  145.                         `junk_file_expire` int(11) NOT NULL DEFAULT 30,
  146.                         `user_refid_prefix` varchar(50) NOT NULL DEFAULT 'LT',
  147.                         `card_refid_prefix` varchar(50) NOT NULL DEFAULT 'T',
  148.                         `card_refid_starts_from` int(11) NOT NULL DEFAULT 1,
  149.                         `no_of_users` int(11) NOT NULL DEFAULT 0,
  150.                         `no_of_user_types` int(11) NOT NULL DEFAULT 0,
  151.                         `no_of_boards` int(11) NOT NULL DEFAULT 0,
  152.                         `no_of_columns` int(11) NOT NULL DEFAULT 0,
  153.                         `no_of_rows` int(11) NOT NULL DEFAULT 0,
  154.                         `no_of_card_layouts` int(11) NOT NULL DEFAULT 0,
  155.                         `no_of_card_layout_fields` int(11) NOT NULL DEFAULT 0,
  156.                         `has_excel_upload` tinyint(4) NOT NULL DEFAULT 0,
  157.                         `has_multiple_layouts` tinyint(4) NOT NULL DEFAULT 0,
  158.                         `has_multiple_section` tinyint(1) NOT NULL DEFAULT 0,
  159.                         `has_card_timer` tinyint(1) NOT NULL DEFAULT 0,
  160.                         `has_theme_customization` tinyint(4) NOT NULL DEFAULT 0,
  161.                         `c1` tinyint(1) NOT NULL DEFAULT 0,
  162.                         `has_transfer_card` tinyint(1) NOT NULL DEFAULT 0,
  163.                         `has_draft_cards` tinyint(1) NOT NULL DEFAULT 0,
  164.                         `has_skill_matrix` tinyint(1) NOT NULL DEFAULT 0,
  165.                         PRIMARY KEY (`id`),
  166.                         KEY `company_id` (`company_id`),
  167.                         KEY `account_version` (`account_version`),
  168.                         CONSTRAINT `company_settings_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  169.                         CONSTRAINT `company_settings_ibfk_2` FOREIGN KEY (`account_version`) REFERENCES `account_settings` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
  170.                       ) ENGINE=InnoDB AUTO_INCREMENT=184 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;");
  171.        
  172.        $this->addSql('CREATE TABLE IF NOT EXISTS `company_user` (
  173.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  174.                         `company_id` int(11) NOT NULL,
  175.                         `user_id` int(11) NOT NULL,
  176.                         `is_main_user` tinyint(1) NOT NULL,
  177.                         `is_default_company` tinyint(1) NOT NULL DEFAULT 1,
  178.                         `assigned_date` datetime DEFAULT NULL,
  179.                         PRIMARY KEY (`id`),
  180.                         KEY `company_id` (`company_id`),
  181.                         KEY `user_id` (`user_id`),
  182.                         CONSTRAINT `company_user_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  183.                         CONSTRAINT `company_user_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
  184.                       ) ENGINE=InnoDB AUTO_INCREMENT=585 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;');
  185.        
  186.        $this->addSql('CREATE TABLE IF NOT EXISTS `company_terminology` (
  187.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  188.                         `company_id` int(11) NOT NULL,
  189.                         `terminology_id` int(11) NOT NULL,
  190.                         `singular_text` varchar(255) NOT NULL,
  191.                         `plural_text` varchar(255) NOT NULL,
  192.                         PRIMARY KEY (`id`),
  193.                         UNIQUE KEY `company_id_2` (`company_id`,`terminology_id`),
  194.                         KEY `company_id` (`company_id`),
  195.                         KEY `terminology_id` (`terminology_id`) USING BTREE,
  196.                         CONSTRAINT `company_terminology_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  197.                         CONSTRAINT `company_terminology_ibfk_2` FOREIGN KEY (`terminology_id`) REFERENCES `terminology` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
  198.                       ) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  199.        
  200.        $this->addSql('CREATE TABLE IF NOT EXISTS `tc_user_type` (
  201.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  202.                         `company_id` int(11) NOT NULL,
  203.                         `type_title` varchar(255) NOT NULL,
  204.                         `roles` mediumtext DEFAULT NULL,
  205.                         `is_active` int(1) NOT NULL DEFAULT 1,
  206.                         `is_default` tinyint(1) NOT NULL DEFAULT 0,
  207.                         `is_deleted` int(1) NOT NULL DEFAULT 0,
  208.                         `created_at` datetime DEFAULT NULL,
  209.                         PRIMARY KEY (`id`),
  210.                         KEY `company_id` (`company_id`),
  211.                         CONSTRAINT `tc_user_type_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
  212.                       ) ENGINE=InnoDB AUTO_INCREMENT=358 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  213.        
  214.        $this->addSql('CREATE TABLE IF NOT EXISTS `login_sessions` (
  215.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  216.                         `user_id` int(11) DEFAULT NULL,
  217.                         `company_id` int(11) NOT NULL,
  218.                         `location` mediumtext DEFAULT NULL,
  219.                         `device` varchar(255) DEFAULT NULL,
  220.                         `ip_address` varchar(255) DEFAULT NULL,
  221.                         `action` varchar(255) NOT NULL,
  222.                         `action_time` datetime DEFAULT NULL,
  223.                         `last_active_time` datetime DEFAULT NULL,
  224.                         `last_access_route` varchar(255) DEFAULT NULL,
  225.                         PRIMARY KEY (`id`),
  226.                         KEY `user_id` (`user_id`),
  227.                         KEY `company_id` (`company_id`),
  228.                         CONSTRAINT `login_sessions_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  229.                         CONSTRAINT `login_sessions_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  230.                       ) ENGINE=InnoDB AUTO_INCREMENT=977 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;');
  231.        
  232.        $this->addSql("CREATE TABLE IF NOT EXISTS `reset_password_request` (
  233.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  234.                         `user_id` int(11) NOT NULL,
  235.                         `selector` varchar(20) NOT NULL,
  236.                         `hashed_token` varchar(100) NOT NULL,
  237.                         `requested_at` datetime NOT NULL COMMENT '(DC2Type:datetime_immutable)',
  238.                         `expires_at` datetime NOT NULL COMMENT '(DC2Type:datetime_immutable)',
  239.                         PRIMARY KEY (`id`) USING BTREE,
  240.                         KEY `IDX_7CE748AA76ED395` (`user_id`) USING BTREE
  241.                       ) ENGINE=InnoDB AUTO_INCREMENT=215 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;");
  242.        
  243.        $this->addSql("CREATE TABLE IF NOT EXISTS `tc_mail_log` (
  244.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  245.                         `company_id` int(11) NOT NULL,
  246.                         `email` varchar(255) NOT NULL,
  247.                         `user_id` int(11) DEFAULT NULL,
  248.                         `mail_type` enum('contact_us','audit','defect','admin_user_registration','missed_audit','invite_user') DEFAULT NULL,
  249.                         `is_sent` tinyint(1) NOT NULL DEFAULT 0,
  250.                         `sent_at` datetime DEFAULT NULL,
  251.                         `is_opened` tinyint(1) NOT NULL DEFAULT 0,
  252.                         `opened_at` datetime DEFAULT NULL,
  253.                         `is_bounced` tinyint(1) NOT NULL DEFAULT 0,
  254.                         `bounced_at` datetime DEFAULT NULL,
  255.                         `is_resent` tinyint(1) NOT NULL DEFAULT 0,
  256.                         `resent_at` datetime DEFAULT NULL,
  257.                         `resent_count` int(11) NOT NULL,
  258.                         `subject` text DEFAULT NULL,
  259.                         `preview_mail_content` longtext DEFAULT NULL,
  260.                         PRIMARY KEY (`id`),
  261.                         KEY `user_id` (`user_id`),
  262.                         KEY `company_id` (`company_id`),
  263.                         CONSTRAINT `tc_mail_log_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  264.                         CONSTRAINT `tc_mail_log_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  265.                       ) ENGINE=InnoDB AUTO_INCREMENT=120 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;");
  266.        
  267.        $this->addSql('CREATE TABLE IF NOT EXISTS `tc_mail_spool` (
  268.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  269.                         `company_id` int(11) NOT NULL,
  270.                         `mail_log_id` int(11) NOT NULL,
  271.                         `email` varchar(255) NOT NULL,
  272.                         `subject` varchar(255) NOT NULL,
  273.                         `mail_content` mediumtext NOT NULL,
  274.                         `is_ready` tinyint(1) NOT NULL DEFAULT 0,
  275.                         `is_cron` tinyint(1) NOT NULL DEFAULT 0,
  276.                         PRIMARY KEY (`id`),
  277.                         KEY `mail_log_id` (`mail_log_id`),
  278.                         KEY `company_id` (`company_id`),
  279.                         CONSTRAINT `tc_mail_spool_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  280.                         CONSTRAINT `tc_mail_spool_ibfk_2` FOREIGN KEY (`mail_log_id`) REFERENCES `tc_mail_log` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
  281.                       ) ENGINE=InnoDB AUTO_INCREMENT=480 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;');
  282.        
  283.        $this->addSql('CREATE TABLE IF NOT EXISTS `tc_migraion` (
  284.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  285.                         `migration_key` varchar(255) NOT NULL,
  286.                         `run_at` datetime NOT NULL,
  287.                         PRIMARY KEY (`id`)
  288.                       ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;');
  289.        
  290.        $this->addSql('CREATE TABLE IF NOT EXISTS `tc_upload_files` (
  291.                         `id` int(11) NOT NULL AUTO_INCREMENT,
  292.                         `company_id` int(11) NOT NULL,
  293.                         `filename` text NOT NULL,
  294.                         `real_filename` text NOT NULL,
  295.                         `file_type` varchar(255) NOT NULL,
  296.                         `file_mime_type` varchar(255) DEFAULT NULL,
  297.                         `file_size` varchar(255) NOT NULL,
  298.                         `file_size_byte` int(11) NOT NULL DEFAULT 0,
  299.                         `uploaded_by` int(11) NOT NULL,
  300.                         `uploaded_at` datetime NOT NULL,
  301.                         PRIMARY KEY (`id`),
  302.                         KEY `uploaded_by` (`uploaded_by`),
  303.                         KEY `company_id` (`company_id`),
  304.                         CONSTRAINT `tc_upload_files_ibfk_1` FOREIGN KEY (`uploaded_by`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  305.                         CONSTRAINT `tc_upload_files_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
  306.                       ) ENGINE=InnoDB AUTO_INCREMENT=1201 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;');
  307.        
  308.       // $this->addSql('');
  309.     }
  310.     
  311.     public function down(Schema $schema): void
  312.     {
  313.         $this->addSql('DROP TABLE IF EXISTS `user`;');
  314.         $this->addSql('DROP TABLE IF EXISTS `user_group`;');
  315.         $this->addSql('DROP TABLE IF EXISTS `user_profile`;');
  316.         $this->addSql('DROP TABLE IF EXISTS `tc_user_roles`;');
  317.         $this->addSql('DROP TABLE IF EXISTS `terminology`;');
  318.         $this->addSql('DROP TABLE IF EXISTS `company`;');
  319.         $this->addSql('DROP TABLE IF EXISTS `account_settings`;');
  320.         $this->addSql('DROP TABLE IF EXISTS `company_settings`;');
  321.         $this->addSql('DROP TABLE IF EXISTS `company_user`;');
  322.         $this->addSql('DROP TABLE IF EXISTS `company_terminology`;');
  323.         $this->addSql('DROP TABLE IF EXISTS `tc_user_type`;');
  324.         $this->addSql('DROP TABLE IF EXISTS `login_sessions`;');
  325.         $this->addSql('DROP TABLE IF EXISTS `reset_password_request`;');
  326.         $this->addSql('DROP TABLE IF EXISTS `tc_mail_log`;');
  327.         $this->addSql('DROP TABLE IF EXISTS `tc_mail_spool`;');
  328.         $this->addSql('DROP TABLE IF EXISTS `tc_migraion`;');
  329.         $this->addSql('DROP TABLE IF EXISTS `tc_upload_files`;');
  330.     }
  331. }