Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ea4ae4

Browse files
authored
Update 201612010000_membership.js
1 parent 7815baf commit 6ea4ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/201612010000_membership.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports.up = async (db) => {
1818
// UUID v1mc reduces the negative side effect of using random primary keys
1919
// with respect to keyspace fragmentation on disk for the tables because it's time based
2020
// https://www.postgresql.org/docs/current/static/uuid-ossp.html
21-
table.uuid('id').notNullable().defaultTo(db.raw('uuid_generate_v1mc()')).primary(); // using uuid_generate_v1mc() as v1mc is time-based, which is better for keyspace fragmentation on disk for tables.
21+
table.uuid('id').notNullable().defaultTo(db.raw('uuid_generate_v1mc()')).primary();
2222
table.string('email').unique();
2323
table.boolean('email_confirmed').notNullable().defaultTo(false);
2424
table.string('password_hash', 100);

0 commit comments

Comments
 (0)