Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

migrate the postgres docs to the relevant sidebar

Copple0470bd0f8aaf
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index 2dcd089bbc1..11043ca46c4 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -512,6 +512,24 @@ export const database = {
},
],
},
+ {
+ name: 'Postgres resources',
+ url: undefined,
+ items: [
+ {
+ name: 'Drop all tables in schema',
+ url: '/guides/database/postgres/dropping-all-tables-in-schema',
+ },
+ {
+ name: 'Select first row per group',
+ url: '/guides/database/postgres/first-row-in-group',
+ },
+ {
+ name: 'Print PostgreSQL version',
+ url: '/guides/database/postgres/which-version-of-postgres',
+ },
+ ],
+ },
{
name: 'Configuration',
url: undefined,
@@ -727,24 +745,6 @@ export const resources = {
},
],
},
- {
- name: 'Postgres resources',
- url: undefined,
- items: [
- {
- name: 'Drop all tables in schema',
- url: '/guides/resources/postgres/dropping-all-tables-in-schema',
- },
- {
- name: 'Select first row per group',
- url: '/guides/resources/postgres/first-row-in-group',
- },
- {
- name: 'Print PostgreSQL version',
- url: '/guides/resources/postgres/which-version-of-postgres',
- },
- ],
- },
],
}
diff --git a/apps/docs/pages/guides/resources/postgres/dropping-all-tables-in-schema.mdx b/apps/docs/pages/guides/database/postgres/dropping-all-tables-in-schema.mdx
similarity index 100%
rename from apps/docs/pages/guides/resources/postgres/dropping-all-tables-in-schema.mdx
rename to apps/docs/pages/guides/database/postgres/dropping-all-tables-in-schema.mdx
diff --git a/apps/docs/pages/guides/resources/postgres/first-row-in-group.mdx b/apps/docs/pages/guides/database/postgres/first-row-in-group.mdx
similarity index 100%
rename from apps/docs/pages/guides/resources/postgres/first-row-in-group.mdx
rename to apps/docs/pages/guides/database/postgres/first-row-in-group.mdx
diff --git a/apps/docs/pages/guides/resources/postgres/which-version-of-postgres.mdx b/apps/docs/pages/guides/database/postgres/which-version-of-postgres.mdx
similarity index 100%
rename from apps/docs/pages/guides/resources/postgres/which-version-of-postgres.mdx
rename to apps/docs/pages/guides/database/postgres/which-version-of-postgres.mdx
diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.js
index 00b9b15e5c5..05e8c945236 100644
--- a/apps/www/lib/redirects.js
+++ b/apps/www/lib/redirects.js
@@ -1862,4 +1862,19 @@ module.exports = [
source: '/docs/guides/platform/database-usage',
destination: '/docs/guides/platform/database-size',
},
+ {
+ permanent: true,
+ source: '/docs/guides/resources/postgres/dropping-all-tables-in-schema',
+ destination: '/docs/guides/database/postgres/dropping-all-tables-in-schema',
+ },
+ {
+ permanent: true,
+ source: '/docs/guides/resources/postgres/first-row-in-group',
+ destination: '/docs/guides/database/postgres/first-row-in-group',
+ },
+ {
+ permanent: true,
+ source: '/docs/guides/resources/postgres/which-version-of-postgres',
+ destination: '/docs/guides/database/postgres/which-version-of-postgres',
+ },
]