dont sync emojis with site name in their names

master
Aevann 2024-11-11 14:11:59 +02:00
parent ff307b6212
commit eb9b0cc428
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#generate seed-emojis-$SITE_NAME.sql #generate seed-emojis-$SITE_NAME.sql
EXPORT_EMOJIS=$(psql --csv --tuples-only -P "null=NULL" -c \ EXPORT_EMOJIS=$(psql --csv --tuples-only -P "null=NULL" -c \
"SELECT ''''||name||'''', ' '''||kind||'''', ' '||2, ' '''||tags||'''', ' '||nsfw||'', ' '||created_utc||'' FROM emojis WHERE submitter_id IS NULL and author_id != 2 and author_id != 1076771 ORDER BY name" \ "SELECT ''''||name||'''', ' '''||kind||'''', ' '||2, ' '''||tags||'''', ' '||nsfw||'', ' '||created_utc||'' FROM emojis WHERE submitter_id IS NULL and author_id != 2 and author_id != 1076771 and name not ilike '%$SITE_NAME%' ORDER BY name" \
"$DATABASE_URL") "$DATABASE_URL")
EXPORT_EMOJIS=$(sed 's/.*/\(&\),/' <<< "$EXPORT_EMOJIS") EXPORT_EMOJIS=$(sed 's/.*/\(&\),/' <<< "$EXPORT_EMOJIS")
echo "INSERT INTO public.emojis (name, kind, author_id, tags, nsfw, created_utc) VALUES" > "/d/seed-emojis-$SITE_NAME.sql" echo "INSERT INTO public.emojis (name, kind, author_id, tags, nsfw, created_utc) VALUES" > "/d/seed-emojis-$SITE_NAME.sql"