易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 64|回复: 0
收起左侧

django 删除同步后的模块app数据同步数据

[复制链接]
发表于 2025-8-18 09:11:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
django 删除同步后的模块app数据同步数据
6 y2 H8 ~  m% H8 Z- h5 y$ a& s8 {2 a9 o. b1 Z  l8 O
(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>python manage.py dbshell
2 j& o, `; }* n; R! X) q! i! N2 z; XWelcome to the MariaDB monitor.  Commands end with ; or \g.
5 V0 F$ R- ?. ~. ]' E2 CYour MariaDB connection id is 152
1 t1 U# |3 e# OServer version: 11.5.1-MariaDB mariadb.org binary distribution
* l! q; c/ c* U+ L2 ~) T6 T+ `% W% B/ z, D" @1 ]
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.+ e7 b1 u# q0 P4 E4 R2 M; `

; w3 b* W/ E/ aType 'help;' or '\h' for help. Type '\c' to clear the current input statement.9 B+ J2 c& A8 m" o

4 R$ {9 u- G) e, E. E7 CMariaDB [tripsql]> show tables;
0 \7 R6 F: {% E" d+-------------------------------+
+ c  R( K7 y5 [8 E| Tables_in_tripsql             |
: F( M! _  `& q- d+-------------------------------+
: a- ^1 s' {! S1 c% ~| account_user                  |
& D5 ^. \: Z- _; s| account_user_groups           |  ?% A, n# G3 r1 X' Q
| account_user_user_permissions |& _# F3 G# _2 \
| accounts_login_record         |* G2 x- b' Y2 x8 _, e2 Z# l
| accounts_user_profile         |2 \* t1 }: z6 T
| auth_group                    |
/ m) |- H6 o( t5 ]0 F' q, A7 [8 ~| auth_group_permissions        |# U7 _, ]+ e' r
| auth_permission               |
& z5 |5 T& F( ^| auth_user                     |
- T$ F  D% v; ~3 r1 X& X; K| auth_user_groups              |+ M( y; X. O' _) x
| auth_user_user_permissions    |
% L$ P: h5 i& M; B" N8 E| django_admin_log              |  r# f) S4 v% C. k9 D. a
| django_content_type           |
' s5 Y# H& m6 Y| django_migrations             |/ R. o  E( `( l
| django_session                |  m2 o! P- d6 ~" f: `, _2 z# w
| sight                         |
) b9 @3 s9 l  Y  w| sight_comment                 |
! p! p3 K4 ^/ x3 v( z) R| sight_info                    |  Z' M7 |1 c. G5 O* B
| sight_ticket                  |$ E3 m( V8 y: @$ @5 ]" A
| system_image_related          |! B( z5 e! i# z' a& a
| system_slider                 |, h+ I1 X7 c- X" f+ P3 s- I
+-------------------------------+- ?  ^/ L  M! W" O% y0 M
21 rows in set (0.002 sec)7 w: {% z( U- a9 u

4 l% a- g) z. g% E' G
5 f0 ^& e6 }* `( ]2 I1 `MariaDB [tripsql]> delete from django_migrations where app='order';) s. a& @; Y: K2 k- X. n' D0 i
Query OK, 2 rows affected (0.004 sec)
; I/ G( ?5 @# K1 M  a- U" _8 `- N' ~* A8 t6 a5 y1 \
MariaDB [tripsql]> exit( G* `, @" r) g/ P' w1 q
Bye& ~$ b5 X+ B9 k' m
8 z2 T4 N7 D' O
(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>python manage.py migrate order
8 y' y% K, V, EOperations to perform:# j' V. L- k/ o4 \
  Apply all migrations: order
- ?- T) a# P$ P- D( n" ORunning migrations:
4 X6 ]2 P/ V, F- P3 R3 X$ _  Applying order.0001_initial... OK
/ N6 h6 U: s2 A" }6 Y
$ F0 g1 p0 }5 `(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>
4 X2 C6 [, J  N* [2 @这次成功同步过去了。
: ?) b( M4 _# B7 ^! q6 J- l- }6 W9 L' F* F' \
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 20:18 , Processed in 0.047665 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表