@ad-sdk/bgd 0.0.7 → 0.0.8
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/package.json +1 -1
- package/sqlx/migrations.js +4 -4
package/package.json
CHANGED
package/sqlx/migrations.js
CHANGED
|
@@ -62,9 +62,9 @@ async function migrate(driver, directory, options) {
|
|
|
62
62
|
query: fc.trim()
|
|
63
63
|
}, {
|
|
64
64
|
query: `INSERT INTO bgd_migrations (
|
|
65
|
-
migration_id, filename,
|
|
66
|
-
) VALUES ($1::TEXT, $2::TEXT, $3::
|
|
67
|
-
values: [(0, _uidlib.uuidv7)(), contentsList[0].name,
|
|
65
|
+
migration_id, filename, order
|
|
66
|
+
) VALUES ($1::TEXT, $2::TEXT, $3::VARCHAR)`,
|
|
67
|
+
values: [(0, _uidlib.uuidv7)(), contentsList[0].name, contentsList[i].name.split("_")[0]]
|
|
68
68
|
}]);
|
|
69
69
|
for (let j = 0; j < res.length; ++j) {
|
|
70
70
|
if (res[j].isLeft()) {
|
|
@@ -88,7 +88,7 @@ const PGCT_QUERY = `CREATE TABLE IF NOT EXISTS bgd_migrations (
|
|
|
88
88
|
migration_id VARCHAR(100) NOT NULL UNIQUE PRIMARY KEY,
|
|
89
89
|
sequence SERIAL NOT NULL,
|
|
90
90
|
filename VARCHAR(255) NOT NULL UNIQUE,
|
|
91
|
-
|
|
91
|
+
order VARCHAR(4) NOT NULL,
|
|
92
92
|
executed_at TIMESTAMP WITH TIME ZONE NOT NULL
|
|
93
93
|
DEFAULT (NOW() AT TIME ZONE 'UTC')
|
|
94
94
|
)`;
|