Giter Club home page Giter Club logo

Comments (1)

franciscocabral avatar franciscocabral commented on June 12, 2024

Já existe. Só precisa definir onde ficará a seguinte tela:
http://tag/wizard/configuration/school
Ela é quem cuida da definição de horário padrão dos turnos.

Este SQL pode resolver isso facilmente, definindo um padrão para a tabela.

ALTER TABLE `br.org.ipti.tag`.`school_configuration` 
ADD UNIQUE INDEX `school_inep_id_fk_UNIQUE` (`school_inep_id_fk` ASC);

ALTER TABLE `br.org.ipti.tag`.`school_configuration` 
CHANGE COLUMN `morning_initial` `morning_initial` TIME NULL DEFAULT "07:00:00" ,
CHANGE COLUMN `morning_final` `morning_final` TIME NULL DEFAULT "12:00:00" ,
CHANGE COLUMN `afternoom_initial` `afternoom_initial` TIME NULL DEFAULT "14:00:00" ,
CHANGE COLUMN `afternoom_final` `afternoom_final` TIME NULL DEFAULT "18:00:00" ,
CHANGE COLUMN `night_initial` `night_initial` TIME NULL DEFAULT "17:00:00" ,
CHANGE COLUMN `night_final` `night_final` TIME NULL DEFAULT "22:00:00" ,
CHANGE COLUMN `allday_initial` `allday_initial` TIME NULL DEFAULT "07:00:00" ,
CHANGE COLUMN `allday_final` `allday_final` TIME NULL DEFAULT "18:00:00" ;

INSERT INTO `br.org.ipti.tag`.`school_configuration` (`school_inep_id_fk`,`morning_initial`,`morning_final`,`afternoom_initial`,`afternoom_final`,`night_initial`,`night_final`,`allday_initial`,`allday_final`)
SELECT inep_id, '07:00:00', '12:00:00', '14:00:00', '18:00:00', '17:00:00', '22:00:00', '07:00:00', '18:00:00' FROM school_identification
ON DUPLICATE key update school_inep_id_fk = school_inep_id_fk;

from br.tag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.