generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
backend/controller/sql/testdata/java/database/src/main/db/testdb/20241103205514_postgres.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,11 @@ | ||
-- migrate:up | ||
CREATE TABLE requests | ||
( | ||
id SERIAL PRIMARY KEY NOT NULL, | ||
data TEXT, | ||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | ||
); | ||
CREATE SEQUENCE requests_seq; | ||
-- migrate:down | ||
DROP TABLE requests; |
1 change: 1 addition & 0 deletions
1
...testdata/java/database/src/main/java/xyz/block/ftl/java/test/database/InsertResponse.java
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
package xyz.block.ftl.java.test.database; | ||
|
||
public class InsertResponse { | ||
|
||
} |
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
1 change: 0 additions & 1 deletion
1
backend/controller/sql/testdata/java/database/src/main/resources/application.properties
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
quarkus.hibernate-orm.database.generation=drop-and-create | ||
quarkus.datasource.testdb.db-kind=postgresql | ||
quarkus.hibernate-orm.datasource=testdb |
17 changes: 17 additions & 0 deletions
17
backend/controller/sql/testdata/java/mysql/src/main/db/testdb/20241103205514_mysql.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,17 @@ | ||
-- migrate:up | ||
CREATE TABLE requests ( | ||
id bigint NOT NULL, | ||
created_at datetime(6), | ||
data VARCHAR(255), | ||
updated_at datetime(6), | ||
PRIMARY KEY (id) | ||
) engine=InnoDB; | ||
|
||
CREATE TABLE requests_SEQ ( | ||
next_val bigint | ||
) engine=InnoDB; | ||
|
||
INSERT INTO requests_SEQ VALUES ( 1 ); | ||
|
||
-- migrate:down | ||
DROP TABLE requests; |
5 changes: 3 additions & 2 deletions
5
...ller/sql/testdata/java/mysql/src/main/java/xyz/block/ftl/java/test/database/Database.java
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
1 change: 0 additions & 1 deletion
1
backend/controller/sql/testdata/java/mysql/src/main/resources/application.properties
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
quarkus.hibernate-orm.database.generation=drop-and-create | ||
quarkus.datasource.testdb.db-kind=mysql | ||
quarkus.hibernate-orm.datasource=testdb |
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
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