@tangen/db 0.1.56 → 0.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "object_types" ADD COLUMN IF NOT EXISTS "path" jsonb;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangen/db",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.57",
|
|
4
4
|
"description": "Database client and system schema (Drizzle + postgres.js) for the Tangen headless CMS",
|
|
5
5
|
"homepage": "https://github.com/raghunathj/tangen#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"drizzle-orm": "^0.45.2",
|
|
81
81
|
"postgres": "^3.4.4",
|
|
82
|
-
"@tangen/types": "^0.
|
|
82
|
+
"@tangen/types": "^0.5.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"drizzle-kit": "^0.
|
|
85
|
+
"drizzle-kit": "^0.31.11"
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -31,6 +31,12 @@ export const objectTypes = pgTable('object_types', {
|
|
|
31
31
|
* does. A row with a value here is never dropped by a push: an extension
|
|
32
32
|
* that stops declaring it leaves an orphan the tooling reports instead. */
|
|
33
33
|
providedBy: text('provided_by'),
|
|
34
|
+
/** The type's declared ADDRESS, as the push stores it: `{ pattern, root? }`,
|
|
35
|
+
* `{ field }`, or `{ fn: true }` when the declaration is a code-side
|
|
36
|
+
* function that no serialisation could carry. NULL = this type has no
|
|
37
|
+
* address. Read by the Admin, which has no other way to see it: the API's
|
|
38
|
+
* request schema is rebuilt from this table. */
|
|
39
|
+
path: jsonb('path'),
|
|
34
40
|
previousNames: text('previous_names').array().notNull().default(sql`'{}'`),
|
|
35
41
|
adminConfig: jsonb('admin_config').notNull().default(sql`'{}'`),
|
|
36
42
|
schemaVersion: integer('schema_version').notNull().default(1),
|