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

question: init db script missing #153

Closed
Jixiangup opened this issue Jan 6, 2023 · 5 comments
Closed

question: init db script missing #153

Jixiangup opened this issue Jan 6, 2023 · 5 comments
Assignees

Comments

@Jixiangup
Copy link

Describe the bug
Hello APITable team, thank you for open-sourcing such a good product, I am very interested in this project, and I am going to study it. If possible, I hope to participate in open-source work with APITable, because I also love open-source, but now I'm having a problem with not being able to initialize the database, I looked at the current project version up to 0.17.0, but I noticed that our init-db doesn't have a db script for 0.17.0, is this a problem please? thank you for your reply!

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@shawndenggh
Copy link
Collaborator

@bnyte hello, 0.17.0 version does not necessarily have database changes, no script is normal

@Jixiangup
Copy link
Author

Jixiangup commented Jan 6, 2023

@bnyte hello, 0.17.0 version does not necessarily have database changes, no script is normal

@shawndenggh Thank you for your reply, but I think this design is unreasonable. My personal opinion is to add init.sql script to quickly build a database for first-time users

@mr-kelly mr-kelly changed the title init db script missing fix: init db script missing Jan 6, 2023
@mr-kelly
Copy link
Contributor

mr-kelly commented Jan 6, 2023

Hi, @bnyte

In my opinion, our init.sql script is equivalent to the commands make db-plan and make db-apply.

You can have a try.

We use Liquibase to initialize our database schema. And we build it into a Docker image called init-db.
In fact, it is just a Liquibase Java project.
So you can check out more details in the Makefile

@mr-kelly mr-kelly changed the title fix: init db script missing chore: init db script missing Jan 6, 2023
@Jixiangup
Copy link
Author

Jixiangup commented Jan 6, 2023

Hi, @bnyte

In my opinion, our init.sql script is equivalent to the commands make db-plan and make db-apply.

You can have a try.

We use Liquibase to initialize our database schema. And we build it into a Docker image called init-db. In fact, it is just a Liquibase Java project. So you can check out more details in the Makefile

okey! Thank you @mr-kelly for your reply, In my previous experience, it is different from this way. I will read him after get off work. Thank you again for your answer. I will close this issue

I have another suggestion. Currently, apitable has no question issue template. If you expect to use discussions, please open it and start using it, because I know this is not a BUG, but I can't find a way to give feedback or ask a question~

@mr-kelly
Copy link
Contributor

mr-kelly commented Jan 6, 2023

Hi, @bnyte
In my opinion, our init.sql script is equivalent to the commands make db-plan and make db-apply.
You can have a try.
We use Liquibase to initialize our database schema. And we build it into a Docker image called init-db. In fact, it is just a Liquibase Java project. So you can check out more details in the Makefile

okey! Thank you @mr-kelly for your reply, In my previous experience, it is different from this way. I will read him after get off work. Thank you again for your answer. I will close this issue

I have another suggestion. Currently, apitable has no question issue template. If you expect to use discussions, please open it and start using it, because I know this is not a BUG, but I can't find a way to give feedback or ask a question~

This is a good advice of creating a question issue. I will do it now!

If you don't like this way, tell us and we'll do our best to improve your experience.

@mr-kelly mr-kelly changed the title chore: init db script missing question: init db script missing Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants