mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-27 19:05:16 +00:00
* add group audit log * Update mysql.sql * optimize parameters * update * update * update * optimize * code optimize * update * Update operation-logs.js * update * Update models.py * update --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com> Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com> |
||
---|---|---|
.. | ||
mysql.sql | ||
oracle.sql | ||
README.md | ||
sqlite3.sql |
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