55 Commits

Author SHA1 Message Date
Moriz Wahl
44d6f31574 timezone offset in migration 1 hour, check event date string for ISO format 2023-10-26 16:40:41 +02:00
Moriz Wahl
fe3e5dc483 fix cypher statement 2023-10-17 15:35:38 +02:00
Moriz Wahl
fe416200fb migration to fix wrong event date times 2023-10-17 15:15:28 +02:00
23c2be3093
Merge branch 'master' into update-database 2023-06-16 15:02:58 +02:00
ebddfa7df4
all files as .ts 2023-06-12 13:25:21 +02:00
Moriz Wahl
44e2c1adf7 feat(backend): migration to add postType property to existing posts 2023-06-08 14:00:04 +02:00
Hannes Heine
41cd147258
Merge branch 'master' into update-database 2023-05-31 21:26:39 +02:00
Moriz Wahl
30ce9e8460 add description to migration 2023-05-22 17:06:32 +02:00
44700f8a41
lint + comment 2023-05-16 00:43:37 +02:00
a326b2777f
fix migrations 2023-05-16 00:38:02 +02:00
Moriz Wahl
84811d8937 feat(backend): add article label to posts 2023-03-29 15:48:35 +02:00
ceed23893a
remove console statement, lint fixes 2023-03-20 22:36:43 +01:00
bfca086e7b
only drop indexes if they exist 2023-03-20 22:17:07 +01:00
6e2b65e124
lint fixes 2023-03-20 21:40:57 +01:00
b3f5bf4e6a
new migration to create search indexes 2023-03-20 14:06:10 +01:00
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