Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pinsis-dev
webservice
Merge requests
!4
Issue/16
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue/16
issue/16
into
developer
Overview
0
Commits
30
Pipelines
3
Changes
55
Closed
Bruno Meyer
requested to merge
issue/16
into
developer
6 years ago
Overview
0
Commits
30
Pipelines
3
Changes
7
Expand
0
0
Merge request reports
Compare
version 1
version 1
4fc44481
6 years ago
developer (base)
and
latest version
latest version
3924cb2c
30 commits,
6 years ago
version 1
4fc44481
31 commits,
6 years ago
Show latest version
7 files
+
0
−
369
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
db/migrations/1524235595755_add_table_agent.js deleted
100644 → 0
+
0
−
42
Options
/*
* Copyright (C) 2018 Centro de Computacao Cientifica e Software Livre
* Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
*
* This file is part of pinsis
*
* pinsis is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
exports
.
shorthands
=
undefined
;
exports
.
up
=
(
pgm
)
=>
{
// Agent information
pgm
.
createTable
(
"
agent
"
,
{
id
:
{
type
:
"
BIGSERIAL
"
,
primaryKey
:
true
},
hospital_name
:
{
type
:
"
VARCHAR(16)
"
,
notNull
:
true
},
geo_long
:
{
type
:
"
FLOAT
"
,
notNull
:
true
},
geo_lat
:
{
type
:
"
FLOAT
"
,
notNull
:
true
},
countie
:
{
type
:
"
VARCHAR(64)
"
,
notNull
:
true
},
state
:
{
type
:
"
VARCHAR(64)
"
,
notNull
:
true
},
region
:
{
type
:
"
VARCHAR(64)
"
,
notNull
:
true
},
});
};
exports
.
down
=
(
pgm
)
=>
{
// Drop all created tables in this migrate
pgm
.
dropTable
(
"
agent
"
);
};
Loading