#Is there a way to "pre-seed" a database table?
3 messages · Page 1 of 1 (latest)
👋
You can actually push your seed.ts file to your production DB 🙂
https://docs.astro.build/en/guides/astro-db/#pushing-table-data
Thank you! I missed that!
3 messages · Page 1 of 1 (latest)
For example, I'd like to populate a table with user roles and their descriptions on database creation based on an exported array of objects. I can only think of creating a script and running that against my DB but I was thinking there might be something similar to seed.ts but for production which I'm somehow missing. Thanks!
👋
You can actually push your seed.ts file to your production DB 🙂
https://docs.astro.build/en/guides/astro-db/#pushing-table-data
Thank you! I missed that!