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

Feat/use migrations #1653

Merged
merged 5 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*.DS_Store
/venv
*/__pycache__/*
*/migrations/*
*.pyc
.idea/
.vscode/
Expand Down
129 changes: 129 additions & 0 deletions deploy/docker/version.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,131 @@
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(1, 'contenttypes', '0001_initial', '2023-07-25 12:21:52.973418000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(2, 'contenttypes', '0002_remove_content_type_name', '2023-07-25 12:21:52.999633000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(3, 'auth', '0001_initial', '2023-07-25 12:21:53.024375000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(4, 'auth', '0002_alter_permission_name_max_length', '2023-07-25 12:21:53.050493000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(5, 'auth', '0003_alter_user_email_max_length', '2023-07-25 12:21:53.077039000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(6, 'auth', '0004_alter_user_username_opts', '2023-07-25 12:21:53.100575000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(7, 'auth', '0005_alter_user_last_login_null', '2023-07-25 12:21:53.128253000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(8, 'auth', '0006_require_contenttypes_0002', '2023-07-25 12:21:53.155052000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(9, 'auth', '0007_alter_validators_add_error_messages', '2023-07-25 12:21:53.181554000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(10, 'auth', '0008_alter_user_username_max_length', '2023-07-25 12:21:53.206427000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(11, 'auth', '0009_alter_user_last_name_max_length', '2023-07-25 12:21:53.231629000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(12, 'auth', '0010_alter_group_name_max_length', '2023-07-25 12:21:53.257781000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(13, 'auth', '0011_update_proxy_permissions', '2023-07-25 12:21:53.283621000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(14, 'auth', '0012_alter_user_first_name_max_length', '2023-07-25 12:21:53.308950000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(15, 'dongtai_common', '0001_initial', '2023-07-25 12:21:53.337702000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(16, 'admin', '0001_initial', '2023-07-25 12:26:00.818747000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(17, 'admin', '0002_logentry_remove_auto_add', '2023-07-25 12:26:00.843293000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(18, 'admin', '0003_logentry_add_action_flag_choices', '2023-07-25 12:26:00.865496000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(19, 'authtoken', '0001_initial', '2023-07-25 12:26:00.889270000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(20, 'authtoken', '0002_auto_20160226_1747', '2023-07-25 12:26:00.916869000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(21, 'authtoken', '0003_tokenproxy', '2023-07-25 12:26:00.941297000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(22, 'captcha', '0001_initial', '2023-07-25 12:26:00.966500000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(23, 'captcha', '0002_alter_captchastore_id', '2023-07-25 12:26:00.993328000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(24, 'health_check_db', '0001_initial', '2023-07-25 12:26:01.017436000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(25, 'django_celery_beat', '0001_initial', '2023-07-25 12:26:01.039374000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(26, 'django_celery_beat', '0002_auto_20161118_0346', '2023-07-25 12:26:01.067768000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(27, 'django_celery_beat', '0003_auto_20161209_0049', '2023-07-25 12:26:01.090803000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(28, 'django_celery_beat', '0004_auto_20170221_0000', '2023-07-25 12:26:01.114745000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(29, 'django_celery_beat', '0005_add_solarschedule_events_choices', '2023-07-25 12:26:01.140750000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(30, 'django_celery_beat', '0006_auto_20180322_0932', '2023-07-25 12:26:01.166507000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(31, 'django_celery_beat', '0007_auto_20180521_0826', '2023-07-25 12:26:01.189412000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(32, 'django_celery_beat', '0008_auto_20180914_1922', '2023-07-25 12:26:01.213171000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(33, 'django_celery_beat', '0006_auto_20180210_1226', '2023-07-25 12:26:01.236002000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(34, 'django_celery_beat', '0006_periodictask_priority', '2023-07-25 12:26:01.257645000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(35, 'django_celery_beat', '0009_periodictask_headers', '2023-07-25 12:26:01.278845000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(36, 'django_celery_beat', '0010_auto_20190429_0326', '2023-07-25 12:26:01.302530000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(37, 'django_celery_beat', '0011_auto_20190508_0153', '2023-07-25 12:26:01.325078000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(38, 'django_celery_beat', '0012_periodictask_expire_seconds', '2023-07-25 12:26:01.350067000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(39, 'django_celery_beat', '0013_auto_20200609_0727', '2023-07-25 12:26:01.377458000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(40, 'django_celery_beat', '0014_remove_clockedschedule_enabled', '2023-07-25 12:26:01.401963000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(41, 'django_celery_beat', '0015_edit_solarschedule_events_choices', '2023-07-25 12:26:01.432434000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(42, 'sessions', '0001_initial', '2023-07-25 12:26:01.457106000');
INSERT IGNORE INTO django_migrations
(id, app, name, applied)
VALUES(43, 'db', '0001_initial', '2023-07-25 12:26:01.499305000');
CREATE TABLE IF NOT EXISTS `project_version_control` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键', `version` varchar(63) DEFAULT NULL COMMENT '版本号', `component_name` varchar(255) DEFAULT NULL COMMENT 'sql名', `component_version_hash` varchar(255) DEFAULT NULL COMMENT 'sql哈希值', `additional` text COMMENT '额外注释', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `project_version_control_UN` (`component_name`) ) ENGINE = InnoDB CHARSET = utf8mb4;
DELETE FROM project_version_control WHERE 1=1;
Loading