diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-10 17:07:45 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-10 17:07:45 -0400 |
| commit | 62dae6011db94dd52c3ac0fce517c6e9cc0abcf6 (patch) | |
| tree | 1700442c9b6648af7ec8781af0ec92856a93cecd /src/sql/setlist_song_upsert.sql | |
| parent | cc8653536c499df4b85aae423ad6b27bb74544be (diff) | |
pke-at: first-pass storage interface
Diffstat (limited to 'src/sql/setlist_song_upsert.sql')
| -rw-r--r-- | src/sql/setlist_song_upsert.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sql/setlist_song_upsert.sql b/src/sql/setlist_song_upsert.sql new file mode 100644 index 0000000..ec0682e --- /dev/null +++ b/src/sql/setlist_song_upsert.sql @@ -0,0 +1,6 @@ +INSERT INTO [at_setlist_song] (setlist_uuid,song_uuid) + VALUES('%s','%s') + ON CONFLICT(setlist_uuid,song_uuid) DO UPDATE SET + is_deleted=0 + ,modification_dt=unixepoch('now') + WHERE setlist_uuid=excluded.setlist_uuid AND song_uuid=excluded.song_uuid; |
