forked from captaindatatech/Pizzly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a1598a
commit 3611c75
Showing
5 changed files
with
44 additions
and
67 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
15 changes: 15 additions & 0 deletions
15
config/migrations/20200412215536_create_authentications.ts
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,15 @@ | ||
import * as Knex from 'knex' | ||
|
||
export async function up(knex: Knex): Promise<any> { | ||
// tslint:disable-next-line:ter-prefer-arrow-callback | ||
return knex.schema.createTable('authentications', function(t) { | ||
t.bigIncrements('id') | ||
t.string('buid') | ||
t.string('auth_id') | ||
t.json('user_attributes') | ||
}) | ||
} | ||
|
||
export async function down(knex: Knex): Promise<any> { | ||
return knex.schema.dropTable('authentications') | ||
} |
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
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