You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:** These steps have already been completed and are included here for reference.
50
86
51
-
> This has already been run and is described here for completeness
87
+
1.**Access the Development Container:**
52
88
53
-
```bash
54
-
docker exec -it ai-api-dev zsh
89
+
```bash
90
+
docker exec -it demo-agents-api zsh
91
+
```
55
92
56
-
cd db
57
-
alembic init migrations
58
-
```
93
+
2. **Initialize Alembic Migrations:**
94
+
95
+
```bash
96
+
cd db
97
+
alembic init migrations
98
+
```
99
+
100
+
3. **Post-Initialization Steps:**
101
+
102
+
- **Update `alembic.ini`:**
103
+
- Set `script_location = db/migrations`.
104
+
- **Update `migrations/env.py`:**
105
+
- Modify according to the [Alembic Autogenerate Documentation](https://alembic.sqlalchemy.org/en/latest/autogenerate.html).
106
+
107
+
## Additional Resources
108
+
109
+
- **Adding Database Tables:** Refer to the [Phidata documentation](https://docs.phidata.com/day-2/database-tables) for detailed instructions on adding database tables.
110
+
- **Environment Variable Note:** Setting `MIGRATE_DB=True` ensures that the migration command runs from the entrypoint script when the container starts.
111
+
112
+
---
59
113
60
-
- After running the above commands, the `db/migrations` directory should be created.
61
-
- Update `alembic.ini`
62
-
- set `script_location = db/migrations`
63
-
- uncomment `black` hook in `[post_write_hooks]`
64
-
- Update `migrations/env.py` file following [this link](https://alembic.sqlalchemy.org/en/latest/autogenerate.html)
114
+
Feel free to customize this README further to suit your project's needs.
0 commit comments