forked from DataLinkDC/dinky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] support pgsql catalog (DataLinkDC#4000)
Co-authored-by: Zzm0809 <[email protected]> Co-authored-by: GH Action - Upstream Sync <[email protected]>
- Loading branch information
1 parent
7c0e38e
commit 9254e4c
Showing
73 changed files
with
13,313 additions
and
155 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
dinky-admin/src/main/resources/db/migration/pgsql/V20241127.1.3.0__release.sql
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
41 changes: 41 additions & 0 deletions
41
dinky-admin/src/main/resources/db/migration/postgresql/V20241203.1.2.0__release.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
|
||
|
||
-- Table structure for public.dinky_user | ||
|
||
CREATE TABLE IF NOT EXISTS public.dinky_user_backup | ||
( | ||
id serial PRIMARY KEY NOT NULL, | ||
username varchar(50) NOT NULL, | ||
user_type int DEFAULT 1, | ||
password varchar(50), | ||
nickname varchar(50), | ||
worknum varchar(50), | ||
avatar bytea, | ||
mobile varchar(20), | ||
enabled boolean NOT NULL DEFAULT true, | ||
super_admin_flag boolean DEFAULT false, | ||
is_delete boolean NOT NULL DEFAULT false, | ||
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
); | ||
COMMENT ON TABLE public.dinky_user_backup IS 'user'; | ||
COMMENT ON COLUMN public.dinky_user_backup.id IS 'id'; | ||
COMMENT ON COLUMN public.dinky_user_backup.username IS 'username'; | ||
COMMENT ON COLUMN public.dinky_user_backup.password IS 'password'; | ||
COMMENT ON COLUMN public.dinky_user_backup.nickname IS 'nickname'; | ||
COMMENT ON COLUMN public.dinky_user_backup.worknum IS 'worknum'; | ||
COMMENT ON COLUMN public.dinky_user_backup.avatar IS 'avatar'; | ||
COMMENT ON COLUMN public.dinky_user_backup.mobile IS 'mobile phone'; | ||
COMMENT ON COLUMN public.dinky_user_backup.enabled IS 'enabled'; | ||
COMMENT ON COLUMN public.dinky_user_backup.super_admin_flag IS 'is super admin(0:false,1true)'; | ||
|
||
|
||
insert into public.dinky_user_backup(id, username, user_type, password, nickname, worknum, avatar, mobile, enabled, super_admin_flag, is_delete, create_time, update_time) | ||
select id, username, user_type, password, nickname, worknum, avatar, mobile, enabled, | ||
case when super_admin_flag = 0 then false else true end as super_admin_flag | ||
, is_delete, create_time, update_time | ||
from public.dinky_user; | ||
|
||
drop table if exists public.dinky_user; | ||
alter table public.dinky_user_backup rename to dinky_user; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.