Skip to content

Commit

Permalink
doc/md: deprecating ddl guide (#2988)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemtam committed Jul 19, 2024
1 parent 4877a5f commit e455da3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 282 deletions.
4 changes: 2 additions & 2 deletions doc/md/atlas-schema/hcl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: /atlas-schema/hcl
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Atlas schemas can be defined in SQL, external ORMs and programs, or by using the [Atlas HCL](/guides/ddl.md#hcl) language.
Atlas schemas can be defined in SQL, external ORMs and programs, or by using the Atlas HCL language.
The HCL-based language allows developers to describe database schemas in a declarative manner, and it supports all SQL
features supported by Atlas. The main advantages of using HCL are that it enables developers to manage their database
schemas like regular code, facilitates sharing and reusing files between projects, allows variable injection, and
Expand Down Expand Up @@ -224,7 +224,7 @@ To define row-level security policies for a table, refer to the [policy](#row-le

In some cases, an Atlas DDL document may contain multiple tables of the same name. This usually happens
when the same table name appears in two different schemas. In these cases, the table names must be
disambiguated by using resource [qualifiers](/guides/ddl.md#qualifiers). The following document describes a
disambiguated by using resource qualifiers. The following document describes a
database that contains two schemas named `a` and `b`, and both of them contain a table named `users`.

```hcl
Expand Down
270 changes: 0 additions & 270 deletions doc/md/guides/ddl.md

This file was deleted.

8 changes: 2 additions & 6 deletions doc/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ module.exports = {
from: '/dev-database',
},
{
to: '/guides/ddl',
from: ['/ddl/intro', '/concepts/ddl'],
to: '/atlas-schema/hcl',
from: ['/ddl/intro', '/concepts/ddl', '/guides/ddl'],
},
{
to: '/atlas-schema/input-variables',
Expand Down Expand Up @@ -158,10 +158,6 @@ module.exports = {
to: '/guides/postgres/serial-columns',
from: '/knowledge/postgres/serial-columns',
},
{
to: '/guides/ddl',
from: '/knowledge/ddl',
},
{
to: '/concepts/url',
from: '/url',
Expand Down
4 changes: 0 additions & 4 deletions doc/website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,6 @@ module.exports = {
id: 'guides/getting-started-redshift',
label: 'Redshift'
},
{
type: 'doc',
id: 'guides/ddl'
},
{
type: 'category',
label: 'Archive',
Expand Down

0 comments on commit e455da3

Please sign in to comment.