All checks were successful
Frontend CI / build (push) Successful in 1m10s
### Description - In beta environment, `v0.3.0` migration has been run, a manual revertion is required; in real environment, there is nothing to do, but to do #97 and remove migration record for `v0.1.1` manually. ### Package Changes _No response_ ### Screenshots _No response_ ### Reference Resolves #95 ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #98 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
13 lines
416 B
SQL
13 lines
416 B
SQL
CREATE TABLE IF NOT EXISTS "image" (
|
|
"id" SERIAL PRIMARY KEY NOT NULL,
|
|
"mime_type" VARCHAR(100) NOT NULL,
|
|
"deleted_time" TIMESTAMP,
|
|
"created_time" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
"updated_time" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
CREATE OR REPLACE TRIGGER "update_image_updated_time"
|
|
BEFORE UPDATE ON "image"
|
|
FOR EACH ROW
|
|
EXECUTE FUNCTION update_updated_time_column();
|