diff --git a/.env.example b/.env.example index 60b0fc7..960dc60 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,7 @@ PRISMIC_ENDPOINT=https://jvelo.prismic.io - DATABASE_URL=mysql://:@..psdb.cloud/?ssl={} + +POSTGRES_HOST= +POSTGRES_USER= +POSTGRES_PASSWORD= +POSTGRES_DATABASE= diff --git a/package.json b/package.json index 007c4bb..9bf4a29 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "graphql": "^15.1.0", "husky": "^4.2.5", "node-fetch": "^2.6.0", + "postgres": "^3.4.4", "prettier": "^2.0.5", "pretty-quick": "^2.0.1", "twitter-d": "0.4.0", diff --git a/scripts/migrate-likes.js b/scripts/migrate-likes.js new file mode 100644 index 0000000..e69de29 diff --git a/yarn.lock b/yarn.lock index 0f7cf9f..fa8fb5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10099,6 +10099,11 @@ postcss@^7.0.0, postcss@^7.0.14, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0. picocolors "^0.2.1" source-map "^0.6.1" +postgres@^3.4.4: + version "3.4.4" + resolved "https://registry.yarnpkg.com/postgres/-/postgres-3.4.4.tgz#adbe08dc1fff0dea3559aa4f83ded70a289a6cb8" + integrity sha512-IbyN+9KslkqcXa8AO9fxpk97PA4pzewvpi2B3Dwy9u4zpV32QicaEdgmF3eSQUzdRk7ttDHQejNgAEr4XoeH4A== + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"