Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBALでのSyntaxErrorを修正 #6243

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions app/DoctrineMigrations/Version20220603074035.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,55 +18,55 @@ public function up(Schema $schema) : void
'SELECT COUNT(*) FROM mtb_csv_type WHERE id = 6'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO mtb_csv_type ('id', 'name', 'sort_no', 'discriminator_type') VALUES (6, 'Class NameCSV', 6, 'csvtype');");
$this->addSql("INSERT INTO mtb_csv_type (id, name, sort_no, discriminator_type) VALUES (6, 'Class NameCSV', 6, 'csvtype');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM mtb_csv_type WHERE id = 7'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO mtb_csv_type ('id', 'name', 'sort_no', 'discriminator_type') VALUES (7, 'Class Category CSV', 7, 'csvtype');");
$this->addSql("INSERT INTO mtb_csv_type (id, name, sort_no, discriminator_type) VALUES (7, 'Class Category CSV', 7, 'csvtype');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM dtb_csv WHERE id = 206'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO dtb_csv ('id','csv_type_id','creator_id','entity_name','field_name','reference_field_name','disp_name','sort_no','enabled','create_date','update_date','discriminator_type') VALUES ('206','6',,'Eccube\\Entity\\ClassName','id',,'規格ID','1','1','2021-05-18 01:26:41','2021-05-18 01:26:41','csv');");
$this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES (206, 6, null, 'Eccube\\Entity\\ClassName', 'id', null, '規格ID', 1, true, '2021-05-18 01:26:41', '2021-05-18 01:26:41', 'csv');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM dtb_csv WHERE id = 207'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO dtb_csv ('id','csv_type_id','creator_id','entity_name','field_name','reference_field_name','disp_name','sort_no','enabled','create_date','update_date','discriminator_type') VALUES ('207','6',,'Eccube\\Entity\\ClassName','name',,'規格名','2','1','2021-05-18 01:26:41','2021-05-18 01:26:41','csv');");
$this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES (207, 6, null, 'Eccube\\Entity\\ClassName', 'name', null, '規格名', 2, true, '2021-05-18 01:26:41', '2021-05-18 01:26:41', 'csv');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM dtb_csv WHERE id = 208'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO dtb_csv ('id','csv_type_id','creator_id','entity_name','field_name','reference_field_name','disp_name','sort_no','enabled','create_date','update_date','discriminator_type') VALUES ('208','6',,'Eccube\\Entity\\ClassName','backend_name',,'管理名','3','1','2021-05-18 01:26:41','2021-05-18 01:26:41','csv');");
$this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES (208, 6, null, 'Eccube\\Entity\\ClassName', 'backend_name', null, '管理名', 3, true, '2021-05-18 01:26:41', '2021-05-18 01:26:41', 'csv');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM dtb_csv WHERE id = 209'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO dtb_csv ('id','csv_type_id','creator_id','entity_name','field_name','reference_field_name','disp_name','sort_no','enabled','create_date','update_date','discriminator_type') VALUES ('209','7',,'Eccube\\Entity\\ClassCategory','id',,'規格分類ID','1','1','2021-05-18 01:26:41','2021-05-18 01:26:41','csv');");
$this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES (209, 7, null, 'Eccube\\Entity\\ClassCategory', 'id', null, '規格分類ID', 1, true, '2021-05-18 01:26:41', '2021-05-18 01:26:41', 'csv');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM dtb_csv WHERE id = 210'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO dtb_csv ('id','csv_type_id','creator_id','entity_name','field_name','reference_field_name','disp_name','sort_no','enabled','create_date','update_date','discriminator_type') VALUES ('210','7',,'Eccube\\Entity\\ClassCategory','ClassName','id','規格ID','2','1','2021-05-18 01:26:41','2021-05-18 01:26:41','csv');");
$this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES (210, 7, null, 'Eccube\\Entity\\ClassCategory', 'ClassName', 'id', '規格ID', 2, true, '2021-05-18 01:26:41', '2021-05-18 01:26:41', 'csv');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM dtb_csv WHERE id = 211'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO dtb_csv ('id','csv_type_id','creator_id','entity_name','field_name','reference_field_name','disp_name','sort_no','enabled','create_date','update_date','discriminator_type') VALUES ('211','7',,'Eccube\\Entity\\ClassCategory','name',,'規格分類名','3','1','2021-05-18 01:26:41','2021-05-18 01:26:41','csv');");
$this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES (211, 7, null, 'Eccube\\Entity\\ClassCategory', 'name', null, '規格分類名', 3, true, '2021-05-18 01:26:41', '2021-05-18 01:26:41', 'csv');");
}
$statusExists = $this->connection->fetchOne(
'SELECT COUNT(*) FROM dtb_csv WHERE id = 212'
);
if ($statusExists == 0) {
$this->addSql("INSERT INTO dtb_csv ('id','csv_type_id','creator_id','entity_name','field_name','reference_field_name','disp_name','sort_no','enabled','create_date','update_date','discriminator_type') VALUES ('212','7',,'Eccube\\Entity\\ClassCategory','backend_name',,'分類管理名','4','1','2021-05-18 01:26:41','2021-05-18 01:26:41','csv');");
$this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES (212, 7, null, 'Eccube\\Entity\\ClassCategory', 'backend_name', null, '分類管理名', 4, true, '2021-05-18 01:26:41', '2021-05-18 01:26:41', 'csv');");
}
}

Expand Down
Loading