forked from dachan/dach
1
0
Fork 0

changed date to timestamp type

This commit is contained in:
leca 2023-11-04 14:34:48 +03:00
parent e76b4d0f33
commit afcbaa3384
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<mxfile host="Electron" modified="2023-11-04T11:05:33.193Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.0.2 Chrome/114.0.5735.289 Electron/25.8.4 Safari/537.36" etag="R4CyQJgL2GpBnUPwT5wI" version="22.0.2" type="device"> <mxfile host="Electron" modified="2023-11-04T11:34:00.376Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.0.2 Chrome/114.0.5735.289 Electron/25.8.4 Safari/537.36" etag="zK0hocMrlzpD75Dksgz9" version="22.0.2" type="device">
<diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1"> <diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1">
<mxGraphModel dx="1669" dy="479" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0" extFonts="Permanent Marker^https://fonts.googleapis.com/css?family=Permanent+Marker"> <mxGraphModel dx="1669" dy="479" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0" extFonts="Permanent Marker^https://fonts.googleapis.com/css?family=Permanent+Marker">
<root> <root>
@ -138,7 +138,7 @@
<mxRectangle width="30" height="30" as="alternateBounds" /> <mxRectangle width="30" height="30" as="alternateBounds" />
</mxGeometry> </mxGeometry>
</mxCell> </mxCell>
<mxCell id="IqcACfFecUyFIL0cjSVW-36" value="date date NOT NULL" style="shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;" parent="IqcACfFecUyFIL0cjSVW-34" vertex="1"> <mxCell id="IqcACfFecUyFIL0cjSVW-36" value="timestamp timestamp NOT NULL" style="shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;" parent="IqcACfFecUyFIL0cjSVW-34" vertex="1">
<mxGeometry x="30" width="220" height="30" as="geometry"> <mxGeometry x="30" width="220" height="30" as="geometry">
<mxRectangle width="220" height="30" as="alternateBounds" /> <mxRectangle width="220" height="30" as="alternateBounds" />
</mxGeometry> </mxGeometry>

View File

@ -23,7 +23,7 @@ CREATE TABLE posts (
content TEXT NOT NULL, content TEXT NOT NULL,
media_ids VARCHAR(22)[], media_ids VARCHAR(22)[],
is_root BOOL NOT NULL, is_root BOOL NOT NULL,
date DATE NOT NULL, timestamp TIMESTAMP NOT NULL,
user_ip CIDR NOT NULL user_ip CIDR NOT NULL
); );