mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 08:34:40 +08:00
24 lines
471 B
JavaScript
24 lines
471 B
JavaScript
/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
|
|
exports.up = pgm => {
|
|
pgm.createTable('token_offering_locked', {
|
|
id: {
|
|
type: 'serial',
|
|
primaryKey: true,
|
|
},
|
|
address: {
|
|
type: 'string',
|
|
notNull: true,
|
|
},
|
|
value: {
|
|
type: 'bigint',
|
|
notNull: true,
|
|
},
|
|
block: {
|
|
type: 'integer',
|
|
notNull: true,
|
|
},
|
|
});
|
|
|
|
pgm.createIndex('token_offering_locked', 'address', { method: 'hash' });
|
|
}
|