|
|
django 删除同步后的模块app数据同步数据
+ a7 G" W$ O$ g3 X. i
. X" `& m: J/ l+ \(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>python manage.py dbshell( Y- _- u5 V) H* r7 K
Welcome to the MariaDB monitor. Commands end with ; or \g.- }; R" C9 b- m) D' K) t
Your MariaDB connection id is 152
6 _3 t# P; O, e1 K8 xServer version: 11.5.1-MariaDB mariadb.org binary distribution0 G: s0 @! B/ I; `) r$ {/ J
4 F# _4 `5 b. c: E' k
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
4 K+ n2 A% |/ Q: _5 K" Z' ]
O. [$ w: r/ @; t* `# iType 'help;' or '\h' for help. Type '\c' to clear the current input statement.7 J! \8 T/ B" {% b
( V. y% j* ^0 m, Z* XMariaDB [tripsql]> show tables;' }6 s' E) A2 J6 n: r! E9 I
+-------------------------------+7 h/ V7 ?9 p6 `
| Tables_in_tripsql |6 F" \, b, D6 W; s
+-------------------------------+ U. @) m" d i2 j# P( r
| account_user |
1 _9 R7 W( ^( ?/ O4 j. K" H| account_user_groups |
) z1 g$ s) T$ D, D }/ p/ X4 t0 L| account_user_user_permissions |& \$ `$ E4 E9 U; S
| accounts_login_record |
( U4 J; |3 Q6 J7 |; y* N: \| accounts_user_profile |
p$ H' \9 Y- [* b& I| auth_group |; Q) d" L# z( M9 i' h
| auth_group_permissions |" N9 O1 u: p3 Z; h i c! S
| auth_permission |1 R) K& a; G. Q% n
| auth_user |
% z l! W( z4 P$ A: k/ S, d| auth_user_groups |
' U: m) ]9 \* x6 b+ ^5 T| auth_user_user_permissions |" u1 h! ?7 p0 {8 ], F" n* c
| django_admin_log |
/ g" i5 F' I8 u| django_content_type |1 m! b6 i& T$ |% P5 h
| django_migrations |- ~0 \2 V: ~; n! h
| django_session |
* F7 ]5 h) f8 K3 K/ {/ h| sight |
( l( Q# j1 S. D) F" @1 g: n, z| sight_comment |
+ X+ E4 Z0 b+ _6 {# {4 C# Y4 i| sight_info |9 Y3 b1 C, R0 f
| sight_ticket |* y: E: u& T g" P1 M
| system_image_related |
n& B3 Z g9 n6 ^9 Y, D# q. E) h0 N| system_slider |
. `, Y$ }6 q6 Q# c* C+-------------------------------+
2 M2 D# \# _2 Y* Q21 rows in set (0.002 sec)/ j! F% ]8 Z' `/ y: d: g# l
8 c7 N4 U+ O, B, p# `% N
0 |, Z/ g9 r& s p5 T
MariaDB [tripsql]> delete from django_migrations where app='order';- A9 h8 J* \ [
Query OK, 2 rows affected (0.004 sec)
+ f; f( ?2 R% v; n. G9 o4 B% K$ Q! ^! d- g0 c
MariaDB [tripsql]> exit
6 k% R1 ?% Q& j" sBye
n: K* u' a d9 s2 ]# _$ X- ]- U: J2 a+ {! _0 S; n5 x7 z% H1 R
(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>python manage.py migrate order
) I2 O" a. H, F8 R3 ~" ZOperations to perform:
1 U0 {% V" C& j0 c: U Apply all migrations: order
2 R- L R4 [. i# \! c* ^& m& TRunning migrations:
7 D* A) `& I4 V+ n; } Applying order.0001_initial... OK; w6 ^7 X( k0 y
( ^9 l* @. j+ \$ ?(python3.8.2-vitual) C:\Users\admin\Desktop\deskdirectory\trip>
0 ?1 N& J P0 u6 N这次成功同步过去了。. q: A9 x" k* y% w' J' M( M2 l
7 o+ r; |) f& s3 [* \, _% ?8 } O' f |
|