Skip to content

Commit c1f0656

Browse files
committed
Update RM
1 parent 25bb7e9 commit c1f0656

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# Flask Database Migrations with SQLAlchemy & Flask-Migrate
1+
# [Flask Database Migrations](https://app-generator.dev/docs/technologies/flask/db-migrations.html) with SQLAlchemy & Flask-Migrate
22

3-
## Introduction
3+
**Flask-Migrate** is an extension that handles database migrations for Flask applications using **Alembic**. It works alongside **SQLAlchemy**, which is an ORM (Object Relational Mapper) that maps Python objects to database tables. Using Flask-Migrate, you can easily handle version control for your database schema, allowing for smooth database changes and rollbacks over time.
44

5-
**Flask-Migrate** is an extension that handles database migrations for Flask applications using **Alembic**. It works alongside **SQLAlchemy**, which is an ORM (Object Relational Mapper) that maps Python objects to database tables.
5+
> 👉 [Flask Database Migrations](https://app-generator.dev/docs/technologies/flask/db-migrations.html) - Complete Documentation
66
7-
Using Flask-Migrate, you can easily handle version control for your database schema, allowing for smooth database changes and rollbacks over time.
8-
9-
---
7+
<br />
108

119
## Setup for Different DBMS
1210

@@ -45,7 +43,7 @@ SQLite is a lightweight, file-based database suitable for small projects or test
4543
migrate = Migrate(app, db)
4644
```
4745

48-
---
46+
<br />
4947

5048
### MySQL
5149

@@ -71,7 +69,7 @@ SQLite is a lightweight, file-based database suitable for small projects or test
7169
CREATE DATABASE db_name;
7270
```
7371

74-
---
72+
<br />
7573

7674
### PostgreSQL
7775

@@ -97,9 +95,9 @@ SQLite is a lightweight, file-based database suitable for small projects or test
9795
CREATE DATABASE db_name;
9896
```
9997

100-
---
98+
<br />
10199

102-
## Flask Migrate Full Kickoff
100+
## Flask Migrate Kickoff
103101

104102
To set up **Flask-Migrate** and apply migrations to your database, follow these steps:
105103

@@ -162,7 +160,7 @@ To set up **Flask-Migrate** and apply migrations to your database, follow these
162160

163161
Your Flask app will be running at `http://127.0.0.1:5000`.
164162

165-
---
163+
<br />
166164

167165
## Common Flask-Migrate Commands
168166

@@ -173,7 +171,7 @@ To set up **Flask-Migrate** and apply migrations to your database, follow these
173171
- **`flask db history`**: Shows the migration history.
174172
- **`flask db stamp head`**: Marks the current database as being at the latest migration.
175173

176-
---
174+
<br />
177175

178176
## Conclusion
179177

@@ -184,3 +182,4 @@ By using Flask-Migrate, you can handle database schema changes in a more structu
184182
Feel free to explore the code in the repository and follow the steps to integrate Flask-Migrate into your own Flask applications.
185183

186184
---
185+
[Flask Database Migrations](https://app-generator.dev/docs/technologies/flask/db-migrations.html) - Free sample provided by [App Generator](https://app-generator.dev)

0 commit comments

Comments
 (0)