Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read tree addresses from database #4

Closed
WilfredAlmeida opened this issue Mar 24, 2024 · 1 comment
Closed

Read tree addresses from database #4

WilfredAlmeida opened this issue Mar 24, 2024 · 1 comment
Assignees

Comments

@WilfredAlmeida
Copy link
Owner

Currently, tree addresses are hardcoded in the main.rs file. The for this is:

  1. We use Metaplex DAS' database and migrations written in sea-orm
  2. LightDAS uses sea-orm as well
  3. sea-orm maintains a table in the database about the applied migrations
  4. If (1) applied some migrations, (2) cannot apply because when applying a migration, SeaORM checks the table and expects the older migration files to be present.
  5. However, migrations of (1) and (2) cannot be together because they're altogether maintained by different teams i.e. Metaplex DAS team and LightDAS team

Figure out a way to apply migrations from LightDAS via SeaORM

@WilfredAlmeida
Copy link
Owner Author

A possible fix to this is to skip using sea-orm for the trees table and directly have the create tree SQL commands in the code and run them directly on the db @KartikSoneji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants