@momentumcms/db-drizzle 0.2.0 → 0.3.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.3.0 (2026-02-20)
2
+
3
+ ### 🚀 Features
4
+
5
+ - implement Payload-style migration CLI workflow with clone-test-apply safety ([#35](https://github.com/DonaldMurillo/momentum-cms/pull/35))
6
+ - add named tabs support with nested data grouping and UI improvements ([#30](https://github.com/DonaldMurillo/momentum-cms/pull/30))
7
+
8
+ ### ❤️ Thank You
9
+
10
+ - Claude Opus 4.6
11
+ - Donald Murillo @DonaldMurillo
12
+
1
13
  ## 0.2.0 (2026-02-17)
2
14
 
3
15
  This was a version bump only for db-drizzle to align it with other projects, there were no code changes.
package/index.cjs CHANGED
@@ -139,6 +139,9 @@ var MediaCollection = defineCollection({
139
139
  singular: "Media",
140
140
  plural: "Media"
141
141
  },
142
+ upload: {
143
+ mimeTypes: ["image/*", "application/pdf", "video/*", "audio/*"]
144
+ },
142
145
  admin: {
143
146
  useAsTitle: "filename",
144
147
  defaultColumns: ["filename", "mimeType", "filesize", "createdAt"]
@@ -159,7 +162,6 @@ var MediaCollection = defineCollection({
159
162
  description: "File size in bytes"
160
163
  }),
161
164
  text("path", {
162
- required: true,
163
165
  label: "Storage Path",
164
166
  description: "Path/key where the file is stored",
165
167
  admin: {
@@ -657,6 +659,7 @@ function sqliteAdapter(options) {
657
659
  ).run(status, now, id);
658
660
  }
659
661
  return {
662
+ dialect: "sqlite",
660
663
  getRawDatabase() {
661
664
  return sqlite;
662
665
  },
@@ -1716,6 +1719,7 @@ function postgresAdapter(options) {
1716
1719
  const helpers = createHelpers(pool);
1717
1720
  const methods = buildMethods(helpers);
1718
1721
  return {
1722
+ dialect: "postgresql",
1719
1723
  /**
1720
1724
  * Get the pg Pool instance for Better Auth integration.
1721
1725
  */
package/index.js CHANGED
@@ -102,6 +102,9 @@ var MediaCollection = defineCollection({
102
102
  singular: "Media",
103
103
  plural: "Media"
104
104
  },
105
+ upload: {
106
+ mimeTypes: ["image/*", "application/pdf", "video/*", "audio/*"]
107
+ },
105
108
  admin: {
106
109
  useAsTitle: "filename",
107
110
  defaultColumns: ["filename", "mimeType", "filesize", "createdAt"]
@@ -122,7 +125,6 @@ var MediaCollection = defineCollection({
122
125
  description: "File size in bytes"
123
126
  }),
124
127
  text("path", {
125
- required: true,
126
128
  label: "Storage Path",
127
129
  description: "Path/key where the file is stored",
128
130
  admin: {
@@ -620,6 +622,7 @@ function sqliteAdapter(options) {
620
622
  ).run(status, now, id);
621
623
  }
622
624
  return {
625
+ dialect: "sqlite",
623
626
  getRawDatabase() {
624
627
  return sqlite;
625
628
  },
@@ -1679,6 +1682,7 @@ function postgresAdapter(options) {
1679
1682
  const helpers = createHelpers(pool);
1680
1683
  const methods = buildMethods(helpers);
1681
1684
  return {
1685
+ dialect: "postgresql",
1682
1686
  /**
1683
1687
  * Get the pg Pool instance for Better Auth integration.
1684
1688
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentumcms/db-drizzle",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Drizzle ORM database adapter for Momentum CMS",
5
5
  "license": "MIT",
6
6
  "author": "Momentum CMS Contributors",