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

eccube_install.sh SQLエラーで停止 #1091

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions eccube_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,29 +232,29 @@ case "${DBTYPE}" in
"heroku" )
# PostgreSQL
echo "create table..."
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -f ${SQL_DIR}/create_table_pgsql.sql ${DBNAME}
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 -f ${SQL_DIR}/create_table_pgsql.sql ${DBNAME}
echo "insert data..."
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -f ${SQL_DIR}/insert_data.sql ${DBNAME}
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 -f ${SQL_DIR}/insert_data.sql ${DBNAME}
echo "create sequence table..."
create_sequence_tables
echo "execute optional SQL..."
get_optional_sql | ${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} ${DBNAME}
get_optional_sql | ${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 ${DBNAME}
DBTYPE="pgsql"
;;
"appveyor" | "pgsql" )
# PostgreSQL
echo "dropdb..."
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -c "DROP DATABASE IF EXISTS ${DBNAME};" template1
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 -c "DROP DATABASE IF EXISTS ${DBNAME};" template1
echo "createdb..."
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -c "CREATE DATABASE ${DBNAME};" template1
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 -c "CREATE DATABASE ${DBNAME};" template1
echo "create table..."
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -f ${SQL_DIR}/create_table_pgsql.sql ${DBNAME}
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 -f ${SQL_DIR}/create_table_pgsql.sql ${DBNAME}
echo "insert data..."
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -f ${SQL_DIR}/insert_data.sql ${DBNAME}
${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 -f ${SQL_DIR}/insert_data.sql ${DBNAME}
echo "create sequence table..."
create_sequence_tables
echo "execute optional SQL..."
get_optional_sql | ${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} ${DBNAME}
get_optional_sql | ${PSQL} -h ${DBSERVER} -U ${DBUSER} -p ${DBPORT} -v ON_ERROR_STOP=1 ${DBNAME}
DBTYPE="pgsql"
;;
"mysql" )
Expand Down
193 changes: 95 additions & 98 deletions html/install/sql/drop_table.sql
Original file line number Diff line number Diff line change
@@ -1,98 +1,95 @@
DROP TABLE dtb_kiyaku;
DROP TABLE mtb_zip;
DROP TABLE dtb_update;
DROP TABLE dtb_baseinfo;
DROP TABLE dtb_deliv;
DROP TABLE dtb_delivtime;
DROP TABLE dtb_delivfee;
DROP TABLE dtb_payment;
DROP TABLE dtb_mailtemplate;
DROP TABLE dtb_send_history;
DROP TABLE dtb_send_customer;
DROP TABLE dtb_product_categories;
DROP TABLE dtb_products_class;
DROP TABLE dtb_products;
DROP TABLE dtb_product_status;
DROP TABLE dtb_class;
DROP TABLE dtb_classcategory;
DROP TABLE dtb_category;
DROP TABLE dtb_recommend_products;
DROP TABLE dtb_review;
DROP TABLE dtb_category_count;
DROP TABLE dtb_category_total_count;
DROP TABLE dtb_customer_reading;
DROP TABLE mtb_customer_status;
DROP TABLE dtb_news;
DROP TABLE dtb_best_products;
DROP TABLE dtb_mail_history;
DROP TABLE dtb_customer;
DROP TABLE dtb_order;
DROP TABLE dtb_order_temp;
DROP TABLE dtb_shipping;
DROP TABLE dtb_shipment_item;
DROP TABLE dtb_other_deliv;
DROP TABLE dtb_order_detail;
DROP TABLE mtb_pref;
DROP TABLE dtb_member;
DROP TABLE dtb_pagelayout;
DROP TABLE dtb_bloc;
DROP TABLE dtb_blocposition;
DROP TABLE dtb_csv;
DROP TABLE dtb_csv_sql;
DROP TABLE dtb_templates;
DROP TABLE dtb_ownersstore_settings;
DROP TABLE dtb_module_update_logs;
DROP TABLE mtb_work;
DROP TABLE mtb_wday;
DROP TABLE mtb_taxrule;
DROP TABLE mtb_target;
DROP TABLE mtb_status_image;
DROP TABLE mtb_status;
DROP TABLE mtb_sex;
DROP TABLE mtb_review_deny_url;
DROP TABLE mtb_reminder;
DROP TABLE mtb_recommend;
DROP TABLE mtb_product_status_color;
DROP TABLE mtb_product_list_max;
DROP TABLE mtb_permission;
DROP TABLE mtb_page_max;
DROP TABLE mtb_order_status_color;
DROP TABLE mtb_order_status;
DROP TABLE mtb_customer_order_status;
DROP TABLE mtb_mail_type;
DROP TABLE mtb_mail_tpl_path;
DROP TABLE mtb_mail_template;
DROP TABLE mtb_mail_magazine_type;
DROP TABLE mtb_magazine_type;
DROP TABLE mtb_mobile_domain;
DROP TABLE mtb_job;
DROP TABLE mtb_disp;
DROP TABLE mtb_disable_logout;
DROP TABLE mtb_delivery_date;
DROP TABLE mtb_db;
DROP TABLE mtb_convenience;
DROP TABLE mtb_conveni_message;
DROP TABLE mtb_constants;
DROP TABLE mtb_authority;
DROP TABLE mtb_allowed_tag;
DROP TABLE mtb_ownersstore_err;
DROP TABLE dtb_maker;
DROP TABLE dtb_maker_count;
DROP TABLE dtb_holiday;
DROP TABLE dtb_customer_favorite_products;
DROP TABLE mtb_product_type;
DROP TABLE mtb_device_type;
DROP TABLE dtb_module;
DROP TABLE dtb_session;
DROP TABLE dtb_mobile_ext_session_id;
DROP TABLE dtb_bkup;
DROP TABLE dtb_plugin;
DROP TABLE dtb_index_list;
DROP TABLE dtb_payment_options;
DROP TABLE dtb_mailmaga_template;
DROP TABLE mtb_auth_excludes;
DROP TABLE dtb_plugin_hookpoint;
DROP TABLE dtb_api_config;
DROP TABLE dtb_api_account;
DROP TABLE dtb_tax_rule;
DROP TABLE mtb_country;
DROP TABLE IF EXISTS dtb_kiyaku;
DROP TABLE IF EXISTS mtb_zip;
DROP TABLE IF EXISTS dtb_update;
DROP TABLE IF EXISTS dtb_baseinfo;
DROP TABLE IF EXISTS dtb_deliv;
DROP TABLE IF EXISTS dtb_delivtime;
DROP TABLE IF EXISTS dtb_delivfee;
DROP TABLE IF EXISTS dtb_payment;
DROP TABLE IF EXISTS dtb_mailtemplate;
DROP TABLE IF EXISTS dtb_send_history;
DROP TABLE IF EXISTS dtb_send_customer;
DROP TABLE IF EXISTS dtb_product_categories;
DROP TABLE IF EXISTS dtb_products_class;
DROP TABLE IF EXISTS dtb_products;
DROP TABLE IF EXISTS dtb_product_status;
DROP TABLE IF EXISTS dtb_class;
DROP TABLE IF EXISTS dtb_classcategory;
DROP TABLE IF EXISTS dtb_category;
DROP TABLE IF EXISTS dtb_recommend_products;
DROP TABLE IF EXISTS dtb_review;
DROP TABLE IF EXISTS dtb_category_count;
DROP TABLE IF EXISTS dtb_category_total_count;
DROP TABLE IF EXISTS mtb_customer_status;
DROP TABLE IF EXISTS dtb_news;
DROP TABLE IF EXISTS dtb_best_products;
DROP TABLE IF EXISTS dtb_mail_history;
DROP TABLE IF EXISTS dtb_customer;
DROP TABLE IF EXISTS dtb_order;
DROP TABLE IF EXISTS dtb_order_temp;
DROP TABLE IF EXISTS dtb_shipping;
DROP TABLE IF EXISTS dtb_shipment_item;
DROP TABLE IF EXISTS dtb_other_deliv;
DROP TABLE IF EXISTS dtb_order_detail;
DROP TABLE IF EXISTS mtb_pref;
DROP TABLE IF EXISTS dtb_member;
DROP TABLE IF EXISTS dtb_pagelayout;
DROP TABLE IF EXISTS dtb_bloc;
DROP TABLE IF EXISTS dtb_blocposition;
DROP TABLE IF EXISTS dtb_csv;
DROP TABLE IF EXISTS dtb_csv_sql;
DROP TABLE IF EXISTS dtb_templates;
DROP TABLE IF EXISTS dtb_ownersstore_settings;
DROP TABLE IF EXISTS dtb_module_update_logs;
DROP TABLE IF EXISTS mtb_work;
DROP TABLE IF EXISTS mtb_wday;
DROP TABLE IF EXISTS mtb_taxrule;
DROP TABLE IF EXISTS mtb_target;
DROP TABLE IF EXISTS mtb_status_image;
DROP TABLE IF EXISTS mtb_status;
DROP TABLE IF EXISTS mtb_sex;
DROP TABLE IF EXISTS mtb_review_deny_url;
DROP TABLE IF EXISTS mtb_reminder;
DROP TABLE IF EXISTS mtb_recommend;
DROP TABLE IF EXISTS mtb_product_status_color;
DROP TABLE IF EXISTS mtb_product_list_max;
DROP TABLE IF EXISTS mtb_permission;
DROP TABLE IF EXISTS mtb_page_max;
DROP TABLE IF EXISTS mtb_order_status_color;
DROP TABLE IF EXISTS mtb_order_status;
DROP TABLE IF EXISTS mtb_customer_order_status;
DROP TABLE IF EXISTS mtb_mail_type;
DROP TABLE IF EXISTS mtb_mail_tpl_path;
DROP TABLE IF EXISTS mtb_mail_template;
DROP TABLE IF EXISTS mtb_mail_magazine_type;
DROP TABLE IF EXISTS mtb_magazine_type;
DROP TABLE IF EXISTS mtb_mobile_domain;
DROP TABLE IF EXISTS mtb_job;
DROP TABLE IF EXISTS mtb_disp;
DROP TABLE IF EXISTS mtb_disable_logout;
DROP TABLE IF EXISTS mtb_delivery_date;
DROP TABLE IF EXISTS mtb_db;
DROP TABLE IF EXISTS mtb_constants;
DROP TABLE IF EXISTS mtb_authority;
DROP TABLE IF EXISTS mtb_allowed_tag;
DROP TABLE IF EXISTS mtb_ownersstore_err;
DROP TABLE IF EXISTS dtb_maker;
DROP TABLE IF EXISTS dtb_maker_count;
DROP TABLE IF EXISTS dtb_holiday;
DROP TABLE IF EXISTS dtb_customer_favorite_products;
DROP TABLE IF EXISTS mtb_product_type;
DROP TABLE IF EXISTS mtb_device_type;
DROP TABLE IF EXISTS dtb_module;
DROP TABLE IF EXISTS dtb_session;
DROP TABLE IF EXISTS dtb_mobile_ext_session_id;
DROP TABLE IF EXISTS dtb_bkup;
DROP TABLE IF EXISTS dtb_plugin;
DROP TABLE IF EXISTS dtb_index_list;
DROP TABLE IF EXISTS dtb_payment_options;
DROP TABLE IF EXISTS dtb_mailmaga_template;
DROP TABLE IF EXISTS mtb_auth_excludes;
DROP TABLE IF EXISTS dtb_plugin_hookpoint;
DROP TABLE IF EXISTS dtb_api_config;
DROP TABLE IF EXISTS dtb_api_account;
DROP TABLE IF EXISTS dtb_tax_rule;
DROP TABLE IF EXISTS mtb_country;
Loading