-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
grub
authored and
grub
committed
Feb 29, 2024
1 parent
d5ee96e
commit 54619ef
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- Add down migration script here | ||
TRUNCATE TABLE cost_shares; | ||
TRUNCATE TABLE costs; | ||
TRUNCATE TABLE users; | ||
TRUNCATE TABLE wgs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
-- Add up migration script here | ||
INSERT INTO wgs | ||
(id, url, name) VALUES | ||
(1, 'lamako', 'LAMAKO WGMBH'); | ||
|
||
INSERT INTO users | ||
(id, name, username, password_hash, revoke_before, wg) VALUES | ||
(1, 'Konni', 'kartonrad', '$pbkdf2-sha256$i=10000,l=32$R+UA953d9tO8VFqh8vF7TA$wmDkCKb9ScX6MfPJxKNf4dBM9MMHwEeVCsgzMvkqm48', | ||
'NOW', 1); | ||
|
||
INSERT INTO users | ||
(id, name, username, password_hash, revoke_before, wg) VALUES | ||
(2, 'Laura', 'lamaura', '$pbkdf2-sha256$i=10000,l=32$R+UA953d9tO8VFqh8vF7TA$wmDkCKb9ScX6MfPJxKNf4dBM9MMHwEeVCsgzMvkqm48', | ||
'NOW', 1); | ||
|
||
INSERT INTO users | ||
(id, name, username, password_hash, revoke_before, wg) VALUES | ||
(3, 'Marie', 'marieee', '$pbkdf2-sha256$i=10000,l=32$R+UA953d9tO8VFqh8vF7TA$wmDkCKb9ScX6MfPJxKNf4dBM9MMHwEeVCsgzMvkqm48', | ||
'NOW', 1); | ||
|
||
|
||
INSERT INTO costs (id, wg_id, name, amount, creditor_id, added_on) VALUES | ||
(1, 1, 'Apotheke IBU/Tests/Masken', 15.0, 1, 'NOW'); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(1, 1, true); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(1, 2, false); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(1, 3, false); | ||
|
||
INSERT INTO costs (id, wg_id, name, amount, creditor_id, added_on) VALUES | ||
(2, 1, 'Einkauf whatever', 22.0, 2, 'NOW'); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(2, 1, false); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(2, 2, true); | ||
|
||
INSERT INTO costs (id, wg_id, name, amount, creditor_id, added_on) VALUES | ||
(3, 1, 'DM Kirschkernkissen', 9.90, 1, 'NOW'); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(3, 1, true); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(3, 2, false); | ||
INSERT INTO cost_shares (cost_id, debtor_id, paid) VALUES | ||
(3, 3, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters