<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250513184934 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE company_cache (id INT AUTO_INCREMENT NOT NULL, content JSON NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE coupon_discount (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) DEFAULT NULL, active TINYINT(1) DEFAULT NULL, code VARCHAR(255) DEFAULT NULL, type VARCHAR(255) DEFAULT NULL, params JSON DEFAULT NULL, active_until DATETIME DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE coupon_single_use (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, active TINYINT(1) DEFAULT NULL, code VARCHAR(255) DEFAULT NULL, type VARCHAR(255) DEFAULT NULL, params JSON DEFAULT NULL, active_until DATETIME DEFAULT NULL, new_user TINYINT(1) DEFAULT NULL, email_new_user VARCHAR(255) DEFAULT NULL, used TINYINT(1) DEFAULT NULL, automatic TINYINT(1) DEFAULT NULL, language VARCHAR(255) DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_329DAD40A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE offer_boost (id INT AUTO_INCREMENT NOT NULL, offer_id INT DEFAULT NULL, boost_date DATETIME NOT NULL, INDEX IDX_D5495A8153C674EE (offer_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE offer_name_cache (id INT AUTO_INCREMENT NOT NULL, content JSON NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE orders (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, package_id INT DEFAULT NULL, coupon_discount_id INT DEFAULT NULL, coupon_single_use_id INT DEFAULT NULL, invoice_file_id INT DEFAULT NULL, invoice_pro_form_file_id INT DEFAULT NULL, is_send_invoice TINYINT(1) DEFAULT NULL, is_send_invoice_pro_form TINYINT(1) DEFAULT NULL, offer_status VARCHAR(255) DEFAULT NULL, status VARCHAR(255) DEFAULT NULL, payment_status VARCHAR(255) DEFAULT NULL, price_net DOUBLE PRECISION DEFAULT NULL, price_gross DOUBLE PRECISION DEFAULT NULL, is_range TINYINT(1) DEFAULT NULL, number_localization INT DEFAULT NULL, industries_ids JSON DEFAULT NULL, is_used_code_discount TINYINT(1) DEFAULT NULL, invoice JSON DEFAULT NULL, payment JSON DEFAULT NULL, configuration JSON DEFAULT NULL, uuid VARCHAR(255) DEFAULT NULL, need_to_accepted TINYINT(1) DEFAULT NULL, expired_at DATETIME DEFAULT NULL, currency VARCHAR(255) DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_E52FFDEEA76ED395 (user_id), INDEX IDX_E52FFDEEF44CABFF (package_id), INDEX IDX_E52FFDEE3B1AF2B8 (coupon_discount_id), INDEX IDX_E52FFDEE83CC659F (coupon_single_use_id), INDEX IDX_E52FFDEE61124FBF (invoice_file_id), INDEX IDX_E52FFDEEB8EF4C50 (invoice_pro_form_file_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE orders_additional_features (id INT AUTO_INCREMENT NOT NULL, order_id INT DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_676A37088D9F6D38 (order_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE orders_additional_features_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_134EA7242C2AC5D3 (translatable_id), UNIQUE INDEX orders_additional_features_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE package (id INT AUTO_INCREMENT NOT NULL, active TINYINT(1) DEFAULT NULL, visible_on_the_page TINYINT(1) DEFAULT NULL, promotion TINYINT(1) DEFAULT NULL, price_with_forks DOUBLE PRECISION DEFAULT NULL, price_without_forks DOUBLE PRECISION DEFAULT NULL, price_with_forks_en DOUBLE PRECISION DEFAULT NULL, price_without_forks_en DOUBLE PRECISION DEFAULT NULL, discount TINYINT(1) DEFAULT NULL, discount_percentage INT DEFAULT NULL, discount_price_with_forks DOUBLE PRECISION DEFAULT NULL, discount_price_without_forks DOUBLE PRECISION DEFAULT NULL, discount_price_with_forks_en DOUBLE PRECISION DEFAULT NULL, discount_price_without_forks_en DOUBLE PRECISION DEFAULT NULL, show_industry TINYINT(1) DEFAULT NULL, show_package_length TINYINT(1) DEFAULT NULL, package_length INT DEFAULT NULL, show_offer_length TINYINT(1) DEFAULT NULL, offer_length INT DEFAULT NULL, show_number_of_ads TINYINT(1) DEFAULT NULL, number_of_ads INT DEFAULT NULL, show_number_of_raises TINYINT(1) DEFAULT NULL, number_of_raises INT DEFAULT NULL, show_number_of_locations TINYINT(1) DEFAULT NULL, number_of_locations INT DEFAULT NULL, active_until DATETIME DEFAULT NULL, is_range TINYINT(1) DEFAULT NULL, number_of_active INT DEFAULT NULL, is_own TINYINT(1) DEFAULT NULL, free_package TINYINT(1) DEFAULT NULL, select_all_industry TINYINT(1) DEFAULT NULL, position INT DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE package_industry (package_id INT NOT NULL, item_category_id INT NOT NULL, INDEX IDX_297BF8CEF44CABFF (package_id), INDEX IDX_297BF8CEF22EC5D4 (item_category_id), PRIMARY KEY(package_id, item_category_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE package_additional_features (id INT AUTO_INCREMENT NOT NULL, package_id INT DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_B947CAFFF44CABFF (package_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE package_additional_features_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_76A981F2C2AC5D3 (translatable_id), UNIQUE INDEX package_additional_features_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE package_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, range_name VARCHAR(255) DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_79B25F092C2AC5D3 (translatable_id), UNIQUE INDEX package_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE technology_cache (id INT AUTO_INCREMENT NOT NULL, content JSON NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_link_login (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, token VARCHAR(255) NOT NULL, used TINYINT(1) NOT NULL, expired_at DATETIME NOT NULL, INDEX IDX_A2D45122A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_package (id INT AUTO_INCREMENT NOT NULL, package_id INT DEFAULT NULL, user_id INT DEFAULT NULL, order_id INT DEFAULT NULL, active TINYINT(1) DEFAULT NULL, active_until DATETIME DEFAULT NULL, additional_user TINYINT(1) DEFAULT NULL, created_at DATETIME DEFAULT NULL, INDEX IDX_8665799FF44CABFF (package_id), INDEX IDX_8665799FA76ED395 (user_id), INDEX IDX_8665799F8D9F6D38 (order_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_package_offer (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, package_id INT DEFAULT NULL, offer_id INT DEFAULT NULL, order_id INT DEFAULT NULL, INDEX IDX_525C2D89A76ED395 (user_id), INDEX IDX_525C2D89F44CABFF (package_id), INDEX IDX_525C2D8953C674EE (offer_id), INDEX IDX_525C2D898D9F6D38 (order_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE coupon_single_use ADD CONSTRAINT FK_329DAD40A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE offer_boost ADD CONSTRAINT FK_D5495A8153C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
$this->addSql('ALTER TABLE orders ADD CONSTRAINT FK_E52FFDEEA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE orders ADD CONSTRAINT FK_E52FFDEEF44CABFF FOREIGN KEY (package_id) REFERENCES package (id)');
$this->addSql('ALTER TABLE orders ADD CONSTRAINT FK_E52FFDEE3B1AF2B8 FOREIGN KEY (coupon_discount_id) REFERENCES coupon_discount (id)');
$this->addSql('ALTER TABLE orders ADD CONSTRAINT FK_E52FFDEE83CC659F FOREIGN KEY (coupon_single_use_id) REFERENCES coupon_single_use (id)');
$this->addSql('ALTER TABLE orders ADD CONSTRAINT FK_E52FFDEE61124FBF FOREIGN KEY (invoice_file_id) REFERENCES file (id)');
$this->addSql('ALTER TABLE orders ADD CONSTRAINT FK_E52FFDEEB8EF4C50 FOREIGN KEY (invoice_pro_form_file_id) REFERENCES file (id)');
$this->addSql('ALTER TABLE orders_additional_features ADD CONSTRAINT FK_676A37088D9F6D38 FOREIGN KEY (order_id) REFERENCES orders (id)');
$this->addSql('ALTER TABLE orders_additional_features_translation ADD CONSTRAINT FK_134EA7242C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES orders_additional_features (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE package_industry ADD CONSTRAINT FK_297BF8CEF44CABFF FOREIGN KEY (package_id) REFERENCES package (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE package_industry ADD CONSTRAINT FK_297BF8CEF22EC5D4 FOREIGN KEY (item_category_id) REFERENCES item_category (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE package_additional_features ADD CONSTRAINT FK_B947CAFFF44CABFF FOREIGN KEY (package_id) REFERENCES package (id)');
$this->addSql('ALTER TABLE package_additional_features_translation ADD CONSTRAINT FK_76A981F2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES package_additional_features (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE package_translation ADD CONSTRAINT FK_79B25F092C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES package (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE user_link_login ADD CONSTRAINT FK_A2D45122A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE user_package ADD CONSTRAINT FK_8665799FF44CABFF FOREIGN KEY (package_id) REFERENCES package (id)');
$this->addSql('ALTER TABLE user_package ADD CONSTRAINT FK_8665799FA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE user_package ADD CONSTRAINT FK_8665799F8D9F6D38 FOREIGN KEY (order_id) REFERENCES orders (id)');
$this->addSql('ALTER TABLE user_package_offer ADD CONSTRAINT FK_525C2D89A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE user_package_offer ADD CONSTRAINT FK_525C2D89F44CABFF FOREIGN KEY (package_id) REFERENCES package (id)');
$this->addSql('ALTER TABLE user_package_offer ADD CONSTRAINT FK_525C2D8953C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
$this->addSql('ALTER TABLE user_package_offer ADD CONSTRAINT FK_525C2D898D9F6D38 FOREIGN KEY (order_id) REFERENCES orders (id)');
$this->addSql('ALTER TABLE application ADD main_offer_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE application ADD CONSTRAINT FK_A45BDDC18AE4659B FOREIGN KEY (main_offer_id) REFERENCES offer (id)');
$this->addSql('CREATE INDEX IDX_A45BDDC18AE4659B ON application (main_offer_id)');
// $this->addSql('DROP INDEX Logo ON file');
$this->addSql('ALTER TABLE file ADD invoice_id VARCHAR(255) DEFAULT NULL, CHANGE extenstion extension VARCHAR(255) NOT NULL');
// $this->addSql('DROP INDEX invoiceData ON invoice_data');
// $this->addSql('DROP INDEX Item ON item');
// $this->addSql('DROP INDEX search_slug ON item');
// $this->addSql('DROP INDEX updated_at ON item');
// $this->addSql('DROP INDEX use_count ON item');
// $this->addSql('DROP INDEX item_category_id ON item_item_category');
// $this->addSql('DROP INDEX itemItemCategory ON item_item_category');
// $this->addSql('DROP INDEX active ON item_category');
// $this->addSql('DROP INDEX itemCategory ON item_category');
$this->addSql('ALTER TABLE item_category ADD show_label TINYINT(1) DEFAULT NULL');
// $this->addSql('DROP INDEX points ON item_points');
// $this->addSql('DROP INDEX category ON item_sort');
// $this->addSql('DROP INDEX industry ON item_sort');
// $this->addSql('DROP INDEX item_id ON item_sort');
// $this->addSql('DROP INDEX item_id_2 ON item_sort');
// $this->addSql('DROP INDEX itemSort ON item_sort');
// $this->addSql('DROP INDEX itemSort2 ON item_sort');
// $this->addSql('DROP INDEX points ON item_sort');
// $this->addSql('DROP INDEX points_sum ON item_sort');
// $this->addSql('DROP INDEX technology ON item_sort');
// $this->addSql('DROP INDEX jobListingsItemCategoryId ON job_listings');
// $this->addSql('DROP INDEX full_name ON location');
// $this->addSql('DROP INDEX name ON location');
// $this->addSql('DROP INDEX active ON offer');
// $this->addSql('DROP INDEX active_2 ON offer');
// $this->addSql('DROP INDEX category_id ON offer');
// $this->addSql('DROP INDEX done ON offer');
// $this->addSql('DROP INDEX keywordsSearch ON offer');
// $this->addSql('DROP INDEX published_at ON offer');
// $this->addSql('DROP INDEX temporary_id ON offer');
$this->addSql('ALTER TABLE offer ADD package_id INT DEFAULT NULL, ADD offer_id INT DEFAULT NULL, ADD order_id INT DEFAULT NULL, ADD boost_date DATETIME DEFAULT NULL, ADD active_until DATETIME DEFAULT NULL, ADD update_insteps DATETIME DEFAULT NULL, ADD number_of_insteps INT DEFAULT NULL, ADD visible TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE offer ADD CONSTRAINT FK_29D6873EF44CABFF FOREIGN KEY (package_id) REFERENCES package (id)');
$this->addSql('ALTER TABLE offer ADD CONSTRAINT FK_29D6873E53C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
$this->addSql('ALTER TABLE offer ADD CONSTRAINT FK_29D6873E8D9F6D38 FOREIGN KEY (order_id) REFERENCES orders (id)');
$this->addSql('CREATE INDEX IDX_29D6873EF44CABFF ON offer (package_id)');
$this->addSql('CREATE INDEX IDX_29D6873E53C674EE ON offer (offer_id)');
$this->addSql('CREATE INDEX IDX_29D6873E8D9F6D38 ON offer (order_id)');
$this->addSql('ALTER TABLE offer_item ADD show_label TINYINT(1) DEFAULT NULL, CHANGE item_category_id item_category_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE offer_salary ADD CONSTRAINT FK_4D46CCD053C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
// $this->addSql('DROP INDEX id ON settings');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE offer DROP FOREIGN KEY FK_29D6873E8D9F6D38');
$this->addSql('ALTER TABLE offer DROP FOREIGN KEY FK_29D6873EF44CABFF');
$this->addSql('ALTER TABLE coupon_single_use DROP FOREIGN KEY FK_329DAD40A76ED395');
$this->addSql('ALTER TABLE offer_boost DROP FOREIGN KEY FK_D5495A8153C674EE');
$this->addSql('ALTER TABLE orders DROP FOREIGN KEY FK_E52FFDEEA76ED395');
$this->addSql('ALTER TABLE orders DROP FOREIGN KEY FK_E52FFDEEF44CABFF');
$this->addSql('ALTER TABLE orders DROP FOREIGN KEY FK_E52FFDEE3B1AF2B8');
$this->addSql('ALTER TABLE orders DROP FOREIGN KEY FK_E52FFDEE83CC659F');
$this->addSql('ALTER TABLE orders DROP FOREIGN KEY FK_E52FFDEE61124FBF');
$this->addSql('ALTER TABLE orders DROP FOREIGN KEY FK_E52FFDEEB8EF4C50');
$this->addSql('ALTER TABLE orders_additional_features DROP FOREIGN KEY FK_676A37088D9F6D38');
$this->addSql('ALTER TABLE orders_additional_features_translation DROP FOREIGN KEY FK_134EA7242C2AC5D3');
$this->addSql('ALTER TABLE package_industry DROP FOREIGN KEY FK_297BF8CEF44CABFF');
$this->addSql('ALTER TABLE package_industry DROP FOREIGN KEY FK_297BF8CEF22EC5D4');
$this->addSql('ALTER TABLE package_additional_features DROP FOREIGN KEY FK_B947CAFFF44CABFF');
$this->addSql('ALTER TABLE package_additional_features_translation DROP FOREIGN KEY FK_76A981F2C2AC5D3');
$this->addSql('ALTER TABLE package_translation DROP FOREIGN KEY FK_79B25F092C2AC5D3');
$this->addSql('ALTER TABLE user_link_login DROP FOREIGN KEY FK_A2D45122A76ED395');
$this->addSql('ALTER TABLE user_package DROP FOREIGN KEY FK_8665799FF44CABFF');
$this->addSql('ALTER TABLE user_package DROP FOREIGN KEY FK_8665799FA76ED395');
$this->addSql('ALTER TABLE user_package DROP FOREIGN KEY FK_8665799F8D9F6D38');
$this->addSql('ALTER TABLE user_package_offer DROP FOREIGN KEY FK_525C2D89A76ED395');
$this->addSql('ALTER TABLE user_package_offer DROP FOREIGN KEY FK_525C2D89F44CABFF');
$this->addSql('ALTER TABLE user_package_offer DROP FOREIGN KEY FK_525C2D8953C674EE');
$this->addSql('ALTER TABLE user_package_offer DROP FOREIGN KEY FK_525C2D898D9F6D38');
$this->addSql('DROP TABLE company_cache');
$this->addSql('DROP TABLE coupon_discount');
$this->addSql('DROP TABLE coupon_single_use');
$this->addSql('DROP TABLE offer_boost');
$this->addSql('DROP TABLE offer_name_cache');
$this->addSql('DROP TABLE orders');
$this->addSql('DROP TABLE orders_additional_features');
$this->addSql('DROP TABLE orders_additional_features_translation');
$this->addSql('DROP TABLE package');
$this->addSql('DROP TABLE package_industry');
$this->addSql('DROP TABLE package_additional_features');
$this->addSql('DROP TABLE package_additional_features_translation');
$this->addSql('DROP TABLE package_translation');
$this->addSql('DROP TABLE technology_cache');
$this->addSql('DROP TABLE user_link_login');
$this->addSql('DROP TABLE user_package');
$this->addSql('DROP TABLE user_package_offer');
$this->addSql('ALTER TABLE application DROP FOREIGN KEY FK_A45BDDC18AE4659B');
$this->addSql('DROP INDEX IDX_A45BDDC18AE4659B ON application');
$this->addSql('ALTER TABLE application DROP main_offer_id');
$this->addSql('ALTER TABLE file DROP invoice_id, CHANGE extension extenstion VARCHAR(255) NOT NULL');
$this->addSql('CREATE INDEX Logo ON file (id)');
$this->addSql('CREATE INDEX invoiceData ON invoice_data (id)');
$this->addSql('CREATE INDEX Item ON item (id)');
$this->addSql('CREATE INDEX search_slug ON item (search_slug)');
$this->addSql('CREATE INDEX updated_at ON item (updated_at)');
$this->addSql('CREATE INDEX use_count ON item (use_count)');
$this->addSql('ALTER TABLE item_category DROP show_label');
$this->addSql('CREATE INDEX active ON item_category (active)');
$this->addSql('CREATE INDEX itemCategory ON item_category (id, item_category_id)');
$this->addSql('CREATE INDEX item_category_id ON item_item_category (item_category_id, item_id)');
$this->addSql('CREATE INDEX itemItemCategory ON item_item_category (item_id, item_category_id)');
$this->addSql('CREATE INDEX points ON item_points (points)');
$this->addSql('CREATE INDEX category ON item_sort (category)');
$this->addSql('CREATE INDEX industry ON item_sort (industry)');
$this->addSql('CREATE INDEX item_id ON item_sort (item_id)');
$this->addSql('CREATE INDEX item_id_2 ON item_sort (item_id, industry, points_sum)');
$this->addSql('CREATE UNIQUE INDEX itemSort ON item_sort (item_id, industry, category)');
$this->addSql('CREATE INDEX itemSort2 ON item_sort (use_count, points, technology)');
$this->addSql('CREATE INDEX points ON item_sort (points)');
$this->addSql('CREATE INDEX points_sum ON item_sort (points_sum)');
$this->addSql('CREATE INDEX technology ON item_sort (technology)');
$this->addSql('CREATE INDEX jobListingsItemCategoryId ON job_listings (item_category_id)');
$this->addSql('CREATE INDEX full_name ON location (full_name)');
$this->addSql('CREATE INDEX name ON location (name)');
$this->addSql('ALTER TABLE offer DROP FOREIGN KEY FK_29D6873E53C674EE');
$this->addSql('DROP INDEX IDX_29D6873EF44CABFF ON offer');
$this->addSql('DROP INDEX IDX_29D6873E53C674EE ON offer');
$this->addSql('DROP INDEX IDX_29D6873E8D9F6D38 ON offer');
$this->addSql('ALTER TABLE offer DROP package_id, DROP offer_id, DROP order_id, DROP boost_date, DROP active_until, DROP update_insteps, DROP number_of_insteps, DROP visible');
$this->addSql('CREATE INDEX active ON offer (active)');
$this->addSql('CREATE INDEX active_2 ON offer (active, done, published_at)');
$this->addSql('CREATE INDEX category_id ON offer (category_id)');
$this->addSql('CREATE INDEX done ON offer (done)');
$this->addSql('CREATE FULLTEXT INDEX keywordsSearch ON offer (keywords)');
$this->addSql('CREATE INDEX published_at ON offer (published_at)');
$this->addSql('CREATE INDEX temporary_id ON offer (temporary_id)');
$this->addSql('ALTER TABLE offer_item DROP show_label, CHANGE item_category_id item_category_id VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE offer_salary DROP FOREIGN KEY FK_4D46CCD053C674EE');
$this->addSql('CREATE INDEX id ON settings (id)');
}
}