hosting-asset-data-migration (#79)
Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/79 Reviewed-by: Marc Sandlus <marc.sandlus@hostsharing.net>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
member_asset_id; bp_id; date; action; amount; comment
|
||||
30000; 17; 2000-12-06; PAYMENT; 1280.00; for subscription A
|
||||
31000; 20; 2000-12-06; PAYMENT; 128.00; for subscription B
|
||||
32000; 17; 2005-01-10; PAYMENT; 2560.00; for subscription C
|
||||
33001; 17; 2005-01-10; HANDOVER; -512.00; for transfer to 10
|
||||
33002; 20; 2005-01-10; ADOPTION; 512.00; for transfer from 7
|
||||
34001; 20; 2016-12-31; CLEARING; -8.00; for cancellation D
|
||||
34002; 20; 2016-12-31; PAYBACK; -100.00; for cancellation D
|
||||
34003; 20; 2016-12-31; LOSS; -20.00; for cancellation D
|
||||
35001; 90; 2024-01-15; PAYMENT; 128.00; for subscription E
|
||||
35002; 90; 2024-01-20; ADJUSTMENT;-128.00; chargeback for subscription E
|
|
@@ -1,6 +0,0 @@
|
||||
bp_id;member_id;member_code;member_since;member_until;member_role;author_contract;nondisc_contract;free;exempt_vat;indicator_vat;uid_vat
|
||||
17;10017;hsh00-mih;2000-12-06;;Aufsichtsrat;2006-10-15;2001-10-15;false;false;NET;DE-VAT-007
|
||||
20;10020;hsh00-xyz;2000-12-06;2015-12-31;;;;false;false;GROSS;
|
||||
22;11022;hsh00-xxx;2021-04-01;;;;;true;true;GROSS;
|
||||
90;19090;hsh00-yyy;;;;;;true;true;GROSS;
|
||||
99;19999;hsh00-zzz;;;;;;false;false;GROSS;
|
|
@@ -1,20 +0,0 @@
|
||||
contact_id; bp_id; salut; first_name; last_name; title; firma; co; street; zipcode;city; country; phone_private; phone_office; phone_mobile; fax; email; roles
|
||||
|
||||
# eine natürliche Person, implizites contractual
|
||||
1101; 17; Herr; Michael; Mellies; ; ; ; Kleine Freiheit 50; 26524; Hage; DE; ; +49 4931 123456; +49 1522 123456;; mih@example.org; partner,contractual,billing,operation
|
||||
|
||||
# eine juristische Person mit drei separaten Ansprechpartnern, vip-contact und ex-partner
|
||||
1200; 20;; ; ; ; JM e.K.;; Wiesenweg 15; 12335; Berlin; DE; +49 30 6666666; +49 30 5555555; ; +49 30 6666666; jm-ex-partner@example.org; ex-partner
|
||||
1201; 20; Frau; Jenny; Meyer-Billing; Dr.; JM GmbH;; Waldweg 5; 11001; Berlin; DE; +49 30 7777777; +49 30 1111111; ; +49 30 2222222; jm-billing@example.org; billing
|
||||
1202; 20; Herr; Andrew; Meyer-Operation; ; JM GmbH;; Waldweg 5; 11001; Berlin; DE; +49 30 6666666; +49 30 3333333; ; +49 30 4444444; am-operation@example.org; operation,vip-contact,subscriber:operations-announce
|
||||
1203; 20; Herr; Philip; Meyer-Contract; ; JM GmbH;; Waldweg 5; 11001; Berlin; DE; +49 30 6666666; +49 30 5555555; ; +49 30 6666666; pm-partner@example.org; partner,contractual,subscriber:members-announce,subscriber:customers-announce
|
||||
1204; 20; Frau; Tammy; Meyer-VIP; ; JM GmbH;; Waldweg 5; 11001; Berlin; DE; +49 30 999999; +49 30 999999; ; +49 30 6666666; tm-vip@example.org; vip-contact
|
||||
|
||||
# eine juristische Person mit nur einem Ansprechpartner und explizitem contractual
|
||||
1301; 22; ; Petra; Schmidt; ; Test PS;; ; ; ; ; ; ; ; ; ps@example.com; partner,billing,contractual,operation
|
||||
|
||||
# eine natürliche Person, die nur Subscriber ist
|
||||
1401; 17; Frau; Frauke; Fanninga; ; ; ; Am Walde 1; 29456; Hitzacker; DE; ; ; ;; ff@example.org; subscriber:operations-announce
|
||||
|
||||
# eine natürliche Person als Partner
|
||||
1501; 90; Frau; Cecilia; Camus; ; ; ; Rue d'Avignion 60; 45000; Orléans; FR; ; ; ;; cc@example.org; partner,contractual,billing,operation
|
|
@@ -20,58 +20,58 @@ dump() {
|
||||
dump "select bp_id, member_id, member_code, member_since, member_until, member_role, author_contract, nondisc_contract, free, exempt_vat, indicator_vat, uid_vat
|
||||
from business_partner
|
||||
order by bp_id" \
|
||||
"business-partners.csv"
|
||||
"office/business_partners.csv"
|
||||
|
||||
dump "select contact_id, bp_id, salut, first_name, last_name, title, firma, co, street, zipcode, city, country, phone_private, phone_office, phone_mobile, fax, email, array_to_string(array_agg(role), ',') as roles
|
||||
from contact
|
||||
left join contactrole_ref using(contact_id)
|
||||
group by contact_id
|
||||
order by contact_id" \
|
||||
"contacts.csv"
|
||||
"office/contacts.csv"
|
||||
|
||||
dump "select sepa_mandat_id, bp_id, bank_customer, bank_name, bank_iban, bank_bic, mandat_ref, mandat_signed, mandat_since, mandat_until, mandat_used
|
||||
from sepa_mandat
|
||||
order by sepa_mandat_id" \
|
||||
"sepa-mandates.csv"
|
||||
"office/sepa_mandates.csv"
|
||||
|
||||
dump "select member_asset_id, bp_id, date, action, amount, comment
|
||||
from member_asset
|
||||
WHERE bp_id NOT IN (511912)
|
||||
order by member_asset_id" \
|
||||
"asset-transactions.csv"
|
||||
"office/asset_transactions.csv"
|
||||
|
||||
dump "select member_share_id, bp_id, date, action, quantity, comment
|
||||
from member_share
|
||||
WHERE bp_id NOT IN (511912)
|
||||
order by member_share_id" \
|
||||
"share-transactions.csv"
|
||||
"office/share_transactions.csv"
|
||||
|
||||
dump "select inet_addr_id, inet_addr, description
|
||||
from inet_addr
|
||||
order by inet_addr_id" \
|
||||
"inet_addr.csv"
|
||||
"hosting/inet_addr.csv"
|
||||
|
||||
dump "select hive_id, hive_name, inet_addr_id, description
|
||||
from hive
|
||||
order by hive_id" \
|
||||
"hive.csv"
|
||||
"hosting/hive.csv"
|
||||
|
||||
dump "select packet_id, basepacket_code, packet_name, bp_id, hive_id, created, cancelled, cur_inet_addr_id, old_inet_addr_id, free
|
||||
from packet
|
||||
left join basepacket using (basepacket_id)
|
||||
order by packet_id" \
|
||||
"packet.csv"
|
||||
"hosting/packet.csv"
|
||||
|
||||
dump "select packet_component_id, packet_id, quantity, basecomponent_code, created, cancelled
|
||||
from packet_component
|
||||
left join basecomponent using (basecomponent_id)
|
||||
order by packet_component_id" \
|
||||
"packet_component.csv"
|
||||
"hosting/packet_component.csv"
|
||||
|
||||
dump "select unixuser_id, name, comment, shell, homedir, locked, packet_id, userid, quota_softlimit, quota_hardlimit, storage_softlimit, storage_hardlimit
|
||||
from unixuser
|
||||
order by unixuser_id" \
|
||||
"unixuser.csv"
|
||||
"hosting/unixuser.csv"
|
||||
|
||||
# weil das fehlt, muss group by komplett gesetzt werden: alter table domain add constraint PK_domain primary key (domain_id);
|
||||
dump "select domain_id, domain_name, domain_since, domain_dns_master, domain_owner, valid_subdomain_names, passenger_python, passenger_nodejs, passenger_ruby, fcgi_php_bin, array_to_string(array_agg(domain_option_name), ',') as domainoptions
|
||||
@@ -80,7 +80,7 @@ dump "select domain_id, domain_name, domain_since, domain_dns_master, domain_own
|
||||
left join domain_option using (domain_option_id)
|
||||
group by domain.domain_id, domain.domain_name, domain_since, domain_dns_master, domain_owner, valid_subdomain_names, passenger_python, passenger_nodejs, passenger_ruby, fcgi_php_bin
|
||||
order by domain.domain_id" \
|
||||
"domain.csv"
|
||||
"hosting/domain.csv"
|
||||
|
||||
dump "select emailaddr_id, domain_id, localpart, subdomain, target
|
||||
from emailaddr
|
||||
@@ -90,14 +90,14 @@ dump "select emailaddr_id, domain_id, localpart, subdomain, target
|
||||
dump "select emailalias_id, pac_id, name, target
|
||||
from emailalias
|
||||
order by emailalias_id" \
|
||||
"emailalias.csv"
|
||||
"hosting/emailalias.csv"
|
||||
|
||||
dump "select dbuser_id, engine, packet_id, name
|
||||
from database_user
|
||||
order by dbuser_id" \
|
||||
"database_user.csv"
|
||||
"hosting/database_user.csv"
|
||||
|
||||
dump "select database_id, engine, packet_id, name, owner, encoding
|
||||
from database
|
||||
order by database_id" \
|
||||
"database.csv"
|
||||
"hosting/database.csv"
|
||||
|
26
src/test/resources/migration/hosting/hive.csv
Normal file
26
src/test/resources/migration/hosting/hive.csv
Normal file
@@ -0,0 +1,26 @@
|
||||
hive_id;hive_name;inet_addr_id;description
|
||||
1;h00;358;
|
||||
2;h01;359;
|
||||
4;h02;360;
|
||||
7;h03;361;
|
||||
13;h04;430;
|
||||
14;h50;433;
|
||||
20;h05;354;
|
||||
21;h06;355;
|
||||
22;h07;357;
|
||||
28;h60;363;
|
||||
31;h63;431;
|
||||
37;h67;381;
|
||||
38;h97;537;
|
||||
39;h96;536;
|
||||
45;h74;485;
|
||||
50;h82;514;
|
||||
128;h19;565;
|
||||
148;h50;522;
|
||||
163;h92;457;
|
||||
173;h25;1759;
|
||||
192;h93;1778;
|
||||
193;h95;1779;
|
||||
205;vm1107;1861;
|
||||
208;vm1110;1864;
|
||||
210;vm1112;1833;
|
|
10
src/test/resources/migration/hosting/inet_addr.csv
Normal file
10
src/test/resources/migration/hosting/inet_addr.csv
Normal file
@@ -0,0 +1,10 @@
|
||||
inet_addr_id;inet_addr;description
|
||||
363;83.223.95.34;
|
||||
381;83.223.95.52;
|
||||
402;83.223.95.73;
|
||||
433;83.223.95.104;
|
||||
457;83.223.95.128;
|
||||
473;83.223.95.144;
|
||||
574;83.223.95.245;
|
||||
1168;83.223.79.72;
|
||||
1790;83.223.94.179;
|
|
10
src/test/resources/migration/hosting/packet.csv
Normal file
10
src/test/resources/migration/hosting/packet.csv
Normal file
@@ -0,0 +1,10 @@
|
||||
packet_id;basepacket_code;packet_name;bp_id;hive_id;created;cancelled;cur_inet_addr_id;old_inet_addr_id;free
|
||||
630;PAC/WEB;hsh00;213;14;2001-06-01;;473;;1
|
||||
968;SRV/MGD;vm1061;132;28;2013-04-01;;363;;0
|
||||
978;SRV/MGD;vm1050;213;14;2013-04-01;;433;;1
|
||||
1061;SRV/MGD;vm1068;100;37;2013-08-19;;381;;f
|
||||
1094;PAC/WEB;lug00;100;37;2013-09-10;;1168;;1
|
||||
1112;PAC/WEB;mim00;100;37;2013-09-17;;402;;1
|
||||
1447;SRV/MGD;vm1093;213;163;2014-11-28;;457;;t
|
||||
19959;PAC/WEB;dph00;542;163;2021-06-02;;574;;0
|
||||
23611;SRV/CLD;vm2097;541;;2022-08-10;;1790;;0
|
|
143
src/test/resources/migration/hosting/packet_component.csv
Normal file
143
src/test/resources/migration/hosting/packet_component.csv
Normal file
@@ -0,0 +1,143 @@
|
||||
packet_component_id;packet_id;quantity;basecomponent_code;created;cancelled
|
||||
46105;1094;10;TRAFFIC;2017-03-27;
|
||||
46109;1094;5;MULTI;2017-03-27;
|
||||
46111;1094;0;DAEMON;2017-03-27;
|
||||
46113;1094;1024;QUOTA;2017-03-27;
|
||||
46117;1112;0;DAEMON;2017-03-27;
|
||||
46121;1112;20;TRAFFIC;2017-03-27;
|
||||
46122;1112;5;MULTI;2017-03-27;
|
||||
46123;1112;3072;QUOTA;2017-03-27;
|
||||
143133;1094;1;SLABASIC;2017-09-01;
|
||||
143483;1112;1;SLABASIC;2017-09-01;
|
||||
757383;1112;0;SLAEXT24H;;
|
||||
770533;1094;0;SLAEXT24H;;
|
||||
784283;1112;0;OFFICE;;
|
||||
797433;1094;0;OFFICE;;
|
||||
1228033;1112;0;STORAGE;;
|
||||
1241433;1094;0;STORAGE;;
|
||||
1266451;978;0;SLAPLAT4H;2021-10-05;
|
||||
1266452;978;250;TRAFFIC;2021-10-05;
|
||||
1266453;978;0;SLAPLAT8H;2021-10-05;
|
||||
1266454;978;0;SLAMAIL4H;2021-10-05;
|
||||
1266455;978;0;SLAMARIA8H;2021-10-05;
|
||||
1266456;978;0;SLAPGSQL4H;2021-10-05;
|
||||
1266457;978;0;SLAWEB4H;2021-10-05;
|
||||
1266458;978;0;SLAMARIA4H;2021-10-05;
|
||||
1266459;978;0;SLAPGSQL8H;2021-10-05;
|
||||
1266460;978;0;SLAOFFIC8H;2021-10-05;
|
||||
1266461;978;0;SLAWEB8H;2021-10-05;
|
||||
1266462;978;256000;STORAGE;2021-10-05;
|
||||
1266463;978;153600;QUOTA;2021-10-05;
|
||||
1266464;978;0;SLAOFFIC4H;2021-10-05;
|
||||
1266465;978;32768;RAM;2021-10-05;
|
||||
1266466;978;4;CPU;2021-10-05;
|
||||
1266467;978;1;SLABASIC;2021-10-05;
|
||||
1266468;978;0;SLAMAIL8H;2021-10-05;
|
||||
1275583;978;0;SLAPLAT2H;2022-04-20;
|
||||
1280533;978;0;SLAWEB2H;2022-04-20;
|
||||
1285483;978;0;SLAMARIA2H;2022-04-20;
|
||||
1290433;978;0;SLAPGSQL2H;2022-04-20;
|
||||
1295383;978;0;SLAMAIL2H;2022-04-20;
|
||||
1300333;978;0;SLAOFFIC2H;2022-04-20;
|
||||
1305933;1447;0;SLAWEB2H;2022-05-02;
|
||||
1305934;1447;0;SLAPLAT4H;2022-05-02;
|
||||
1305935;1447;0;SLAWEB8H;2022-05-02;
|
||||
1305936;1447;0;SLAOFFIC4H;2022-05-02;
|
||||
1305937;1447;0;SLAMARIA4H;2022-05-02;
|
||||
1305938;1447;0;SLAOFFIC8H;2022-05-02;
|
||||
1305939;1447;1;SLABASIC;2022-05-02;
|
||||
1305940;1447;0;SLAMAIL8H;2022-05-02;
|
||||
1305941;1447;0;SLAPGSQL4H;2022-05-02;
|
||||
1305942;1447;6;CPU;2022-05-02;
|
||||
1305943;1447;250;TRAFFIC;2022-05-02;
|
||||
1305944;1447;0;SLAOFFIC2H;2022-05-02;
|
||||
1305945;1447;0;SLAMAIL4H;2022-05-02;
|
||||
1305946;1447;0;SLAPGSQL2H;2022-05-02;
|
||||
1305947;1447;0;SLAMARIA2H;2022-05-02;
|
||||
1305948;1447;0;SLAMARIA8H;2022-05-02;
|
||||
1305949;1447;0;SLAWEB4H;2022-05-02;
|
||||
1305950;1447;16384;RAM;2022-05-02;
|
||||
1305951;1447;0;SLAPGSQL8H;2022-05-02;
|
||||
1305952;1447;512000;STORAGE;2022-05-02;
|
||||
1305953;1447;0;SLAMAIL2H;2022-05-02;
|
||||
1305954;1447;0;SLAPLAT2H;2022-05-02;
|
||||
1305955;1447;0;SLAPLAT8H;2022-05-02;
|
||||
1305956;1447;307200;QUOTA;2022-05-02;
|
||||
1312013;23611;1;SLABASIC;2022-08-10;
|
||||
1312014;23611;0;BANDWIDTH;2022-08-10;
|
||||
1312015;23611;12288;RAM;2022-08-10;
|
||||
1312016;23611;25600;QUOTA;2022-08-10;
|
||||
1312017;23611;0;SLAINFR8H;2022-08-10;
|
||||
1312018;23611;0;STORAGE;2022-08-10;
|
||||
1312019;23611;0;SLAINFR2H;2022-08-10;
|
||||
1312020;23611;8;CPU;2022-08-10;
|
||||
1312021;23611;250;TRAFFIC;2022-08-10;
|
||||
1312022;23611;0;SLAINFR4H;2022-08-10;
|
||||
1313883;978;0;BANDWIDTH;;
|
||||
1316583;1447;0;BANDWIDTH;;
|
||||
1338074;968;0;SLAMARIA2H;2023-09-05;
|
||||
1338075;968;384000;QUOTA;2023-09-05;
|
||||
1338076;968;1;SLAMAIL8H;2023-09-05;
|
||||
1338077;968;0;BANDWIDTH;2023-09-05;
|
||||
1338078;968;0;SLAWEB2H;2023-09-05;
|
||||
1338079;968;0;SLAOFFIC4H;2023-09-05;
|
||||
1338080;968;256000;STORAGE;2023-09-05;
|
||||
1338081;968;0;SLAPLAT4H;2023-09-05;
|
||||
1338082;968;0;SLAPGSQL2H;2023-09-05;
|
||||
1338083;968;0;SLAPLAT2H;2023-09-05;
|
||||
1338084;968;250;TRAFFIC;2023-09-05;
|
||||
1338085;968;1;SLAMARIA8H;2023-09-05;
|
||||
1338086;968;0;SLAPGSQL4H;2023-09-05;
|
||||
1338087;968;0;SLAMAIL2H;2023-09-05;
|
||||
1338088;968;1;SLAPLAT8H;2023-09-05;
|
||||
1338089;968;0;SLAWEB4H;2023-09-05;
|
||||
1338090;968;6;CPU;2023-09-05;
|
||||
1338091;968;1;SLAPGSQL8H;2023-09-05;
|
||||
1338092;968;0;SLAMARIA4H;2023-09-05;
|
||||
1338093;968;0;SLAMAIL4H;2023-09-05;
|
||||
1338094;968;14336;RAM;2023-09-05;
|
||||
1338095;968;0;SLAOFFIC2H;2023-09-05;
|
||||
1338096;968;0;SLAOFFIC8H;2023-09-05;
|
||||
1338097;968;1;SLABASIC;2023-09-05;
|
||||
1338098;968;1;SLAWEB8H;2023-09-05;
|
||||
1339228;19959;20;TRAFFIC;2023-10-27;
|
||||
1339229;19959;1;SLABASIC;2023-10-27;
|
||||
1339230;19959;0;DAEMON;2023-10-27;
|
||||
1339231;19959;25600;QUOTA;2023-10-27;
|
||||
1339232;19959;0;STORAGE;2023-10-27;
|
||||
1339233;19959;0;SLAEXT24H;2023-10-27;
|
||||
1339234;19959;0;OFFICE;2023-10-27;
|
||||
1339235;19959;1;MULTI;2023-10-27;
|
||||
1341088;1061;0;SLAOFFIC2H;2023-12-14;
|
||||
1341089;1061;0;SLAOFFIC8H;2023-12-14;
|
||||
1341090;1061;256000;STORAGE;2023-12-14;
|
||||
1341091;1061;0;SLAMAIL4H;2023-12-14;
|
||||
1341092;1061;0;SLAMAIL2H;2023-12-14;
|
||||
1341093;1061;0;SLAPLAT2H;2023-12-14;
|
||||
1341094;1061;4096;RAM;2023-12-14;
|
||||
1341095;1061;0;SLAPLAT4H;2023-12-14;
|
||||
1341096;1061;1;SLAPGSQL8H;2023-12-14;
|
||||
1341097;1061;2;CPU;2023-12-14;
|
||||
1341098;1061;0;QUOTA;2023-12-14;
|
||||
1341099;1061;0;SLAMAIL8H;2023-12-14;
|
||||
1341100;1061;1;SLABASIC;2023-12-14;
|
||||
1341101;1061;1;SLAMARIA8H;2023-12-14;
|
||||
1341102;1061;0;SLAPGSQL4H;2023-12-14;
|
||||
1341103;1061;0;SLAPGSQL2H;2023-12-14;
|
||||
1341104;1061;0;SLAMARIA4H;2023-12-14;
|
||||
1341105;1061;0;SLAOFFIC4H;2023-12-14;
|
||||
1341106;1061;1;SLAPLAT8H;2023-12-14;
|
||||
1341107;1061;0;BANDWIDTH;2023-12-14;
|
||||
1341108;1061;1;SLAWEB8H;2023-12-14;
|
||||
1341109;1061;0;SLAWEB2H;2023-12-14;
|
||||
1341110;1061;0;SLAMARIA2H;2023-12-14;
|
||||
1341111;1061;250;TRAFFIC;2023-12-14;
|
||||
1341112;1061;0;SLAWEB4H;2023-12-14;
|
||||
1346628;630;0;SLAEXT24H;2024-03-19;
|
||||
1346629;630;0;OFFICE;2024-03-19;
|
||||
1346630;630;16384;QUOTA;2024-03-19;
|
||||
1346631;630;0;DAEMON;2024-03-19;
|
||||
1346632;630;10240;STORAGE;2024-03-19;
|
||||
1346633;630;1;SLABASIC;2024-03-19;
|
||||
1346634;630;50;TRAFFIC;2024-03-19;
|
||||
1346635;630;25;MULTI;2024-03-19;
|
|
19
src/test/resources/migration/office/asset_transactions.csv
Normal file
19
src/test/resources/migration/office/asset_transactions.csv
Normal file
@@ -0,0 +1,19 @@
|
||||
member_asset_id; bp_id; date; action; amount; comment
|
||||
358; 100; 2000-12-06; PAYMENT; 5120; for subscription A
|
||||
442; 132; 2003-07-07; PAYMENT; 64;
|
||||
577; 100; 2011-12-12; PAYMENT; 1024;
|
||||
632; 132; 2013-10-21; PAYMENT; 64;
|
||||
885; 100; 2020-12-15; PAYMENT; 6144; Einzahlung
|
||||
924; 541; 2021-05-21; PAYMENT; 256; Beitritt - Lastschrift
|
||||
925; 542; 2021-05-31; PAYMENT; 64; Beitritt - Lastschrift
|
||||
1093; 100; 2023-10-05; PAYMENT; 3072; Kapitalerhoehung - Ueberweisung
|
||||
1094; 100; 2023-10-06; PAYMENT; 3072; Kapitalerhoehung - Ueberweisung
|
||||
31000; 120; 2000-12-06; PAYMENT; 128.00; for subscription B
|
||||
32000; 100; 2005-01-10; PAYMENT; 2560.00; for subscription C
|
||||
33001; 100; 2005-01-10; HANDOVER; -512.00; for transfer to 10
|
||||
33002; 120; 2005-01-10; ADOPTION; 512.00; for transfer from 7
|
||||
34001; 120; 2016-12-31; CLEARING; -8.00; for cancellation D
|
||||
34002; 120; 2016-12-31; PAYBACK; -100.00; for cancellation D
|
||||
34003; 120; 2016-12-31; LOSS; -20.00; for cancellation D
|
||||
35001; 190; 2024-01-15; PAYMENT; 128.00; for subscription E
|
||||
35002; 190; 2024-01-20; ADJUSTMENT;-128.00; chargeback for subscription E
|
|
10
src/test/resources/migration/office/business_partners.csv
Normal file
10
src/test/resources/migration/office/business_partners.csv
Normal file
@@ -0,0 +1,10 @@
|
||||
bp_id;member_id;member_code;member_since;member_until;member_role;author_contract;nondisc_contract;free;exempt_vat;indicator_vat;uid_vat
|
||||
100;10003;hsh00-mim;2000-12-06;;Aufsichtsrat;;2001-04-24;0;0;GROSS;DE217249198
|
||||
132;10152;hsh00-rar;2003-07-12;;;;;0;0;GROSS;DE 236 109 136
|
||||
213;10000;hsh00-hsh;;;Hostsharing eG;;;1;0;GROSS;
|
||||
541;11018;hsh00-wws;2021-05-17;;;;;0;0;GROSS;
|
||||
542;11019;hsh00-dph;2021-05-25;;;;;0;0;GROSS;
|
||||
120;10020;hsh00-xyz;2000-12-06;2015-12-31;;;;false;false;GROSS;
|
||||
122;11022;hsh00-xxx;2021-04-01;;;;;true;true;GROSS;
|
||||
190;19090;hsh00-yyy;;;;;;true;true;GROSS;
|
||||
199;19999;hsh00-zzz;;;;;;false;false;GROSS;
|
|
35
src/test/resources/migration/office/contacts.csv
Normal file
35
src/test/resources/migration/office/contacts.csv
Normal file
@@ -0,0 +1,35 @@
|
||||
contact_id; bp_id; salut; first_name; last_name; title; firma; co; street; zipcode; city; country; phone_private; phone_office; phone_mobile; fax; email; roles
|
||||
|
||||
# Hostsharing, the mandate itself
|
||||
212; 213; Firma; Hostmaster; Hostsharing; ; Hostsharing e.G.; ; ; ; ; Germany; ; ; ; ; hostmaster@hostsharing.net; billing,operation,contractual,partner
|
||||
|
||||
# some natural persons
|
||||
100; 100; Herr; Michael; Mellis; ; Michael Mellis; ; Dr. Bolte Str. 50; 26524; Hage; Germany; ; +49 4931/1234567; +49/1522123455; +49 40 912345-9; michael@Mellis.example.org; billing,operation,contractual,partner,subscriber:members-announce,subscriber:operations-announce,subscriber:operations-discussion,subscriber:members-discussion,subscriber:generalversammlung
|
||||
132; 132; Herr; Ragnar; Richter; ; Ragnar IT-Beratung; ; Vioktoriastraße 114; 70197; Stuttgart; Germany; +49 711 987654-1; +49 711 987654-2; ; +49 711 87654-3; hostsharing@ragnar-richter.de; billing,operation,partner,subscriber:operations-announce,subscriber:operations-discussion
|
||||
|
||||
# eine juristische Person mit drei separaten Ansprechpartnern, vip-contact und ex-partner
|
||||
1200; 120; ; ; ; ; JM e.K.; ; Wiesenweg 15; 12335; Berlin; DE; +49 30 6666666; +49 30 5555555; ; +49 30 6666666; jm-ex-partner@example.org; ex-partner
|
||||
1201; 120; Frau; Jenny; Meyer-Billing; Dr.; JM GmbH; ; Waldweg 5; 11001; Berlin; DE; +49 30 7777777; +49 30 1111111; ; +49 30 2222222; jm-billing@example.org; billing
|
||||
1202; 120; Herr; Andrew; Meyer-Operation; ; JM GmbH; ; Waldweg 5; 11001; Berlin; DE; +49 30 6666666; +49 30 3333333; ; +49 30 4444444; am-operation@example.org; operation,vip-contact,subscriber:operations-announce
|
||||
1203; 120; Herr; Philip; Meyer-Contract; ; JM GmbH; ; Waldweg 5; 11001; Berlin; DE; +49 30 6666666; +49 30 5555555; ; +49 30 6666666; pm-partner@example.org; partner,contractual,subscriber:members-announce,subscriber:customers-announce
|
||||
1204; 120; Frau; Tammy; Meyer-VIP; ; JM GmbH; ; Waldweg 5; 11001; Berlin; DE; +49 30 999999; +49 30 999999; ; +49 30 6666666; tm-vip@example.org; vip-contact
|
||||
|
||||
# eine juristische Person mit nur einem Ansprechpartner und explizitem contractual
|
||||
1301; 122; ; Petra; Schmidt; ; Test PS; ; ; ; ; ; ; ; ; ; ps@example.com; partner,billing,contractual,operation
|
||||
|
||||
# eine natürliche Person, die nur Subscriber ist
|
||||
1401; 120; Frau; Frauke; Fanninga; ; ; ; Am Walde 1; 29456; Hitzacker; DE; ; ; ; ; ff@example.org; subscriber:operations-announce
|
||||
|
||||
# eine natürliche Person als Partner
|
||||
1501; 190; Frau; Cecilia; Camus; ; ; ; Rue d'Avignion 60; 45000; Orléans; FR; ; ; ; ; cc@example.org; partner,contractual,billing,operation
|
||||
|
||||
# some more contacts of realistic business partners
|
||||
|
||||
90436; 541; Frau; Christiane; Milberg; ; Wasserwerk Südholstein; ; Am Wasserwerk 1-3; 25491; Hetlingen; Germany; ; ; +49 4103 12345-1; ; rechnung@ww-sholst.example.org; billing,partner,subscriber:members-discussion,contractual,subscriber:members-announce,subscriber:generalversammlung
|
||||
90437; 542; Herr; Richard; Wiese; ; Das Perfekte Haus; ; Kennedyplatz 11; 45279; Essen; Germany; ; ; +49-172-12345; ; admin@das-perfekte-haus.example.org; operation,partner,subscriber:members-discussion,contractual,subscriber:operations-announce,subscriber:operations-discussion,subscriber:members-announce,subscriber:generalversammlung
|
||||
90438; 541; Herr; Karim; Metzger; ; Wasswerwerk Südholstein; ; Am Wasserwerk 1-3; 25491; Hetlingen; Germany; ; +49 4103 12345-2; ; ; karim.metzger@ww-sholst.example.org; operation,subscriber:operations-announce,subscriber:operations-discussion
|
||||
90590; 542; Herr; Inhaber R.; Wiese; ; Das Perfekte Haus; Client-ID 515217; Essen, Kastanienallee 81; 30127; Hannover; Germany; ; ; ; ; 515217@kkemail.example.org; billing
|
||||
90629; 132; ; Ragnar; Richter; ; ; ; ; ; ; ; ; ; ; ; mail@ragnar-richter..example.org; contractual,subscriber:members-announce,subscriber:members-discussion,subscriber:generalversammlung
|
||||
90677; 132; ; Eike; Henning; ; ; ; ; ; ; ; ; ; ; ; hostsharing@eike-henning..example.org; operation,subscriber:operations-announce,subscriber:operations-discussion
|
||||
90698; 132; ; Jan; Henning; ; ; ; ; ; ; ; ; 01577 12345678; ; ; mail@jan-henning.example.org; operation
|
||||
|
|
8
src/test/resources/migration/office/sepa_mandates.csv
Normal file
8
src/test/resources/migration/office/sepa_mandates.csv
Normal file
@@ -0,0 +1,8 @@
|
||||
sepa_mandat_id;bp_id;bank_customer;bank_name;bank_iban;bank_bic;mandat_ref;mandat_signed;mandat_since;mandat_until;mandat_used
|
||||
30;132;Ragnar Richter;GLS Gemeinschaftsbank eG;DE02300209000106531065;GENODEM1GLS;HS-10152-20140801;2013-12-01;2013-12-01;2016-02-15;2014-01-20
|
||||
132;100;Michael Mellis;Hamburger Volksbank;DE37500105177419788228;GENODEF1HH2;HS-10003-20140801;2013-12-01;2013-12-01;;2022-12-31
|
||||
386;541;Wasserwerk Suedholstein;Sparkasse Westholstein;DE49500105174516484892;NOLADE21WHO;HS-11018-20210512;2021-05-12;2021-05-17;;2022-12-31
|
||||
387;542;Richard Wiese Das Perfekte Haus;Commerzbank Wuppertal;DE89370400440532013000;COBADEFFXXX;HS-11019-20210519;2021-05-19;2021-05-25;;2022-12-31
|
||||
234234;100;Michael Mellis;ING Bank AG;DE37500105177419788228;INGDDEFFXXX;MH12345;2004-06-12;2004-06-15;;2022-10-20
|
||||
235600;120;JM e.K.;Targobank AG;DE02300209000106531065;CMCIDEDD;JM33344;2004-01-15;2004-01-20;2005-06-27 ;2016-01-18
|
||||
235662;120;JM GmbH;ING Bank AG;DE49500105174516484892;INGDDEFFXXX;JM33344;2005-06-28;2005-07-01;;2016-01-18
|
|
12
src/test/resources/migration/office/share_transactions.csv
Normal file
12
src/test/resources/migration/office/share_transactions.csv
Normal file
@@ -0,0 +1,12 @@
|
||||
member_share_id;bp_id;date;action;quantity;comment
|
||||
3;100;2000-12-06;SUBSCRIPTION;80;initial share subscription
|
||||
90;132;2003-07-12;SUBSCRIPTION;1;
|
||||
241;100;2011-12-05;SUBSCRIPTION;16;
|
||||
279;132;2013-10-21;SUBSCRIPTION;1;
|
||||
523;100;2020-12-08;SUBSCRIPTION;96;Kapitalerhoehung
|
||||
562;541;2021-05-17;SUBSCRIPTION;4;Beitritt
|
||||
563;542;2021-05-25;SUBSCRIPTION;1;Beitritt
|
||||
721;100;2023-10-10;SUBSCRIPTION;96;Kapitalerhoehung
|
||||
33451;120;2000-12-06;SUBSCRIPTION;2;initial share subscription
|
||||
33701;100;2005-01-10;SUBSCRIPTION;40;increase
|
||||
33810;120;2016-12-31;UNSUBSCRIPTION;22;membership ended
|
|
@@ -1,4 +0,0 @@
|
||||
sepa_mandat_id; bp_id; bank_customer; bank_name; bank_iban; bank_bic; mandat_ref; mandat_signed; mandat_since; mandat_until; mandat_used
|
||||
234234; 17; Michael Mellies; ING Bank AG; DE37500105177419788228; INGDDEFFXXX; MH12345; 2004-06-12; 2004-06-15; ; 2022-10-20
|
||||
235600; 20; JM e.K.; Targobank AG; DE02300209000106531065; CMCIDEDD; JM33344; 2004-01-15; 2004-01-20;2005-06-27 ;2016-01-18
|
||||
235662; 20; JM GmbH; ING Bank AG; DE49500105174516484892; INGDDEFFXXX; JM33344; 2005-06-28; 2005-07-01; ; 2016-01-18
|
|
@@ -1,5 +0,0 @@
|
||||
member_share_id;bp_id; date; action; quantity; comment
|
||||
33443; 17; 2000-12-06; SUBSCRIPTION; 20; initial share subscription
|
||||
33451; 20; 2000-12-06; SUBSCRIPTION; 2; initial share subscription
|
||||
33701; 17; 2005-01-10; SUBSCRIPTION; 40; increase
|
||||
33810; 20; 2016-12-31; UNSUBSCRIPTION; 22; membership ended
|
|
Reference in New Issue
Block a user