diff --git a/aria/contents/docs/development/database/index.mdx b/aria/contents/docs/development/database/index.mdx index 754c18519..30000d7ab 100644 --- a/aria/contents/docs/development/database/index.mdx +++ b/aria/contents/docs/development/database/index.mdx @@ -3,12 +3,11 @@ title: Database --- ## Database maintenance -Currently, the tables of database are created by `.sql` file. +Currently, the tables of database are created by [SeaORM migration](https://www.sea-ql.org/SeaORM/docs/migration/setting-up-migration). -If you want to add a new table or modify the existing table, you need to update the `.sql` files which are located in the `sql` directory. +If you want to add a new table or modify the existing table, you need to update the `migration` files which are located in the `jupiter/migration/src` directory. ### Attention -- Each database corresponds to one `.sql` file, you must modify all of them if you want to update the tables in order to keep the consistency of the database. - DO NOT use `Array` Type in PostgreSQL but use `JSON` instead, for compatibility with SQLite & MySQL. (`JSON` <==> `serde_json::Value`) --- diff --git a/aria/contents/docs/development/quick-start/index.mdx b/aria/contents/docs/development/quick-start/index.mdx index c8f22944c..7a7379735 100644 --- a/aria/contents/docs/development/quick-start/index.mdx +++ b/aria/contents/docs/development/quick-start/index.mdx @@ -45,11 +45,6 @@ description: Quick start manuel to developing or testing. postgres=# \q ``` - ```bash - $ cd mega/sql/postgres - $ psql mega < pg_YYYYMMDD_init.sql - ``` - 3. Create user and grant privileges. ```sql @@ -136,14 +131,7 @@ description: Quick start manuel to developing or testing. postgres=# \q ``` - 3.Import `mega/sql/postgres/pg_