-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(NOBIDS) migrate apple api to v2, use old one to resolve legacy purch…
…ases, migrator for all purchases
- Loading branch information
Showing
12 changed files
with
442 additions
and
171 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 |
---|---|---|
|
@@ -32,3 +32,4 @@ _gitignore/ | |
local-deployment/config.yml | ||
local-deployment/elconfig.json | ||
local-deployment/.env | ||
__gitignore |
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
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
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,9 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE users_app_subscriptions ADD COLUMN legacy_receipt varchar(150000); | ||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
-- +goose StatementBegin | ||
ALTER TABLE users_app_subscriptions DROP COLUMN legacy_receipt; | ||
-- +goose StatementEnd |
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,24 @@ | ||
#!/bin/bash | ||
|
||
# Ask for name of migration | ||
echo "Enter name of migration file (for example add_validators_indices): " | ||
read -r name | ||
|
||
# This script creates a new migration file with the current timestamp | ||
# as the filename prefix. | ||
filename=$(date +"%Y%m%d%H%M%S")_$name.sql | ||
touch $filename | ||
|
||
cat <<EOF > $filename | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
-- +goose StatementEnd | ||
EOF | ||
|
||
|
Oops, something went wrong.