aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/schema-sqlserver.sql
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-02-03 06:39:25 +0300
committerGravatar Vitaly Takmazov2023-02-03 06:39:25 +0300
commit89f20b0ff36c8413adc2aa9e3c5226ae2eed2101 (patch)
treefe56fa9f8de597ff313c334b69ffafe5adf0b95d /src/main/resources/schema-sqlserver.sql
parent73b8c2dc544df207d8c7b9e36d20955ff1d88577 (diff)
messages_txt -> messages
Diffstat (limited to 'src/main/resources/schema-sqlserver.sql')
-rw-r--r--src/main/resources/schema-sqlserver.sql10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/resources/schema-sqlserver.sql b/src/main/resources/schema-sqlserver.sql
index c28c318e..a8d04cdf 100644
--- a/src/main/resources/schema-sqlserver.sql
+++ b/src/main/resources/schema-sqlserver.sql
@@ -125,6 +125,9 @@ CREATE TABLE messages (
hidden smallint DEFAULT (0) NOT NULL,
likes smallint DEFAULT (0) NOT NULL,
updated datetimeoffset DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ repliesby varchar(max),
+ txt varchar(max) NOT NULL,
+ updated_at datetimeoffset DEFAULT CURRENT_TIMESTAMP NOT NULL,
FOREIGN KEY (user_id) REFERENCES users(id)
);
CREATE TABLE messages_access (
@@ -146,13 +149,6 @@ CREATE TABLE messages_tags (
tag_id bigint NOT NULL,
FOREIGN KEY (message_id) REFERENCES messages(message_id)
);
-CREATE TABLE messages_txt (
- message_id INTEGER NOT NULL,
- repliesby varchar(max),
- txt varchar(max) NOT NULL,
- updated_at datetimeoffset DEFAULT CURRENT_TIMESTAMP NOT NULL,
- FOREIGN KEY (message_id) REFERENCES messages(message_id)
-);
CREATE TABLE places (
place_id INTEGER PRIMARY KEY NOT NULL,
lat numeric(10,7) NOT NULL,