db-migration #10
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hostsharing/hs.hsadmin.ng#10
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "db-migration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -42,0 +58,4 @@
./gradlew importOfficeData
}
alias import-office-data=importOfficeData
rename: gw-importOfficeData
cd34038364
tod069e87c01
looks good to me
aus dem gemeinsamen Code-Review
@ -59,2 +60,4 @@
private Range<LocalDate> validity;
@Column(name = "membership_fee_billable")
private boolean membershipFeeBillable;
alle neuen Felder prüfen, ob sie im Patcher und Test berücksichtigt sind
@ -10,3 +9,1 @@
- JOINT_AGENT # e.g. heir
- ACCOUNTING_CONTACT
- TECHNICAL_CONTACT
- REPRESENTATIVE
hier fehlen welche
@ -21,2 +21,4 @@
liquibase:
contexts: dev
hsadminng:
remove, unused
fixed
@ -17,0 +16,4 @@
vatBusiness boolean not null,
vatReverseCharge boolean not null,
refundBankAccountUuid uuid references hs_office_bankaccount(uuid),
defaultPrefix char(3) not null
unique
fixed
@ -186,2 +188,4 @@
partnerUuid = new.partnerUuid,
billable = new.billable,
billingContactUuid = new.billingContactUuid,
debitorNumberSuffix = new.debitorNumberSuffix,
add TODO: prüfen, ob wir das wollen
@ -191,1 +195,3 @@
vatBusiness = new.vatBusiness
vatBusiness = new.vatBusiness,
vatreversecharge = new.vatreversecharge,
defaultPrefix = new.defaultPrefix
add TODO: prüfen, ob wir das wollen
@ -8,14 +8,17 @@
/*
Creates a single membership test record.
*/
-- create or replace procedure createHsOfficeMembershipTestData( forPartnerTradeName varchar, forMainDebitorNumber integer )
remove
@ -18,1 +15,3 @@
newMemberNumber numeric;
currentTask varchar;
idName varchar;
-- forDebitorNumberPrefix integer;
remove
fixed
@ -26,3 +29,3 @@
join hs_office_person person on person.uuid = partner.personUuid
where person.tradeName = forPartnerTradeName into relatedPartner;
select d.* from hs_office_debitor d where d.debitorNumber = forMainDebitorNumber into relatedDebitor;
-- forDebitorNumberPrefix := forMainDebitorNumber/ 100;
remove
@ -33,6 +39,7 @@ begin
raise notice '- using debitor (%): %', relatedDebitor.uuid, relatedDebitor;
insert
into hs_office_membership (uuid, partneruuid, maindebitoruuid, membernumber, validity, reasonfortermination)
-- values (uuid_generate_v4(), relatedPartner.uuid, relatedDebitor.uuid, forDebitorNumberPrefix, daterange('20221001' , null, '[]'), 'NONE');
remove
@ -50,1 +56,4 @@
call createHsOfficeMembershipTestData('Third OHG', 13);
end;
-- begin
-- call createHsOfficeMembershipTestData('First GmbH', 1000100);
remove
@ -100,0 +127,4 @@
HsOfficeDebitorEntity::setVatReverseCharge)
.notNullable(),
new SimpleProperty<>(
"personType",
copy+paste Fehler: vatBusiness
@ -103,0 +134,4 @@
.notNullable(),
new SimpleProperty<>(
"personType",
HsOfficeDebitorPatchResource::setVatReverseCharge,
copy+paste Fehler: billable
@ -294,6 +297,7 @@ class HsOfficePartnerControllerAcceptanceTest {
.contentType(ContentType.JSON)
.body("""
{
"debitorNumerPrefix": "12345",
typo: debitorNumberPrefix
@ -37,6 +39,14 @@ class RbacRoleControllerAcceptanceTest {
@Autowired
RbacRoleRepository rbacRoleRepository;
@Value("${HSADMINNG_POSTGRES_RESTRICTED_USERNAME}")
remove
@ -42,6 +43,14 @@ class RbacUserControllerAcceptanceTest {
@Autowired
RbacUserRepository rbacUserRepository;
@Value("${HSADMINNG_POSTGRES_RESTRICTED_USERNAME}")
remove
@ -27,3 +30,3 @@
private static Stringify<HsOfficeCoopAssetsTransactionEntity> stringify = stringify(HsOfficeCoopAssetsTransactionEntity.class)
.withProp(e -> e.getMembership().getMemberNumber())
.withProp(e -> ofNullable(e.getMembership()).map(HsOfficeMembershipEntity::getMemberNumber).orElse(null))
Diese Änderung bitte auch bei CoopShares