1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-25 10:11:24 +00:00
seahub/sql
awu0403 0981a0dc99
update repo trash (#6148)
* update repo trash

* update code

* select trash

* update

* update

* merge clean trash

* fix-uni-test-and-code-optimize

* Update mysql.sql

* code-optimize

* update select

* update sql

* update UI

* change trash dialog style

* optimize code

* fix code format

* Update repo_trash.py

* update

* add clean trash Command

* update

* optimize code

* support page

* support frontend page

* update

* Update __init__.py

* Update clean_repo_trash.py

* Update clean_repo_trash.py

* Update clean_repo_trash.py

* Update trash-dialog.js

* Update clean_repo_trash.py

* set default by 90

* Update clean_repo_trash.py

* update

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
Co-authored-by: Michael An <2331806369@qq.com>
2024-07-18 13:44:41 +08:00
..
mysql.sql update repo trash (#6148) 2024-07-18 13:44:41 +08:00
oracle.sql [sql] Update oracle 2016-10-20 17:45:11 +08:00
README.md added sqls for all models 2014-07-09 14:43:12 +08:00
sqlite3.sql update 11.0 sql org_saml_config (#5915) 2024-01-24 10:26:24 +08:00

Seahub Schema

This folder contains database schema for seahub.

Maintainence

The sql files in this folder should always correspond to the latest schema, which means it would give you the same database whether you run the django "syncdb" command or directly import the sqls here.

So each time you change some model, you should update each sql file here.

Get the initial database sqls

SQLite3

To get the sqlite3 sqls:

cd seahub
sqlite3 seahub/seahub.db .dump > sql/sqlite3.sql

MySQL

To get the MySQL sqls:

cd seahub
mysqldump -u root -proot --skip-add-lock --skip-add-drop-table --skip-comments seahub  > sql/mysql.sql