-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correctif sur la récuperation des parcelles déssinées
- Loading branch information
1 parent
e9dd7bb
commit ee26516
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"use strict"; | ||
|
||
var dbm; | ||
var type; | ||
var seed; | ||
|
||
exports.setup = function (options, seedLink) { | ||
dbm = options.dbmigrate; | ||
type = dbm.dataType; | ||
seed = seedLink; | ||
}; | ||
|
||
exports.up = async function (db) { | ||
await db.addColumn("cartobio_parcelles", "deleted_at", { | ||
type: "datetime", | ||
notNull: false, | ||
}); | ||
await db.addColumn("cartobio_parcelles", "from_parcelles", { | ||
type: "string", | ||
length: 255, | ||
notNull: false, | ||
}); | ||
}; | ||
|
||
exports.down = async function (db) { | ||
await db.removeColumn("cartobio_parcelles", "deleted_at"); | ||
await db.removeColumn("cartobio_parcelles", "from_parcelles"); | ||
}; | ||
|
||
exports._meta = { | ||
version: 1, | ||
}; |