|
|
楼主 |
发表于 2026-5-26 09:26:16
|
显示全部楼层
MariaDB [loogcn_data]> show tables;
4 F. s( ^/ l5 F7 a+-------------------------------+
6 ^1 _2 u$ n" @| Tables_in_loogcn_data |
k" P' Z: u. G+ z) f: v4 x$ [5 Q/ j+-------------------------------+
, p, @( G9 w+ Z0 i! O. h: C6 a| account_user |
/ T1 O% x+ i, G* Q8 k| account_user_groups |+ j( v/ q- p5 x
| account_user_social |
5 [! r1 P* v" K5 t| account_user_user_permissions |* c A6 p7 V$ X, l2 S
| auth_group |* j6 X* Q* o* _
| auth_group_permissions |" R, u6 I7 o' c' }
| auth_permission |1 x& }; s/ D; ?+ W1 \% `
| django_admin_log |
8 m. ~) x' n( t5 Z8 W) k| django_content_type |2 o; n% u# x4 i4 \$ a% q% ~
| django_migrations | S6 L$ m% B& W. t J8 ?1 T
| django_session |, K8 g' |8 L( I$ l+ y1 \
+-------------------------------+
- n I" Z0 e" K3 q) g11 rows in set (0.001 sec)$ g8 B- m! O9 V" L- i& w5 X0 b% p
" E4 d$ Y/ m& t
MariaDB [loogcn_data]> select * from django_migrations;
$ i" i9 F" b% D- k% k5 \5 S, _+----+--------------+------------------------------------------+----------------------------+5 _7 [$ A$ ~, x8 D* u
| id | app | name | applied |4 c' k) R+ e6 u9 O# j+ ?9 e
+----+--------------+------------------------------------------+----------------------------+
- ]$ h6 c) @, |& v1 p2 O- R| 1 | contenttypes | 0001_initial | 2026-05-23 02:00:34.278182 |8 v: `( [! u1 x
| 2 | contenttypes | 0002_remove_content_type_name | 2026-05-23 02:00:34.505337 |. J0 q5 o, i2 v& A6 _
| 3 | auth | 0001_initial | 2026-05-23 02:00:35.411267 |! ?9 X- A5 Y1 x; Q/ A
| 4 | auth | 0002_alter_permission_name_max_length | 2026-05-23 02:00:35.567344 |; r. @) J. U7 w( P6 _
| 5 | auth | 0003_alter_user_email_max_length | 2026-05-23 02:00:35.573367 |6 s4 b0 a s8 V! k! k/ W; z& @
| 6 | auth | 0004_alter_user_username_opts | 2026-05-23 02:00:35.578785 |' f& Z' u S) l* b, t1 p
| 7 | auth | 0005_alter_user_last_login_null | 2026-05-23 02:00:35.584691 |% [! N, s' X2 l* r$ }$ c( p
| 8 | auth | 0006_require_contenttypes_0002 | 2026-05-23 02:00:35.585385 |
% r+ b5 ~* m F* _. |$ y| 9 | auth | 0007_alter_validators_add_error_messages | 2026-05-23 02:00:35.590374 |
- Y7 t) V. q X4 }. Z( y| 10 | auth | 0008_alter_user_username_max_length | 2026-05-23 02:00:35.595604 |
8 Z7 u, i8 {& G# [' `| 11 | auth | 0009_alter_user_last_name_max_length | 2026-05-23 02:00:35.605769 |
) u- ]% C- M7 k, g2 m| 12 | auth | 0010_alter_group_name_max_length | 2026-05-23 02:00:35.705389 |
+ W, b7 _9 `2 x. l8 ?8 n7 || 13 | auth | 0011_update_proxy_permissions | 2026-05-23 02:00:35.711556 |
2 R1 ]4 o6 B i6 x% K1 G| 14 | auth | 0012_alter_user_first_name_max_length | 2026-05-23 02:00:35.716632 |
, P X o: i8 X| 15 | accounts | 0001_initial | 2026-05-23 02:00:37.445274 |0 N6 R0 ?2 B T) G2 p& a, h
| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |/ K5 s/ A$ k! L1 U% b! I' y
| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |
+ l' A" \# k( P' C4 H" I| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |
5 l) m ^( B: ^9 G+ y! D( d# s| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |
& {7 i5 P' C4 S9 H+----+--------------+------------------------------------------+----------------------------+2 Q% M2 L6 _8 y: k
19 rows in set (0.001 sec)
+ b- u' k6 s6 w) ^5 S# Z
& \/ f( H8 Y$ g& i& M. TMariaDB [loogcn_data]> delete from django_migrations where app='accounts';
5 h1 j7 c0 u( O, W7 r1 W2 mQuery OK, 1 row affected (0.001 sec)) m; W, w3 u. ]9 h/ z: t
. b& `; C; d& jMariaDB [loogcn_data]> delete from django_migrations where app='contenttypes';
" h3 `0 q/ N% K1 c6 g4 U9 nQuery OK, 2 rows affected (0.000 sec)) a* T" n2 Y& K% @8 [
7 n6 h D$ o8 Y6 B: g
MariaDB [loogcn_data]> delete from django_migrations where app='contenttypes ';' x" N4 E. j; T9 F& U% j) X
Query OK, 0 rows affected (0.000 sec)
) g* `' u0 {: ?9 `# B
M* C4 Z6 d& y6 s& Q/ _MariaDB [loogcn_data]> select * from django_migrations;$ s$ X, M; g1 L& g$ @1 _$ B- Y
+----+----------+------------------------------------------+----------------------------+
- _! b- u/ y4 B4 r! U9 E) C! p| id | app | name | applied |
2 j& z$ f( H/ ~. G1 H+----+----------+------------------------------------------+----------------------------+
# D! ~$ O- ^/ r* ~& || 3 | auth | 0001_initial | 2026-05-23 02:00:35.411267 |0 {- N `3 q/ a. j8 k& @; W
| 4 | auth | 0002_alter_permission_name_max_length | 2026-05-23 02:00:35.567344 |
G4 l; ~) I2 x% f| 5 | auth | 0003_alter_user_email_max_length | 2026-05-23 02:00:35.573367 |
& @/ T' e4 p. u| 6 | auth | 0004_alter_user_username_opts | 2026-05-23 02:00:35.578785 |
) L1 t7 L7 I2 d: }| 7 | auth | 0005_alter_user_last_login_null | 2026-05-23 02:00:35.584691 |4 S+ f' W2 ^( \0 B
| 8 | auth | 0006_require_contenttypes_0002 | 2026-05-23 02:00:35.585385 |
- a2 ~' L3 Z! Y) m! d: }) o4 k5 H| 9 | auth | 0007_alter_validators_add_error_messages | 2026-05-23 02:00:35.590374 |
# k$ U7 ?( ^5 e/ e O, c| 10 | auth | 0008_alter_user_username_max_length | 2026-05-23 02:00:35.595604 |, B6 x1 _4 r0 A& m1 A% W$ `) N) z `2 t
| 11 | auth | 0009_alter_user_last_name_max_length | 2026-05-23 02:00:35.605769 |
$ {: X7 {2 b9 d2 D, O| 12 | auth | 0010_alter_group_name_max_length | 2026-05-23 02:00:35.705389 |; F( K" w$ F$ L, [7 k
| 13 | auth | 0011_update_proxy_permissions | 2026-05-23 02:00:35.711556 |( {( ?' X) D' h4 `$ `0 a$ s
| 14 | auth | 0012_alter_user_first_name_max_length | 2026-05-23 02:00:35.716632 |
" x+ Q$ O0 U2 y- f8 T) U8 v| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |
; c, Y) ~' u3 w* f) l% \| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |
- h n2 Y5 p2 F1 }| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |
( f: d+ d% Z. g- M$ S| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |
* [) u, y4 G5 N" W& m# F+----+----------+------------------------------------------+----------------------------+% c Q1 Z& ~4 q: H
16 rows in set (0.000 sec)1 X3 V/ Y0 v" m: D, K& k! T& @
5 H# `4 y+ U# N3 T& B
MariaDB [loogcn_data]> delete from django_migrations where app=' sessions ';
) s% R1 z# J; p* A: Q; `Query OK, 0 rows affected (0.001 sec)- Q y' O8 n7 ]3 K$ M; _
! w }5 u& ~" E; F5 f8 t2 UMariaDB [loogcn_data]> delete from django_migrations where app='auth';
) ?7 r' |% g ^% p$ K5 YQuery OK, 12 rows affected (0.001 sec)
/ q; b$ P; O: O& D, P8 Z! x+ L: g- q% p; d
MariaDB [loogcn_data]> delete from django_migrations where app='auth' and app='admin';% l |9 [. H0 t8 L; }5 L, d
Query OK, 0 rows affected (0.001 sec)$ A; P, Z# s+ L; |
$ s5 s( m7 e. y% I$ t
MariaDB [loogcn_data]> select * from django_migrations;
6 h% ]9 c8 `- e6 |+----+----------+---------------------------------------+----------------------------+6 _/ Z6 L; D3 p% ^4 G3 G. \ \
| id | app | name | applied |/ Y4 H+ A! f6 M+ @1 |
+----+----------+---------------------------------------+----------------------------+
7 M( c$ x1 `# K# @% ^| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |+ X3 E1 x9 O$ E9 e# Z
| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |
& z6 {2 A; d7 j g* w' O| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |
1 W7 G% u. {- U4 O| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |+ ~0 z, T+ H1 N8 C" O
+----+----------+---------------------------------------+----------------------------+3 `# B4 B1 v4 d% G+ W4 K$ I
4 rows in set (0.001 sec), S) i( @+ l P
4 |3 l2 N8 q0 J0 N4 f
MariaDB [loogcn_data]> delete from django_migrations where app='admin';
r, ~4 A. l, u, ^6 bQuery OK, 3 rows affected (0.000 sec)
. {; \- r- Y9 O U7 ]
8 d. m k0 t9 ]% G# m2 i# }2 Y0 W9 i# cMariaDB [loogcn_data]> select * from django_migrations;
C0 Z' U8 o. f+----+----------+--------------+----------------------------+
7 c" `' [& c2 s4 F, U| id | app | name | applied |
0 w, Z. @# ^. }5 t" \+----+----------+--------------+----------------------------+
, N% @/ ?* P- l) o' A| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |# J. r( f# y& b: d
+----+----------+--------------+----------------------------+9 B+ s) E0 ^6 R) Q
1 row in set (0.000 sec)
% L; |5 h1 l" [& M, P0 c3 G
6 a/ w- A& m3 {& K3 |( m, v! tMariaDB [loogcn_data]> delete from django_migrations where app='sessions';2 p0 u: A: ~! l- ?7 w0 \# Y# z4 G
Query OK, 1 row affected (0.001 sec)
T0 R- h/ M9 |+ I1 I7 [) s @8 @; s( r
MariaDB [loogcn_data]>
. v. z. d: d; w/ _6 J 清空所有的表,
2 L1 O) x6 S) w8 d8 l C |
|