@h3ravel/database 11.2.1 → 11.2.2
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/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/dist/stubs/migration-js.stub +1 -1
- package/dist/stubs/migration-ts.stub +2 -2
- package/dist/stubs/migration.create-js.stub +5 -5
- package/dist/stubs/migration.create-ts.stub +6 -6
- package/dist/stubs/migration.update-js.stub +3 -3
- package/dist/stubs/migration.update-ts.stub +4 -4
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Migration } from '@h3ravel/arquebus'
|
|
2
|
-
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder'
|
|
2
|
+
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder'
|
|
3
3
|
|
|
4
4
|
export default class extends Migration {
|
|
5
5
|
/**
|
|
@@ -15,4 +15,4 @@ export default class extends Migration {
|
|
|
15
15
|
async down (schema: SchemaBuilder) {
|
|
16
16
|
//
|
|
17
17
|
}
|
|
18
|
-
}
|
|
18
|
+
}
|
|
@@ -8,9 +8,9 @@ export default class extends Migration {
|
|
|
8
8
|
*/
|
|
9
9
|
async up(schema) {
|
|
10
10
|
await schema.createTable('{{ table }}', (table) => {
|
|
11
|
-
table.increments('id')
|
|
12
|
-
table.timestamps()
|
|
13
|
-
})
|
|
11
|
+
table.increments('id')
|
|
12
|
+
table.timestamps()
|
|
13
|
+
})
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -19,6 +19,6 @@ export default class extends Migration {
|
|
|
19
19
|
* @param {(import('@h3ravel/arquebus/types/query-builder').SchemaBuilder)} schema
|
|
20
20
|
*/
|
|
21
21
|
async down(schema) {
|
|
22
|
-
await schema.dropTableIfExists('{{ table }}')
|
|
22
|
+
await schema.dropTableIfExists('{{ table }}')
|
|
23
23
|
}
|
|
24
|
-
}
|
|
24
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Migration } from '@h3ravel/arquebus'
|
|
2
|
-
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder'
|
|
2
|
+
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder'
|
|
3
3
|
|
|
4
4
|
export default class extends Migration {
|
|
5
5
|
/**
|
|
@@ -7,15 +7,15 @@ export default class extends Migration {
|
|
|
7
7
|
*/
|
|
8
8
|
async up(schema: SchemaBuilder) {
|
|
9
9
|
await schema.createTable('{{ table }}', (table) => {
|
|
10
|
-
table.increments('id')
|
|
11
|
-
table.timestamps()
|
|
12
|
-
})
|
|
10
|
+
table.increments('id')
|
|
11
|
+
table.timestamps()
|
|
12
|
+
})
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Reverse the migrations.
|
|
17
17
|
*/
|
|
18
18
|
async down(schema: SchemaBuilder) {
|
|
19
|
-
await schema.dropTableIfExists('{{ table }}')
|
|
19
|
+
await schema.dropTableIfExists('{{ table }}')
|
|
20
20
|
}
|
|
21
|
-
}
|
|
21
|
+
}
|
|
@@ -9,7 +9,7 @@ export default class extends Migration {
|
|
|
9
9
|
async up(schema) {
|
|
10
10
|
await schema.table('{{ table }}', (table) => {
|
|
11
11
|
//
|
|
12
|
-
})
|
|
12
|
+
})
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -20,6 +20,6 @@ export default class extends Migration {
|
|
|
20
20
|
async down(schema) {
|
|
21
21
|
await schema.table('{{ table }}', (table) => {
|
|
22
22
|
//
|
|
23
|
-
})
|
|
23
|
+
})
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Migration } from '@h3ravel/arquebus'
|
|
2
|
-
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder'
|
|
2
|
+
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder'
|
|
3
3
|
|
|
4
4
|
export default class extends Migration {
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ export default class extends Migration {
|
|
|
8
8
|
async up(schema: SchemaBuilder) {
|
|
9
9
|
await schema.table('{{ table }}', (table) => {
|
|
10
10
|
//
|
|
11
|
-
})
|
|
11
|
+
})
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -17,6 +17,6 @@ export default class extends Migration {
|
|
|
17
17
|
async down(schema: SchemaBuilder) {
|
|
18
18
|
await schema.table('{{ table }}', (table) => {
|
|
19
19
|
//
|
|
20
|
-
})
|
|
20
|
+
})
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/database",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.2",
|
|
4
4
|
"description": "Modeling data and migration system for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"sqlite3": "^5.1.7"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@h3ravel/
|
|
44
|
-
"@h3ravel/
|
|
45
|
-
"@h3ravel/
|
|
43
|
+
"@h3ravel/filesystem": "^0.2.1",
|
|
44
|
+
"@h3ravel/core": "^1.9.6",
|
|
45
|
+
"@h3ravel/support": "^0.10.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "^5.9.2"
|