Skip to content

What is the recommended way of declaring schema in Python projects? #1864

Answered by kurtrottmann
tech-cobber asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, there is an RFC about migration with related information: https://github.com/edgedb/rfcs/blob/master/text/1000-migrations.rst

The recommended way to define the EdgeDB schema is via SDL files that are committed into the repository of a project that uses EdgeDB. The canonical location for the schema files is the dbschema/ directory in the project's root folder.

The edgedb create-migration command reads the files in the schema folder and creates the migration script with the help of the database server. Migration scripts are stored to the dbschema/migrations/ directory and can be committed into the project's repository. Migration files contain valid EdgeQL text and can be modified by th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tech-cobber
Comment options

Answer selected by 1st1
Comment options

You must be logged in to vote
1 reply
@tech-cobber
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants