Skip to content

Commit d8d98a2

Browse files
committed
Add SQLDelight migrations for schema versions 77 to 91
1 parent 42b39c1 commit d8d98a2

File tree

23 files changed

+41
-1
lines changed

23 files changed

+41
-1
lines changed

libpretixsync/src/main/java/eu/pretix/libpretixsync/sqldelight/Migrations.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Migrations {
66
/**
77
* Lowest schema version that we can still migrate from
88
*/
9-
const val minSupportedVersion = 91L
9+
const val minSupportedVersion = 77L
1010

1111
/**
1212
* AfterVersion callback that can be used in SQLDelight code migrations to crash if we encounter
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE Receipt ADD additional_text TEXT NULL;
2+
ALTER TABLE Settings ADD pretixpos_additional_receipt_text TEXT NULL;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE Receipt ADD subevent_text TEXT NULL;
2+
ALTER TABLE Receipt ADD event_date_from TEXT NULL;
3+
ALTER TABLE Receipt ADD event_date_to TEXT NULL;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-- Empty migration to set database version to 81
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE Settings ADD covid_certificates_combination_rules TEXT NULL;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ALTER TABLE ReceiptLine ADD listed_price NUMERIC NULL;
2+
ALTER TABLE ReceiptLine ADD price_after_voucher NUMERIC NULL;
3+
ALTER TABLE ReceiptLine ADD custom_price_input NUMERIC NULL;
4+
ALTER TABLE ReceiptLine ADD voucher_code TEXT NULL;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-- Empty migration to set database version to 90
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE Settings ADD covid_certificates_allow_other boolean NULL;
2+
ALTER TABLE Settings ADD covid_certificates_record_proof_other boolean NULL;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE Settings ADD covid_certificates_record_validity_time boolean NULL;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE Settings ADD covid_certificates_record_proof boolean NULL;
2+
ALTER TABLE Settings ADD covid_certificates_allow_vaccinated_products TEXT NULL;

0 commit comments

Comments
 (0)