forked from go-delve/delve
-
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.
* Initial commit for track link service * fix track_link migration * add rpc and db methods for track link - creating track links (still need to add generation of track link id) - finding track link by track link id - incrementing hits for track link * name is now track_link * rpc method to replace urls with track links - still need to add postgres function to automagically generate the tracklinkids * track links cannot be https * rename mms shorten_urls column to track_links * rename New client function to NewClient * add track links column to sms * rename rpc methods to match spec * add message_type column to track link * use track link service to shorten links in sms/mms * rename GenerateShortUrls to GenerateTrackLinks - coz they're not short urls they're track links duh * add track_link_generate function to db - given an int length generate a track link id - checks to see if id already exists in track link table and will generate another if it does - let's see whether this is sufficient... * fix up modd after rebase
- Loading branch information
Showing
40 changed files
with
712 additions
and
31 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
backend/mms/migration/sql/000002_rename_shorten_urls_to_track_links.down.sql
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,3 @@ | ||
BEGIN; | ||
ALTER TABLE mms RENAME COLUMN track_links TO shorten_urls; | ||
COMMIT; |
3 changes: 3 additions & 0 deletions
3
backend/mms/migration/sql/000002_rename_shorten_urls_to_track_links.up.sql
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,3 @@ | ||
BEGIN; | ||
ALTER TABLE mms RENAME COLUMN shorten_urls TO track_links; | ||
COMMIT; |
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
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
3 changes: 3 additions & 0 deletions
3
backend/sms/migration/sql/000002_add_track_links_column.down.sql
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,3 @@ | ||
BEGIN; | ||
ALTER_TABLE sms DROP COLUMN IF EXISTS track_links; | ||
COMMIT; |
3 changes: 3 additions & 0 deletions
3
backend/sms/migration/sql/000002_add_track_links_column.up.sql
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,3 @@ | ||
BEGIN; | ||
ALTER TABLE sms ADD COLUMN track_links BOOL DEFAULT FALSE; | ||
COMMIT; |
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
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
Oops, something went wrong.