我如何将所有数据项目生产推向Supabase中的本地环境
我已经直接使用supabase平台创建了一个项目,而不是在本地环境中,因此所有表都在生产中,但是现在我需要一个本地环境进行开发O测试,因此我使用本指南创建了一个本地项目,但是该项目来自Scracth,问题 �我如何从生产到本地环境中将所有桌子拉出?
I have created a project using supabase platform directly and not in local enviroment so all tables are in production, but now i need a local enviroment for development o test so i created a local project using this guide but the project is from scracth, the question is ¿how i can pull all tables from production to local enviroment?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过使用PGDUMP导出表模式并将其导入到本地环境中来做到这一点。您可以遵循本指南 https://supabase.com/docs/guides/guides com /平台/迁移和升级项目
You can do this by using pgdump to export the table schema and importing it back into your local environment. You can follow this guide https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects
Supabase DB Plup仅将DB作为迁移文件下载,然后您需要通过命令Supabase DB RESET应用它。
supabase db pull only will download the db as migration file then you need to apply it by command supabase db reset.