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
5674a45
commit 52d3bc7
Showing
71 changed files
with
13,313 additions
and
77 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
61 changes: 61 additions & 0 deletions
61
dinky-catalog/dinky-catalog-postgres/dinky-catalog-postgres-1.14/pom.xml
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,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to You under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.dinky</groupId> | ||
<artifactId>dinky-catalog-postgres</artifactId> | ||
<version>${revision}</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>dinky-catalog-postgres-1.14</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Dinky : Catalog : Postgres 1.14</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.dinky</groupId> | ||
<artifactId>dinky-common</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.dinky</groupId> | ||
<artifactId>dinky-flink-1.14</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.13.2</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<configuration> | ||
<!-- 指定打包的jar包输出路径 --> | ||
<outputDirectory>${project.parent.parent.parent.basedir}/build/extends</outputDirectory> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.