40 Commits

Author SHA1 Message Date
Wolfgang Huß
da2c7dc684 Add migration with fulltext indeces and unique keys for groups 2022-08-03 07:29:51 +02:00
Wolfgang Huß
1a0819741f Fix 'add-donations-node' migration 2021-12-02 11:24:18 +01:00
Wolfgang Huß
d5468e5123 Add db mutation for adding sendNotificationEmails property to each user 2021-09-23 15:03:11 +02:00
Wolfgang Huß
8295ec5827 Change donations db migration from CREATE to MERGE to work in all circumstances 2021-09-20 11:05:41 +02:00
Wolfgang Huß
924f34be5f Migrate database by adding the donation info as node 2021-05-06 16:03:16 +02:00
Moriz Wahl
1c3f628fb2 count views of post teaser 2021-03-01 15:33:20 +01:00
Moriz Wahl
88fd83ec2b
Merge pull request #4248 from Ocelot-Social-Community/count-post-views
feat: 🍰 Count Post Clicks
2021-03-01 14:55:14 +01:00
Moriz Wahl
f2d34cc815 linting 2021-02-22 21:15:18 +01:00
Moriz Wahl
4611e298f5 migration for clickedCount 2021-02-22 21:03:12 +01:00
Moriz Wahl
a7489a044c add null mutation 2021-02-17 21:03:18 +01:00
Wolfgang Huß
814c1b88ae New file .gitkeep in migrations 2021-02-15 21:14:18 +01:00
Wolfgang Huß
063c730e5f Fix 'db:migrate up' by moving examples outside of migrations folder 2021-02-15 17:53:56 +01:00
Moriz Wahl
efec46d9d4 moved old migrations from HC to examples folder to avoid conflicts with new migrations 2021-02-11 13:14:57 +01:00
mattwr18
52b5a4b0f8 fix(migration): Set maxSockets to avoid rate limit 2020-03-30 14:14:06 +02:00
mattwr18
ff348fdd5c chore: remove image nodes that point to nothing
- remove their relationships to posts/users as well
2020-03-26 19:01:09 +01:00
roschaefer
cedd0ac9e8 Code creep: Avoid migration errors
..because of existing indices. I think this is unnecessary, e.g. in
development.
2020-03-26 16:41:32 +01:00
roschaefer
2e1d5b6bb8 chore(migration): Remove dangling urls 2020-03-26 16:39:03 +01:00
mattwr18
bde6bfc5fa fix(migration): fix errors after dry run
- avoid content-type is not a string, by checking if there is a mimeType
  or giving it a default 'image/jpeg'
- check if the file exists before trying to upload it (maybe this is
  only an issue locally, but about half the files didn't exist in the
file system.
2020-03-26 14:03:21 +01:00
roschaefer
32da8b2982 refactor: Remove redundant credentials
aws-sdk reads them from environment variables.
2020-03-25 11:09:06 +01:00
roschaefer
eb838257d4 Ensure overwritten images are deleted on S3 2020-03-25 11:09:06 +01:00
mattwr18
c33217c526 Find mimeType/update image.url 2020-03-25 11:07:57 +01:00
roschaefer
179d9d000a Start migration to bulk upload images to S3 2020-03-25 11:07:57 +01:00
roschaefer
276ea79e8f Update prettier to v2 2020-03-24 21:11:11 +01:00
mattwr18
e0e026a8b8 fix(migration): return null for Image.url 2020-03-23 18:46:28 +01:00
roschaefer
ed7b739d98 fix(migration): Avoid unique constraint violation 2020-03-20 20:25:37 +01:00
Moriz Wahl
1c43d5fe6f Search for Hashtags works due watching route in pages/index.vue 2020-03-19 14:19:13 +01:00
Moriz Wahl
e236838523 migration added for index for fulltext tag search 2020-03-19 12:55:59 +01:00
Robert Schäfer
512ef672bf
feat: Introduce graphql image type (#3043)
* refactor(graphql): Introduce image type

* Undo changes to .travis.yml

* chore: Upgrade travis to node LTS

- URL is available since v10

* chore: use lts

Co-authored-by: mattwr18 <mattwr18@gmail.com>
2020-03-16 15:32:19 +01:00
Moriz Wahl
5b41561cc4 throw error added to template 2020-02-18 14:16:46 +01:00
Moriz Wahl
31cec2cf0c improved migration 2020-02-11 14:37:10 +01:00
Moriz Wahl
86f298f8e5 prettier, prettier 2020-02-06 23:00:06 +01:00
Moriz Wahl
4905b09b3e migration added to swap lat and lng in db 2020-02-06 20:47:45 +01:00
mattwr18
5931e363ef
Use original createdAt for merged users/emails (#2969)
- Also, use original verifiedAt date for emails. These users only have
  newly created accounts/emails because of our blunder. Their nodes
should reflect when they became members/verified their emails.
2020-02-03 19:17:48 +01:00
mattwr18
37178fd6ba Add migration for muted relationship 2020-01-27 13:28:12 +01:00
roschaefer
e343701057 Reverted a couple changes by @mattwr18
We have to figure out if `mergeRels: true` is actually avoiding
duplicate relationships 🤔.

Before:
(l1)-[:IS_IN]->(l2)
(l1)-[:IS_IN]->(l3)

After:
(l1)-[:IS_IN]->(new)
(l1)-[:IS_IN]->(new)
2020-01-23 17:38:31 +01:00
mattwr18
28dae1f854 Update docs, follow @roschaefer suggestions
- create command should be run with --date-format to be more human
  readable, and --template-file to use our template instead of migrate's
default
- rename migrations
- rename createdAt to migratedAt to remove ambiguity
- do not merge relationships for Location nodes as we don't want to
  create duplicate relationships
- use singular locationId as it's iterating one at a time
2020-01-23 15:44:34 +01:00
mattwr18
561889c530 Add migration to merge duplicate Locations
- having duplicate Location nodes in the production database blocks us
  from adding a unique constraint, so that Locations are not created
which have the same id.
2020-01-22 13:19:38 +01:00
roschaefer
a86b26a756 Various fixes for data migrations
* Add unique index for `Migration`s
* Fix proper use of `next` callback. First argument is potential error.
* Update migration template
2020-01-20 17:25:36 +01:00
roschaefer
b063847849 refactor: Make db:setup init stage of migrate 2020-01-20 11:00:52 +01:00
roschaefer
daf2c40cae Implement Neo4J store for migrate 2020-01-20 10:59:15 +01:00