Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #63

Merged
merged 2 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func init() {
func (m *InsertTablaGrupoInfoComplementaria_20201230_113756) Up() {
// use m.SQL("CREATE TABLE ...") to make schema update
m.SQL("INSERT INTO terceros.grupo_info_complementaria (id, nombre, descripcion, codigo_abreviacion, activo, fecha_creacion, fecha_modificacion) VALUES (20, 'Informacion Evaluador Par','Informacion del evaluador par de la solicitud de un docente','Grupo_20', TRUE, LOCALTIMESTAMP, LOCALTIMESTAMP);")
// modificar este insert para agregar bien la informacion del grupo
m.SQL("INSERT INTO terceros.info_complementaria (nombre, codigo_abreviacion, activo, grupo_info_complementaria_id, fecha_creacion, fecha_modificacion) VALUES ('DESCRIPCIÓN', 'DESCRIPCIÓN', TRUE, 11, LOCALTIMESTAMP, LOCALTIMESTAMP);")


}

// Reverse the migrations
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package main

import (
"github.com/astaxie/beego/migration"
)

// DO NOT MODIFY
type InsertTablaInfoComplementaria_20210105_095124 struct {
migration.Migration
}

// DO NOT MODIFY
func init() {
m := &InsertTablaInfoComplementaria_20210105_095124{}
m.Created = "20210105_095124"

migration.Register("InsertTablaInfoComplementaria_20210105_095124", m)
}

// Run the migrations
func (m *InsertTablaInfoComplementaria_20210105_095124) Up() {
// use m.SQL("CREATE TABLE ...") to make schema update
m.SQL("INSERT INTO terceros.info_complementaria (nombre, codigo_abreviacion, activo, grupo_info_complementaria_id, fecha_creacion, fecha_modificacion) VALUES ('AREA_CONOCIMIENTO', 'AREA_CONOCIMIENTO', TRUE, 20, LOCALTIMESTAMP, LOCALTIMESTAMP);")
m.SQL("INSERT INTO terceros.info_complementaria (nombre, codigo_abreviacion, activo, grupo_info_complementaria_id, fecha_creacion, fecha_modificacion) VALUES ('FORMACION_ACADEMICA', 'FORMACION_ACADEMICA', TRUE, 20, LOCALTIMESTAMP, LOCALTIMESTAMP);")
m.SQL("INSERT INTO terceros.info_complementaria (nombre, codigo_abreviacion, activo, grupo_info_complementaria_id, fecha_creacion, fecha_modificacion) VALUES ('INSTITUCION', 'INSTITUCION', TRUE, 20, LOCALTIMESTAMP, LOCALTIMESTAMP);")

}

// Reverse the migrations
func (m *InsertTablaInfoComplementaria_20210105_095124) Down() {
// use m.SQL("DROP TABLE ...") to reverse schema update
m.SQL("DELETE FROM terceros.info_complementaria WHERE grupo_info_complementaria_id = 20 ;")
}