2022-09-07 14:04:45 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-09-13 13:27:52 +02:00
|
|
|
mkdir -p src/test/java/net/hostsharing/hsadminng/hs/office/partner
|
2022-09-07 20:24:35 +02:00
|
|
|
|
2022-09-13 13:27:52 +02:00
|
|
|
sed -e 's/hs-admin-contact/hs-office-partner/g' \
|
|
|
|
-e 's/hs_admin_contact/hs_office_partner/g' \
|
|
|
|
-e 's/HsOfficeContact/HsOfficePartner/g' \
|
|
|
|
-e 's/HsOfficeContact/HsOfficePartner/g' \
|
2022-09-09 17:43:43 +02:00
|
|
|
-e 's/contact/partner/g' \
|
2022-09-13 13:27:52 +02:00
|
|
|
<src/test/java/net/hostsharing/hsadminng/hs/office/contact/HsOfficeContactRepositoryIntegrationTest.java \
|
|
|
|
>src/test/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerRepositoryIntegrationTest.java
|
2022-09-07 20:24:35 +02:00
|
|
|
|
2022-09-09 17:43:43 +02:00
|
|
|
exit
|
2022-09-07 20:24:35 +02:00
|
|
|
|
2022-09-13 13:27:52 +02:00
|
|
|
sed -e 's/hs-admin-contact/hs-office-partner/g' \
|
|
|
|
-e 's/hs_admin_contact/hs_office_partner/g' \
|
|
|
|
<src/main/resources/db/changelog/200-hs-admin-contact.sql >src/main/resources/db/changelog/220-hs-office-partner.sql
|
2022-09-07 14:04:45 +02:00
|
|
|
|
2022-09-13 13:27:52 +02:00
|
|
|
sed -e 's/hs-admin-contact/hs-office-partner/g' \
|
|
|
|
-e 's/hs_admin_contact/hs_office_partner/g' \
|
|
|
|
-e 's/HsAdminCustomer/HsOfficePartner/g' \
|
|
|
|
-e 's/HsOfficeContact/HsOfficePartner/g' \
|
2022-09-09 10:40:05 +02:00
|
|
|
-e 's/contact/partner/g' \
|
2022-09-13 13:27:52 +02:00
|
|
|
<src/main/resources/db/changelog/203-hs-admin-contact-rbac.sql >src/main/resources/db/changelog/223-hs-office-partner-rbac.sql
|
2022-09-07 14:04:45 +02:00
|
|
|
|
2022-09-13 13:27:52 +02:00
|
|
|
sed -e 's/hs-admin-contact/hs-office-partner/g' \
|
|
|
|
-e 's/hs_admin_contact/hs_office_partner/g' \
|
|
|
|
-e 's/HsOfficeContact/HsOfficePartner/g' \
|
|
|
|
-e 's/HsOfficeContact/HsOfficePartner/g' \
|
2022-09-09 10:40:05 +02:00
|
|
|
-e 's/contact/partner/g' \
|
2022-09-13 13:27:52 +02:00
|
|
|
<src/main/resources/db/changelog/208-hs-admin-contact-test-data.sql >src/main/resources/db/changelog/228-hs-office-partner-test-data.sql
|
2022-09-07 14:04:45 +02:00
|
|
|
|
|
|
|
|
2022-09-13 13:27:52 +02:00
|
|
|
# mkdir -p src/main/java/net/hostsharing/hsadminng/hs/office/partner
|
2022-09-07 14:04:45 +02:00
|
|
|
#
|
2022-09-13 13:27:52 +02:00
|
|
|
# sed -e 's/HsOfficeContactEntity/HsOfficePartnerEntity/g' \
|
2022-09-09 10:40:05 +02:00
|
|
|
# sed -e 's/admin.contact/admin.partner/g' \
|
2022-09-13 13:27:52 +02:00
|
|
|
# <src/main/java/net/hostsharing/hsadminng/hs/office/contact/HsOfficeContactEntity.java >src/main/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerEntity.java
|
2022-09-07 14:04:45 +02:00
|
|
|
|
|
|
|
cat >>src/main/resources/db/changelog/db.changelog-master.yaml <<EOF
|
|
|
|
- include:
|
2022-09-13 13:27:52 +02:00
|
|
|
file: db/changelog/220-hs-office-partner.sql
|
2022-09-07 14:04:45 +02:00
|
|
|
- include:
|
2022-09-13 13:27:52 +02:00
|
|
|
file: db/changelog/223-hs-office-partner-rbac.sql
|
2022-09-07 14:04:45 +02:00
|
|
|
- include:
|
2022-09-13 13:27:52 +02:00
|
|
|
file: db/changelog/228-hs-office-partner-test-data.sql
|
2022-09-07 14:04:45 +02:00
|
|
|
EOF
|