Skip to content

Commit

Permalink
feat: improve migrations structure and example
Browse files Browse the repository at this point in the history
Refs: #23
  • Loading branch information
tshemsedinov committed Sep 12, 2020
1 parent f7565f8 commit 5ec31f3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
11 changes: 10 additions & 1 deletion test/schema/.database.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'example',
description: 'Example database schema',
version: 3,
driver: 'pg',

authors: [
{ name: 'Timur Shemsedinov', email: '[email protected]' },
Expand All @@ -12,5 +13,13 @@
'postgis',
'postgis_topology',
'pg_trgm',
]
],

connection: {
host: '127.0.0.1',
port: 5432,
database: 'application',
user: 'postgres',
password: 'postgres',
},
});
11 changes: 10 additions & 1 deletion test/schema/.history/2020-09-11-v1/.database.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'example',
description: 'Example database schema',
version: 1,
driver: 'pg',

authors: [
{ name: 'Timur Shemsedinov', email: '[email protected]' },
Expand All @@ -10,5 +11,13 @@
extensions: [
'hstore',
'pg_trgm',
]
],

connection: {
host: '127.0.0.1',
port: 5432,
database: 'application',
user: 'postgres',
password: 'postgres',
},
});
11 changes: 10 additions & 1 deletion test/schema/.history/2020-09-11-v2/.database.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'example',
description: 'Example database schema',
version: 2,
driver: 'pg',

authors: [
{ name: 'Timur Shemsedinov', email: '[email protected]' },
Expand All @@ -10,5 +11,13 @@
extensions: [
'hstore',
'pg_trgm',
]
],

connection: {
host: '127.0.0.1',
port: 5432,
database: 'application',
user: 'postgres',
password: 'postgres',
},
});

0 comments on commit 5ec31f3

Please sign in to comment.