<?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 Version20240715073621 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$sql = <<<SQL
INSERT INTO `mtb_csv_type` (`id`, `name`, `sort_no`, `discriminator_type`) VALUES ('6', '見積CSV', '5', 'csvtype')
SQL;
$this->addSql($sql);
$sql = <<<SQL
INSERT INTO `dtb_csv` ( `csv_type_id`, `creator_id`, `entity_name`, `field_name`, `reference_field_name`, `disp_name`, `sort_no`, `enabled`, `create_date`, `update_date`, `discriminator_type`) VALUES
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'id', NULL, '見積ID', 1, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'estimate_no', NULL, '見積番号', 2, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Customize\\\\Entity\\\\Estimate', 'Customer', 'id', '会員ID', 6, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Customize\\\\Entity\\\\Estimate', 'name01', NULL, 'お名前(姓)', 3, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Customize\\\\Entity\\\\Estimate', 'name02', NULL, 'お名前(名)', 4, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Customize\\\\Entity\\\\Estimate', 'kana01', NULL, 'お名前(セイ)', 5, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'kana02', NULL, 'お名前(メイ)', 7, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'company_name', NULL, '会社名', 8, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'postal_code', NULL, '郵便番号', 9, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'Pref', 'id', '都道府県(ID)', 10, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'Pref', 'name', '都道府県(名称)', 11, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'addr01', NULL, '住所1', 12, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'addr02', NULL, '住所2', 13, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'email', NULL, 'メールアドレス', 14, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'phone_number', NULL, 'TEL', 15, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'Sex', 'id', '性別(ID)', 16, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'Sex', 'name', '性別(名称)', 17, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'Job', 'id', '職業(ID)', 18, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'Job', 'name', '職業(名称)', 19, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'birth', NULL, '誕生日', 20, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'note', NULL, 'ショップ用メモ欄', 21, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'subtotal', NULL, '小計', 22, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'discount', NULL, '値引き', 23, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'delivery_fee_total', NULL, '送料', 24, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'tax', NULL, '税金', 25, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'total', NULL, '合計', 26, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'payment_total', NULL, '支払合計', 27, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'EstimateStatus', 'id', '対応状況(ID)', 28, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'EstimateStatus', 'name', '対応状況(名称)', 29, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'Payment', 'id', '支払方法(ID)', 30, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'payment_method', NULL, '支払方法(名称)', 31, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'estimate_date', NULL, '見積日', 32, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\Estimate', 'payment_date', NULL, '入金日', 33, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'id', NULL, '見積詳細ID', 34, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'Product', 'id', '商品ID', 35, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'ProductClass', 'id', '商品規格ID', 36, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'product_name', NULL, '商品名', 37, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'product_code', NULL, '商品コード', 38, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'class_name1', NULL, '規格名1', 39, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'class_name2', NULL, '規格名2', 40, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'class_category_name1', NULL, '規格分類名1', 41, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'class_category_name2', NULL, '規格分類名2', 42, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'price', NULL, '価格', 43, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'quantity', NULL, '個数', 44, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'tax_rate', NULL, '税率', 45, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'tax_rule', NULL, '税率ルール(ID)', 46, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'EstimateItemType', 'id', '明細区分(ID)', 47, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Customize\\\\Entity\\\\EstimateItem', 'EstimateItemType', 'name', '明細区分(名称)', 48, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'id', NULL, '出荷ID', 49, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'name01', NULL, '配送先_お名前(姓)', 50, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'name02', NULL, '配送先_お名前(名)', 51, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'kana01', NULL, '配送先_お名前(セイ)', 52, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'kana02', NULL, '配送先_お名前(メイ)', 53, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'company_name', NULL, '配送先_会社名', 54, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'postal_code', NULL, '配送先_郵便番号', 55, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'Pref', 'id', '配送先_都道府県(ID)', 56, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'Pref', 'name', '配送先_都道府県(名称)', 57, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'addr01', NULL, '配送先_住所1', 58, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'addr02', NULL, '配送先_住所2', 59, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'phone_number', NULL, '配送先_TEL', 60, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'Delivery', 'id', '配送業者(ID)', 61, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'shipping_delivery_name', NULL, '配送業者(名称)', 62, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'time_id', NULL, 'お届け時間ID', 63, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'shipping_delivery_time', NULL, 'お届け時間(名称)', 64, 1, NOW(), NOW(), 'csv'),
(6, NULL, 'Eccube\\\\Entity\\\\Shipping', 'shipping_delivery_date', NULL, 'お届け希望日', 65, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Eccube\\\\Entity\\\\Shipping', 'shipping_delivery_fee', NULL, '送料', 66, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Eccube\\\\Entity\\\\Shipping', 'shipping_date', NULL, '発送日', 67, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Eccube\\\\Entity\\\\Shipping', 'tracking_number', NULL, '出荷伝票番号', 68, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Eccube\\\\Entity\\\\Shipping', 'note', NULL, '配達用メモ', 69, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Eccube\\\\Entity\\\\Shipping', 'mail_send_date', NULL, '出荷メール送信日', 70, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Customize\\\\Entity\\\\EstimateItem', 'sticker_code', NULL, 'ステッカー商品コード', 71, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'design_data_type', NULL, 'データ種別', 72, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'width', NULL, 'サイズ(横)', 73, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'height', NULL, 'サイズ(縦)', 74, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'specify_size', NULL, 'サイズ指定方法', 75, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'transfer_sheet', NULL, '転写用シート', 76, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'remarks', NULL, '備考', 77, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'cut_shape', NULL, 'カット形状', 78, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'delivery_condition', NULL, '納品時の状態', 79, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'low_quality', NULL, '低画質判定', 80, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'mount_margin', NULL, '台紙余白についての指定', 81, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'sticker_text', NULL, 'カッティングステッカーにしたい文字', 82, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'line', NULL, '文字の行数', 83, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'large_text', NULL, '大きくしたい文字', 84, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'font', NULL, '書体', 85, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'italic', NULL, '斜体', 86, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'vertical_writing', NULL, '縦書き', 87, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'separate_line', NULL, '1行ずつ分けて作る', 88, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'text_align', NULL, '文字位置', 89, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Customize\\\\Entity\\\\EstimateItem', 'note', NULL, 'メモ', 90, 1, NOW(), NOW(), 'csv'),
(6, 1, 'Sticker', 'option_classification', NULL, 'オプション区分', 91, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'material_txt', NULL, '素材名', 92, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'material_color_txt', NULL, '素材カラー名', 93, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'width', NULL, '素材サイズ(横)', 94, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'height', NULL, '素材サイズ(縦)', 95, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'original_unit_price', NULL, '素材参照元単価', 96, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'add_point', NULL, '素材参照ポイント数の加算額', 97, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'add_pass', NULL, '素材参照パス数の加算額', 98, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'sub_total', NULL, '素材参照小計', 99, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'quantity', NULL, '素材数量', 100, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'quantity_discount_rate', NULL, '素材枚数割引率', 101, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'unit_price', NULL, '素材単価', 102, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerMaterial', 'price', NULL, '素材金額', 103, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'name', NULL, 'オプション名', 104, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'value', NULL, 'オプション値', 105, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'incre_decre_rate', NULL, 'オプションカット量増減率', 106, 1, NOW(), NOW(), 'csv'),
(6, 1, 'StickerOption', 'price', NULL, 'オプション金額', 107, 1, NOW(), NOW(), 'csv')
;
SQL;
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$this->addSql('DELETE FROM dtb_csv WHERE csv_type_id = 6');
$this->addSql('DELETE FROM mtb_csv_type WHERE id = 6');
}
}