style(migrations): rename migration files, add new migration for shims, add favicon for front-end
This commit is contained in:
parent
cdeebd05f8
commit
50bc0e3441
16 changed files with 15760 additions and 28 deletions
23
.env.development
Normal file
23
.env.development
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#DATABASE_URI=postgres://ptfapp:polaristaskforcedb@jmf-usrv-2404:2552/ptf_app_prd
|
||||
PAYLOAD_SECRET=b5ac11acc77ea8427d10fcd0
|
||||
# Added by Payload
|
||||
|
||||
EMAIL_FROM_ADDRESS="arma@onyxsimple.com"
|
||||
EMAIL_FROM_NAME="Arma"
|
||||
EMAIL_HOST="smtp-relay.brevo.com"
|
||||
EMAIL_PORT=587
|
||||
EMAIL_USERNAME="b34870001@smtp-brevo.com"
|
||||
EMAIL_PASSWORD="xsmtpsib-97789fdb52a37baeff8a586a06e849cdaea39bd7dfd850f1a612030328d64899-fVMh5bQkZx0wNQej"
|
||||
|
||||
LAST_UPDATED=1766438881
|
||||
|
||||
APP_URL=http://localhost:3000
|
||||
GAME_TICK_NOTIFY_SECRET=4707fba13f1c66db44df38721fba204f2d6bdc6796ced7a5
|
||||
|
||||
DISCORD_TOKEN=MTUzNzI2MzQ0Njk2NDMwNjEwMQ.GnTFBc.2LHX1FO7aAm9LbrKzj2IlVFNDmTBXsnBebzk3o
|
||||
DISCORD_GUILD_ID=851910807020765275
|
||||
DISCORD_OPS_CHANNEL_ID=1136692636481237173
|
||||
DISCORD_ANNOUNCE_CHANNEL_ID=1136692636481237173
|
||||
DISCORD_STAFF_ROLE_IDS=851910807277404187,851910807277404188,851910807277404189,851910807289462814
|
||||
DISCORD_ATTENDANCE_POLL_MS=5000
|
||||
DISCORD_NOTIFICATION_POLL_MS=5000
|
||||
BIN
public/favicon.webp
Normal file
BIN
public/favicon.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
|
|
@ -26,6 +26,13 @@ export const dynamic = "force-dynamic";
|
|||
export const metadata: Metadata = {
|
||||
description: "A gamified platform for Polaris Task Force, an Arma 3 unit.",
|
||||
title: "Polaris Task Force",
|
||||
icons: [
|
||||
{
|
||||
url: "/favicon.webp",
|
||||
type: "image/webp",
|
||||
rel: "icon"
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default async function RootLayout(props: { children: React.ReactNode }) {
|
||||
|
|
|
|||
15671
src/migrations/20260817_053752.json
Normal file
15671
src/migrations/20260817_053752.json
Normal file
File diff suppressed because it is too large
Load diff
33
src/migrations/20260817_053752.ts
Normal file
33
src/migrations/20260817_053752.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres'
|
||||
|
||||
export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
|
||||
await db.execute(sql`
|
||||
CREATE TYPE "public"."enum_shims_shims_type" AS ENUM('css', 'js');
|
||||
CREATE TABLE "shims_shims" (
|
||||
"_order" integer NOT NULL,
|
||||
"_parent_id" integer NOT NULL,
|
||||
"id" varchar PRIMARY KEY NOT NULL,
|
||||
"name" varchar NOT NULL,
|
||||
"summary" varchar,
|
||||
"content" varchar NOT NULL,
|
||||
"type" "enum_shims_shims_type" DEFAULT 'css' NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE "shims" (
|
||||
"id" serial PRIMARY KEY NOT NULL,
|
||||
"updated_at" timestamp(3) with time zone,
|
||||
"created_at" timestamp(3) with time zone
|
||||
);
|
||||
|
||||
ALTER TABLE "shims_shims" ADD CONSTRAINT "shims_shims_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."shims"("id") ON DELETE cascade ON UPDATE no action;
|
||||
CREATE INDEX "shims_shims_order_idx" ON "shims_shims" USING btree ("_order");
|
||||
CREATE INDEX "shims_shims_parent_id_idx" ON "shims_shims" USING btree ("_parent_id");
|
||||
CREATE UNIQUE INDEX "shims_shims_name_idx" ON "shims_shims" USING btree ("name");`)
|
||||
}
|
||||
|
||||
export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
|
||||
await db.execute(sql`
|
||||
DROP TABLE "shims_shims" CASCADE;
|
||||
DROP TABLE "shims" CASCADE;
|
||||
DROP TYPE "public"."enum_shims_shims_type";`)
|
||||
}
|
||||
|
|
@ -1,51 +1,49 @@
|
|||
import * as migration_20251206_065831 from "./20251206_065831";
|
||||
import * as migration_20251212_183607 from "./20251212_183607";
|
||||
import * as migration_20251219_061127 from "./20251219_061127";
|
||||
import * as migration_20251222_200320 from "./20251222_200320";
|
||||
import * as migration_20251223_055859 from "./20251223_055859";
|
||||
import * as migration_20260109_065519 from "./20260109_065519";
|
||||
import * as migration_20260816_213455 from "./20260816_213455";
|
||||
import * as migration_20260816_220000 from "./20260816_220000";
|
||||
import * as migration_20260817_053752 from "./20260817_053752";
|
||||
|
||||
export const migrations = [
|
||||
{
|
||||
/*{
|
||||
up: migration_20251206_065831.up,
|
||||
down: migration_20251206_065831.down,
|
||||
name: "20251206_065831",
|
||||
name: '20251206_065831',
|
||||
},
|
||||
{
|
||||
up: migration_20251212_183607.up,
|
||||
down: migration_20251212_183607.down,
|
||||
name: "20251212_183607",
|
||||
name: '20251212_183607',
|
||||
},
|
||||
{
|
||||
up: migration_20251219_061127.up,
|
||||
down: migration_20251219_061127.down,
|
||||
name: "20251219_061127",
|
||||
name: '20251219_061127',
|
||||
},
|
||||
{
|
||||
up: migration_20251222_200320.up,
|
||||
down: migration_20251222_200320.down,
|
||||
name: "20251222_200320",
|
||||
name: '20251222_200320',
|
||||
},
|
||||
{
|
||||
up: migration_20251223_055859.up,
|
||||
down: migration_20251223_055859.down,
|
||||
name: "20251223_055859",
|
||||
},
|
||||
name: '20251223_055859',
|
||||
},*/
|
||||
// {
|
||||
// up: migration_20260109_065519.up,
|
||||
// down: migration_20260109_065519.down,
|
||||
// name: "20260109_065519",
|
||||
// },
|
||||
// {
|
||||
// up: migration_20260816_213455.up,
|
||||
// down: migration_20260816_213455.down,
|
||||
// name: "20260816_213455",
|
||||
// },
|
||||
// {
|
||||
// up: migration_20260816_220000.up,
|
||||
// down: migration_20260816_220000.down,
|
||||
// name: "20260816_220000",
|
||||
// },
|
||||
{
|
||||
up: migration_20260109_065519.up,
|
||||
down: migration_20260109_065519.down,
|
||||
name: "20260109_065519",
|
||||
},
|
||||
{
|
||||
up: migration_20260816_213455.up,
|
||||
down: migration_20260816_213455.down,
|
||||
name: "20260816_213455",
|
||||
},
|
||||
{
|
||||
up: migration_20260816_220000.up,
|
||||
down: migration_20260816_220000.down,
|
||||
name: "20260816_220000",
|
||||
up: migration_20260817_053752.up,
|
||||
down: migration_20260817_053752.down,
|
||||
name: "20260817_053752",
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue