alchemy 0.45.0 → 0.45.1

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,19 @@
1
+ CREATE TABLE `resources` (
2
+ `id` text NOT NULL,
3
+ `scope` text NOT NULL,
4
+ `status` text NOT NULL,
5
+ `kind` text NOT NULL,
6
+ `fqn` text NOT NULL,
7
+ `seq` integer NOT NULL,
8
+ `data` text NOT NULL,
9
+ `props` text,
10
+ `oldProps` text,
11
+ `output` text NOT NULL,
12
+ PRIMARY KEY(`scope`, `id`),
13
+ FOREIGN KEY (`scope`) REFERENCES `scopes`(`chain`) ON UPDATE no action ON DELETE no action
14
+ );
15
+ --> statement-breakpoint
16
+ CREATE TABLE `scopes` (
17
+ `chain` text PRIMARY KEY NOT NULL,
18
+ `parent` text
19
+ );
@@ -0,0 +1,20 @@
1
+ DROP TABLE `scopes`;--> statement-breakpoint
2
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
3
+ CREATE TABLE `__new_resources` (
4
+ `id` text NOT NULL,
5
+ `scope` text NOT NULL,
6
+ `status` text NOT NULL,
7
+ `kind` text NOT NULL,
8
+ `fqn` text NOT NULL,
9
+ `seq` integer NOT NULL,
10
+ `data` text NOT NULL,
11
+ `props` text,
12
+ `oldProps` text,
13
+ `output` text NOT NULL,
14
+ PRIMARY KEY(`scope`, `id`)
15
+ );
16
+ --> statement-breakpoint
17
+ INSERT INTO `__new_resources`("id", "scope", "status", "kind", "fqn", "seq", "data", "props", "oldProps", "output") SELECT "id", "scope", "status", "kind", "fqn", "seq", "data", "props", "oldProps", "output" FROM `resources`;--> statement-breakpoint
18
+ DROP TABLE `resources`;--> statement-breakpoint
19
+ ALTER TABLE `__new_resources` RENAME TO `resources`;--> statement-breakpoint
20
+ PRAGMA foreign_keys=ON;
@@ -0,0 +1,137 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "64dbe345-6baf-4cdf-bc75-221f7eb1ed3b",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "resources": {
8
+ "name": "resources",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "scope": {
18
+ "name": "scope",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "status": {
25
+ "name": "status",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "kind": {
32
+ "name": "kind",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "fqn": {
39
+ "name": "fqn",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "seq": {
46
+ "name": "seq",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "data": {
53
+ "name": "data",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "props": {
60
+ "name": "props",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ },
66
+ "oldProps": {
67
+ "name": "oldProps",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "output": {
74
+ "name": "output",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": true,
78
+ "autoincrement": false
79
+ }
80
+ },
81
+ "indexes": {},
82
+ "foreignKeys": {
83
+ "resources_scope_scopes_chain_fk": {
84
+ "name": "resources_scope_scopes_chain_fk",
85
+ "tableFrom": "resources",
86
+ "tableTo": "scopes",
87
+ "columnsFrom": ["scope"],
88
+ "columnsTo": ["chain"],
89
+ "onDelete": "no action",
90
+ "onUpdate": "no action"
91
+ }
92
+ },
93
+ "compositePrimaryKeys": {
94
+ "resources_scope_id_pk": {
95
+ "columns": ["scope", "id"],
96
+ "name": "resources_scope_id_pk"
97
+ }
98
+ },
99
+ "uniqueConstraints": {},
100
+ "checkConstraints": {}
101
+ },
102
+ "scopes": {
103
+ "name": "scopes",
104
+ "columns": {
105
+ "chain": {
106
+ "name": "chain",
107
+ "type": "text",
108
+ "primaryKey": true,
109
+ "notNull": true,
110
+ "autoincrement": false
111
+ },
112
+ "parent": {
113
+ "name": "parent",
114
+ "type": "text",
115
+ "primaryKey": false,
116
+ "notNull": false,
117
+ "autoincrement": false
118
+ }
119
+ },
120
+ "indexes": {},
121
+ "foreignKeys": {},
122
+ "compositePrimaryKeys": {},
123
+ "uniqueConstraints": {},
124
+ "checkConstraints": {}
125
+ }
126
+ },
127
+ "views": {},
128
+ "enums": {},
129
+ "_meta": {
130
+ "schemas": {},
131
+ "tables": {},
132
+ "columns": {}
133
+ },
134
+ "internal": {
135
+ "indexes": {}
136
+ }
137
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "e7a038ca-ee72-42aa-9780-f7e6c3e88340",
5
+ "prevId": "64dbe345-6baf-4cdf-bc75-221f7eb1ed3b",
6
+ "tables": {
7
+ "resources": {
8
+ "name": "resources",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "scope": {
18
+ "name": "scope",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "status": {
25
+ "name": "status",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "kind": {
32
+ "name": "kind",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "fqn": {
39
+ "name": "fqn",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "seq": {
46
+ "name": "seq",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "data": {
53
+ "name": "data",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "props": {
60
+ "name": "props",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "oldProps": {
67
+ "name": "oldProps",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "output": {
74
+ "name": "output",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": true,
78
+ "autoincrement": false
79
+ }
80
+ },
81
+ "indexes": {},
82
+ "foreignKeys": {},
83
+ "compositePrimaryKeys": {
84
+ "resources_scope_id_pk": {
85
+ "columns": [
86
+ "scope",
87
+ "id"
88
+ ],
89
+ "name": "resources_scope_id_pk"
90
+ }
91
+ },
92
+ "uniqueConstraints": {},
93
+ "checkConstraints": {}
94
+ }
95
+ },
96
+ "views": {},
97
+ "enums": {},
98
+ "_meta": {
99
+ "schemas": {},
100
+ "tables": {},
101
+ "columns": {}
102
+ },
103
+ "internal": {
104
+ "indexes": {}
105
+ }
106
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1751858205551,
9
+ "tag": "0000_busy_mauler",
10
+ "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "6",
15
+ "when": 1751942782611,
16
+ "tag": "0001_concerned_iceman",
17
+ "breakpoints": true
18
+ }
19
+ ]
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "type": "module",
5
5
  "module": "./lib/index.js",
6
6
  "license": "Apache-2.0",
@@ -27,6 +27,7 @@
27
27
  "homepage": "https://alchemy.run",
28
28
  "files": [
29
29
  "bin",
30
+ "drizzle",
30
31
  "lib",
31
32
  "src",
32
33
  "templates",