Skip to content

Commit 8136737

Browse files
include new migration files
1 parent 9e0831f commit 8136737

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @param { import("knex").Knex } knex
3+
* @returns { Promise<void> }
4+
*/
5+
exports.up = function(knex) {
6+
return knex.schema.raw("ALTER TABLE analytics_data_ga4 ALTER COLUMN date TYPE date")
7+
};
8+
9+
/**
10+
* @param { import("knex").Knex } knex
11+
* @returns { Promise<void> }
12+
*/
13+
exports.down = function(knex) {
14+
return knex.schema.raw("ALTER TABLE analytics_data_ga4 ALTER COLUMN date TYPE timestamp with time zone")
15+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* @param { import("knex").Knex } knex
3+
* @returns { Promise<void> }
4+
*/
5+
exports.up = function(knex) {
6+
return knex.schema.table("analytics_data_ga4", table => {
7+
table.dropColumn('version')
8+
})
9+
};
10+
11+
/**
12+
* @param { import("knex").Knex } knex
13+
* @returns { Promise<void> }
14+
*/
15+
exports.down = function(knex) {
16+
return knex.schema.table("analytics_data_ga4", table => {
17+
table.string('version')
18+
})
19+
};

0 commit comments

Comments
 (0)