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>
8 lines
296 B
SQL
8 lines
296 B
SQL
CREATE TABLE IF NOT EXISTS "post_label" (
|
|
"post_id" INTEGER NOT NULL,
|
|
"label_id" INTEGER NOT NULL,
|
|
PRIMARY KEY ("post_id", "label_id"),
|
|
FOREIGN KEY ("post_id") REFERENCES "post" ("id") ON DELETE CASCADE,
|
|
FOREIGN KEY ("label_id") REFERENCES "label" ("id") ON DELETE CASCADE
|
|
);
|