mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-28 07:50:25 +01:00
merged jsvm migrations and hooks and updated the ambient TS types location
This commit is contained in:
1 parent
1571ebe4eb
commit
a672ab959f
11 files changed
+6336
-6280
No files matched your search
@@ -22,6 +22,7 @@ func TestAutomigrateCollectionCreate(t *testing.T) {
|
||||
{
|
||||
migratecmd.TemplateLangJS,
|
||||
`
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const collection = new Collection({
|
||||
"id": "new_id",
|
||||
@@ -194,6 +195,7 @@ func TestAutomigrateCollectionDelete(t *testing.T) {
|
||||
{
|
||||
migratecmd.TemplateLangJS,
|
||||
`
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db);
|
||||
const collection = dao.findCollectionByNameOrId("test123");
|
||||
@@ -372,6 +374,7 @@ func TestAutomigrateCollectionUpdate(t *testing.T) {
|
||||
{
|
||||
migratecmd.TemplateLangJS,
|
||||
`
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("test123")
|
||||
|
||||
Reference in new issue
Block a user