diff options
| author | Paul-Christian Volkmer | 2024-01-18 14:29:52 +0100 |
|---|---|---|
| committer | GitHub | 2024-01-18 14:29:52 +0100 |
| commit | 358373cf70212b97044e9714ad1b913fcd24e6bc (patch) | |
| tree | edabf0677d519437dfe78bdb0c8cd7ba2d217fd3 /src/main/resources/db/migration | |
| parent | 531a8589db2bf170e6272602ccb4a3c4457186d8 (diff) | |
| parent | 27a62321faec1087048e624fe68ab53c4fdbc0a3 (diff) | |
Merge pull request #30 from CCC-MF/issue_29
Issue #29: Unterstützung für Endpoint-Tokens
Diffstat (limited to 'src/main/resources/db/migration')
| -rw-r--r-- | src/main/resources/db/migration/mariadb/V0_2_0__Tokens.sql | 8 | ||||
| -rw-r--r-- | src/main/resources/db/migration/postgresql/V0_2_0__Tokens.sql | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/main/resources/db/migration/mariadb/V0_2_0__Tokens.sql b/src/main/resources/db/migration/mariadb/V0_2_0__Tokens.sql new file mode 100644 index 0000000..98e27d9 --- /dev/null +++ b/src/main/resources/db/migration/mariadb/V0_2_0__Tokens.sql @@ -0,0 +1,8 @@ +CREATE TABLE IF NOT EXISTS token +( + id int auto_increment primary key, + name varchar(255) not null, + username varchar(255) not null unique, + password varchar(255) not null, + created_at datetime default utc_timestamp() not null +);
\ No newline at end of file diff --git a/src/main/resources/db/migration/postgresql/V0_2_0__Tokens.sql b/src/main/resources/db/migration/postgresql/V0_2_0__Tokens.sql new file mode 100644 index 0000000..c89c52e --- /dev/null +++ b/src/main/resources/db/migration/postgresql/V0_2_0__Tokens.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS token +( + id serial, + name varchar(255) not null, + username varchar(255) not null unique, + password varchar(255) not null, + created_at timestamp with time zone default now() not null, + PRIMARY KEY (id) +);
\ No newline at end of file |
