chore(*.psql/*.sql): update all *.psql to *.sql files
This commit is contained in:
parent
c9015a7f2b
commit
fc37600b8b
63 changed files with 21 additions and 41 deletions
|
@ -1,11 +0,0 @@
|
|||
CREATE OR REPLACE FUNCTION update_artist_name(old_artist_name TEXT, new_artist_name TEXT)
|
||||
RETURNS void AS $$
|
||||
BEGIN
|
||||
UPDATE listens
|
||||
SET artist_name = new_artist_name
|
||||
WHERE artist_name = old_artist_name;
|
||||
UPDATE albums
|
||||
SET artist_name = new_artist_name
|
||||
WHERE artist_name = old_artist_name;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
Loading…
Add table
Add a link
Reference in a new issue