diff options
| author | Paul-Christian Volkmer | 2024-01-18 14:13:15 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2024-01-18 14:13:15 +0100 |
| commit | 30cf0fd22e492fd2b0052ddfd5b808da51b36052 (patch) | |
| tree | 5745f1a2be493e9149cc986833d904bd62e01bfc /src/main/resources/db/migration | |
| parent | 531a8589db2bf170e6272602ccb4a3c4457186d8 (diff) | |
feat #29: add initial support for mtbfile api 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 |
