Skip to content

Commit a7d5ed0

Browse files
authored
docs: simplify declarative schema usage example (supabase#36698)
1 parent 1e983eb commit a7d5ed0

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

apps/docs/content/guides/local-development/declarative-database-schemas.mdx

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,6 @@ supabase migration up
9898
<StepHikeCompact>
9999

100100
<StepHikeCompact.Step step={1}>
101-
<StepHikeCompact.Details title="Stop the local database">
102-
Before updating your schema files, stop the local development environment.
103-
</StepHikeCompact.Details>
104-
105-
<StepHikeCompact.Code>
106-
107-
<$CodeTabs>
108-
109-
```bash name=Terminal
110-
supabase stop
111-
```
112-
113-
</$CodeTabs>
114-
115-
</StepHikeCompact.Code>
116-
117-
</StepHikeCompact.Step>
118-
</StepHikeCompact>
119-
120-
<StepHikeCompact>
121-
122-
<StepHikeCompact.Step step={2}>
123101
<StepHikeCompact.Details title="Add a new column">
124102
Edit `supabase/schemas/employees.sql` file to add a new column to `employees` table.
125103
</StepHikeCompact.Details>
@@ -151,7 +129,7 @@ Some entities like views and enums expect columns to be declared in a specific o
151129

152130
<StepHikeCompact>
153131

154-
<StepHikeCompact.Step step={3}>
132+
<StepHikeCompact.Step step={2}>
155133
<StepHikeCompact.Details title="Generate a new migration">
156134
Diff existing migrations against your declared schema.
157135
</StepHikeCompact.Details>
@@ -173,7 +151,7 @@ supabase db diff -f add_age
173151

174152
<StepHikeCompact>
175153

176-
<StepHikeCompact.Step step={4}>
154+
<StepHikeCompact.Step step={3}>
177155
<StepHikeCompact.Details title="Review the generated migration">
178156
Verify that the generated migration contain a single incremental change.
179157
</StepHikeCompact.Details>
@@ -194,7 +172,7 @@ alter table "public"."employees" add column "age" smallint not null;
194172
</StepHikeCompact>
195173

196174
<StepHikeCompact>
197-
<StepHikeCompact.Step step={5}>
175+
<StepHikeCompact.Step step={4}>
198176
<StepHikeCompact.Details title="Apply the pending migration">
199177
Start the database locally and apply the pending migration.
200178
</StepHikeCompact.Details>
@@ -204,7 +182,7 @@ alter table "public"."employees" add column "age" smallint not null;
204182
<$CodeTabs>
205183

206184
```bash name=Terminal
207-
supabase start && supabase migration up
185+
supabase migration up
208186
```
209187

210188
</$CodeTabs>

0 commit comments

Comments
 (0)