perf: 优化插件字段的default value

This commit is contained in:
xiaojunnuo
2024-08-06 11:23:23 +08:00
parent c3f04a80fd
commit 24c7be2c9c
6 changed files with 24 additions and 18 deletions
+12 -6
View File
@@ -1,18 +1,24 @@
AUTOINCREAMENT
GENERATED BY DEFAULT AS IDENTITY
## sqlite与postgres不同点
1.
sl: AUTOINCREAMENT
pg: GENERATED BY DEFAULT AS IDENTITY
2.
datetime
timestamp
3.
update sqlite_sequence set seq = 1000 where name = 'sys_role' ;
select setval('sys_role_id_seq', 1000);
4.
"disabled" boolean DEFAULT (0)
"disabled" boolean DEFAULT (false)
5.
last_insert_rowid()
LASTVAL()
6.
sl: integer
pg: bigint