|
|
django 删除同步后的模块app数据同步数据
5 L6 p) g7 X' i9 m( o( l' m) G) h0 j/ t
(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>python manage.py dbshell4 n# X; A! q. t q8 \( M
Welcome to the MariaDB monitor. Commands end with ; or \g.; T I* z: O/ a, D$ e' s1 V# |
Your MariaDB connection id is 152/ i7 O& L' B. c x
Server version: 11.5.1-MariaDB mariadb.org binary distribution
0 y9 y9 T1 ?" p+ @6 g8 k, o0 r4 y5 D# i8 }0 R4 s- N: s
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.4 e* c! @9 {* e
+ P( h7 ~4 g" M. b; }. `
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.7 i. V$ p/ s5 Y. S1 H
+ }. a4 ~$ C, P5 ] b* `; dMariaDB [tripsql]> show tables;
7 Q) j/ ^5 l" r6 Z& `- ]# {- c0 o" X+-------------------------------+6 V' R8 S9 |7 C# s& a5 l
| Tables_in_tripsql |& K6 v1 S: Y0 E0 D% l
+-------------------------------+
9 f8 _, G3 J% [ B- |: e| account_user | M# ~/ K7 n2 d* p
| account_user_groups |) Q6 G1 O1 R) ]$ m, w
| account_user_user_permissions |
% [; |8 e7 K j9 N: q( Y9 }4 ?| accounts_login_record |
: ^: T/ R& J1 R m7 ~' b$ |7 p| accounts_user_profile | @% p7 k9 `2 G
| auth_group |6 k4 b3 | q6 l8 M: n- L R
| auth_group_permissions |
. l4 }% ^- d7 L4 I3 p6 K| auth_permission |) x; D$ k$ B# S1 w7 g( B% y G) b% ?
| auth_user |
+ g8 @+ \, Y" H5 N| auth_user_groups |
2 b5 q( l3 ?4 q, @, N$ l- K| auth_user_user_permissions |
+ h1 Y _; ^5 E! P J| django_admin_log | T9 P# X8 u( ^8 E% U3 _( g
| django_content_type |, W/ G' {) Y- Q/ h$ U* l2 c
| django_migrations |2 k% l* w' U$ f9 f& ?! X
| django_session |* c; `- ]/ ]) C8 I, b" X
| sight |
2 l% w& C; ]5 x7 m| sight_comment |
j7 d$ V4 B( l) \# P$ K| sight_info |! P+ m _* q$ M9 O0 h
| sight_ticket |
) g! b+ n+ [+ o& F4 M4 V) u+ @* y| system_image_related |
6 X' b1 [, |9 t| system_slider |( U6 g) k9 `( h% ^4 L/ R6 i
+-------------------------------+0 p' H. E% n1 l3 K
21 rows in set (0.002 sec)8 e! K6 K3 d9 B1 m& P+ v! [
! j5 M! U: z |# V, |
( B6 I9 x5 w. ?MariaDB [tripsql]> delete from django_migrations where app='order';
0 i. |4 K' B0 q# J3 YQuery OK, 2 rows affected (0.004 sec)
% y K( X: v1 Y9 n6 M- G7 K9 l4 b5 O& k; q1 ^
MariaDB [tripsql]> exit
( w. U! I; Y6 k4 x* \& sBye0 v2 N, Q5 {2 B
" V& W' v2 j& k) `- ?
(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>python manage.py migrate order
6 o+ R& M' _4 Y) F' \2 FOperations to perform:$ Y. B; J8 [& O4 h6 h
Apply all migrations: order5 k$ Y( M! a$ P3 C; D
Running migrations:
% S9 E* B/ O& r3 ~' U/ R9 B& H Applying order.0001_initial... OK
- G, F# _8 h# Y$ f3 _, M0 ^6 k h9 q$ J
(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>
R; N# X! }* ?, T这次成功同步过去了。1 e3 f N; G) x9 T# i% R* S
& `* N4 b3 N+ F& f: k |
|