|
|
楼主 |
发表于 2026-5-26 09:26:16
|
显示全部楼层
MariaDB [loogcn_data]> show tables;. ~, I/ E; J/ L; x) x" ^0 i, Q
+-------------------------------+% e* J" i* E7 v
| Tables_in_loogcn_data |6 |9 [' T2 f C% ~2 J
+-------------------------------+* ?8 L% W6 Y N) _& g7 f0 W
| account_user | l# `$ ] b" ]
| account_user_groups | S# n9 r& A2 |' g
| account_user_social |
+ x3 `) ^4 c) Y+ O$ X0 L. S| account_user_user_permissions |
- K* w. y. ?5 O' F' l3 }/ j! Z| auth_group |
3 L" T# U/ _5 f/ ~5 f| auth_group_permissions |
* Q+ Y% \- f' g5 l| auth_permission |, H6 E6 D1 m @/ G6 m
| django_admin_log |- A0 _5 g. X; y9 A
| django_content_type |
* W0 F4 o( V: U8 D| django_migrations |
9 f0 `. j" N+ S$ E8 q7 E: D& _1 D| django_session |* g& @6 N) E- u5 n3 ]) @- [
+-------------------------------+% B' g2 {" Z# m8 c3 f/ }- Z
11 rows in set (0.001 sec)
' t' q! l1 _# m L( k1 [9 I
e3 z8 ^1 V/ l! |$ ^5 rMariaDB [loogcn_data]> select * from django_migrations;
1 S3 l' k- F( }- o# ]7 ?6 N+----+--------------+------------------------------------------+----------------------------+5 y+ |% w# T1 m4 W, T
| id | app | name | applied |7 b9 I, T/ L Z* N
+----+--------------+------------------------------------------+----------------------------+- v+ m2 Q, {; L2 T! j5 J- |
| 1 | contenttypes | 0001_initial | 2026-05-23 02:00:34.278182 |
" d- `0 e! c8 S/ T6 h# s6 |: s8 M- z| 2 | contenttypes | 0002_remove_content_type_name | 2026-05-23 02:00:34.505337 |
% Y# ^' W2 e) `: u+ ^| 3 | auth | 0001_initial | 2026-05-23 02:00:35.411267 |! f" n( `$ E7 {2 B
| 4 | auth | 0002_alter_permission_name_max_length | 2026-05-23 02:00:35.567344 |
4 [! J: E/ Z8 z3 X) e: g8 L| 5 | auth | 0003_alter_user_email_max_length | 2026-05-23 02:00:35.573367 |, X5 n' {' w. S
| 6 | auth | 0004_alter_user_username_opts | 2026-05-23 02:00:35.578785 |$ N- A1 A, m0 o' J/ A7 B1 T
| 7 | auth | 0005_alter_user_last_login_null | 2026-05-23 02:00:35.584691 |
$ [: j- ?1 s' K| 8 | auth | 0006_require_contenttypes_0002 | 2026-05-23 02:00:35.585385 |
; Y8 i$ L4 ?) z4 Q. M1 v| 9 | auth | 0007_alter_validators_add_error_messages | 2026-05-23 02:00:35.590374 |
2 }8 |0 j! G& K| 10 | auth | 0008_alter_user_username_max_length | 2026-05-23 02:00:35.595604 |
@# A$ B2 s! @$ D2 R7 e| 11 | auth | 0009_alter_user_last_name_max_length | 2026-05-23 02:00:35.605769 |
, Z$ r; G) G8 ~. S/ T5 m* S+ [) { b| 12 | auth | 0010_alter_group_name_max_length | 2026-05-23 02:00:35.705389 |
5 e7 @, W" x% A| 13 | auth | 0011_update_proxy_permissions | 2026-05-23 02:00:35.711556 |
$ `; a7 {4 c& p6 ?& E/ k% {* e" ?6 `| 14 | auth | 0012_alter_user_first_name_max_length | 2026-05-23 02:00:35.716632 |
3 P; X, T) r- `| 15 | accounts | 0001_initial | 2026-05-23 02:00:37.445274 |% G+ Q: t [, p) k" I; |
| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |
- ~$ n# P8 U+ e+ _, m* ~$ i| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |
! T: ^ \% h" F# Q+ g# y% b| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |+ D' P0 ]" H, V. R: p
| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |: d- A; S9 N" k
+----+--------------+------------------------------------------+----------------------------+
+ Q1 H2 @ l* e( ]& g, X; Q19 rows in set (0.001 sec)
_& H# n1 R; f$ F0 p" r7 V1 g V; I$ P: j4 I+ n& H, x+ ~
MariaDB [loogcn_data]> delete from django_migrations where app='accounts';
; Z) F; y/ y9 s+ c+ I* nQuery OK, 1 row affected (0.001 sec)
' y+ x" E7 }, J3 `! l! ~5 z: }+ U2 ^0 F* \; ]
MariaDB [loogcn_data]> delete from django_migrations where app='contenttypes';
! p5 m! k2 _' U; c* O( a( sQuery OK, 2 rows affected (0.000 sec)0 U( ?4 K* a( a% r
' `/ ^& [ m1 C* Y9 iMariaDB [loogcn_data]> delete from django_migrations where app='contenttypes ';
( b& y0 i/ B, p3 p3 O5 d WQuery OK, 0 rows affected (0.000 sec)' t, ^+ b$ g2 B# j, N6 H5 ]/ ~
6 G* M& R8 ]; W' w9 @MariaDB [loogcn_data]> select * from django_migrations;0 ^0 P& h' V1 ]& k6 T- o6 `
+----+----------+------------------------------------------+----------------------------+: g4 \' V" G! s% l
| id | app | name | applied |) L' W- ^. d! J& W
+----+----------+------------------------------------------+----------------------------+# S$ g# T' R4 V' p, a) y
| 3 | auth | 0001_initial | 2026-05-23 02:00:35.411267 |
, e) g! m' L" b. n4 l/ S| 4 | auth | 0002_alter_permission_name_max_length | 2026-05-23 02:00:35.567344 |
' m/ {, Y) s0 z7 R| 5 | auth | 0003_alter_user_email_max_length | 2026-05-23 02:00:35.573367 |& k1 q) C) P3 z% P* h
| 6 | auth | 0004_alter_user_username_opts | 2026-05-23 02:00:35.578785 |2 K' M* A; _0 f$ {& A+ B. E! z
| 7 | auth | 0005_alter_user_last_login_null | 2026-05-23 02:00:35.584691 |, m6 P2 p, n7 U, p2 }; U& }
| 8 | auth | 0006_require_contenttypes_0002 | 2026-05-23 02:00:35.585385 |
. o( A, Q' C& P( @: E) o( d| 9 | auth | 0007_alter_validators_add_error_messages | 2026-05-23 02:00:35.590374 |3 X4 D" u6 H# t8 J3 ~2 P j
| 10 | auth | 0008_alter_user_username_max_length | 2026-05-23 02:00:35.595604 |: G3 M8 m8 O3 k5 G5 r2 L: E" G
| 11 | auth | 0009_alter_user_last_name_max_length | 2026-05-23 02:00:35.605769 |) B2 x' r1 ~7 O; y
| 12 | auth | 0010_alter_group_name_max_length | 2026-05-23 02:00:35.705389 |
9 Y1 \0 N, q( J8 C| 13 | auth | 0011_update_proxy_permissions | 2026-05-23 02:00:35.711556 |+ R" Z; I0 F6 ?0 w
| 14 | auth | 0012_alter_user_first_name_max_length | 2026-05-23 02:00:35.716632 |) g, s8 k6 J6 _: ]6 L! f& D* g* e! r
| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |
. T8 M3 W {3 o| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |
4 @0 n6 \ S, _9 v: \1 {| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |$ K% V, P; _& I5 p2 D: s
| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |
' ?; c/ ~( g+ M; k0 V. R' E+----+----------+------------------------------------------+----------------------------+" j; Q2 w/ s: K S
16 rows in set (0.000 sec)
3 y8 c4 c* |) p9 [4 A
. x& N# P [" K- o. Z% CMariaDB [loogcn_data]> delete from django_migrations where app=' sessions ';" r2 G% ?3 E$ v* P/ j S& j, G
Query OK, 0 rows affected (0.001 sec)# r, Z5 A2 |- b9 n
# S9 k. w" ~9 L% S& F
MariaDB [loogcn_data]> delete from django_migrations where app='auth';5 V9 y5 Y+ b5 G n) M
Query OK, 12 rows affected (0.001 sec)# _; T7 R% A9 Y! y2 ?+ |
9 [" J. W. r% Y# I( ~: [
MariaDB [loogcn_data]> delete from django_migrations where app='auth' and app='admin';, [! }) e" }5 ~% ~: M
Query OK, 0 rows affected (0.001 sec)
1 w2 o; ]$ R/ d, [( g6 d( t4 l0 k+ K* O5 l
MariaDB [loogcn_data]> select * from django_migrations;
6 ]5 Z& g# l) Q4 z+----+----------+---------------------------------------+----------------------------+
2 ?9 o$ N; h U| id | app | name | applied |
, f- X6 v( t3 E+ j6 [+----+----------+---------------------------------------+----------------------------+
/ u& R4 D! p5 o$ l| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |
! s" N4 ]! D2 _2 X8 F* E| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |0 o j+ W# f, @0 P5 W4 G
| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |
' n/ ~ r0 a; C. x8 T$ ^3 _| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |
1 G9 Q3 K+ P. D2 d9 S+----+----------+---------------------------------------+----------------------------+7 D5 O A! X- n) x
4 rows in set (0.001 sec)
1 o1 \4 V2 e/ p- x: y; z+ g Q, _( {/ Y! }3 V/ `
MariaDB [loogcn_data]> delete from django_migrations where app='admin';6 D M3 |) V" G# @
Query OK, 3 rows affected (0.000 sec)/ r& r$ U8 H S5 a
% }1 [2 B1 n3 u9 eMariaDB [loogcn_data]> select * from django_migrations;
/ [% w0 Z n1 Y+ f7 w+----+----------+--------------+----------------------------+
- Q' ~* T) F; W( _9 V# ^| id | app | name | applied |* U3 X! I6 |' H
+----+----------+--------------+----------------------------+
1 C8 Y0 p5 t# f| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |
/ ~. T$ m3 _; `/ H' {8 W" c+----+----------+--------------+----------------------------+
" g9 x) k) ~8 c1 row in set (0.000 sec)8 N% C/ R4 A+ g, T( N
2 [7 T, t1 @6 j3 U: t
MariaDB [loogcn_data]> delete from django_migrations where app='sessions';: o k- R: P2 ?, n; v$ R' Y
Query OK, 1 row affected (0.001 sec)- F1 d' c# F" H
$ g3 N7 I) O7 ]7 G9 X
MariaDB [loogcn_data]>, @ I2 v/ p {5 O$ X9 z+ l
清空所有的表,, G3 Y) q- J6 Q$ g. s
|
|