Added isActive to materials table

This commit is contained in:
Khalim Conn-Kowlessar 2023-08-14 12:37:01 +01:00
parent a0f2fbb126
commit 96719308b3
4 changed files with 1263 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "material" ADD COLUMN "is_active" boolean DEFAULT true NOT NULL;

File diff suppressed because it is too large Load diff

View file

@ -239,6 +239,13 @@
"when": 1692011574566,
"tag": "0033_overconfident_kat_farrell",
"breakpoints": true
},
{
"idx": 34,
"version": "5",
"when": 1692012985856,
"tag": "0034_wandering_nick_fury",
"breakpoints": true
}
]
}

View file

@ -6,6 +6,7 @@ import {
real,
pgEnum,
json,
boolean,
} from "drizzle-orm/pg-core";
export const MaterialType: [string, ...string[]] = [
@ -51,4 +52,5 @@ export const material = pgTable("material", {
),
link: text("link"),
createdAt: timestamp("created_at").notNull().defaultNow(),
isActive: boolean("is_active").notNull().default(true),
});