Skip to content

Commit

Permalink
Update_20200619_r4
Browse files Browse the repository at this point in the history
  • Loading branch information
mramadhan77 committed Aug 28, 2020
1 parent 0a91625 commit 5832ee6
Show file tree
Hide file tree
Showing 789 changed files with 179,407 additions and 174,077 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,44 @@ CREATE TABLE IF NOT EXISTS `90_ref_program` (

-- Data exporting was unselected.

-- Dumping structure for table dbsimcan_simulasi_merah.90_ref_program_nasional
DROP TABLE IF EXISTS `90_ref_program_nasional`;
CREATE TABLE IF NOT EXISTS `90_ref_program_nasional` (
`id_prognas` int(11) NOT NULL AUTO_INCREMENT,
`tahun` int(11) NOT NULL DEFAULT '2018',
`uraian_program_nasional` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status_data` int(11) NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_by` int(11) NOT NULL DEFAULT '0',
`updated_by` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id_prognas`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT;

-- Data exporting was unselected.

-- Dumping structure for table dbsimcan_simulasi_merah.90_ref_pronas_mapping
DROP TABLE IF EXISTS `90_ref_pronas_mapping`;
CREATE TABLE IF NOT EXISTS `90_ref_pronas_mapping` (
`id_pronas_mapping` bigint(255) NOT NULL AUTO_INCREMENT,
`tahun` int(255) NOT NULL DEFAULT '2021',
`id_prognas` int(255) NOT NULL,
`id_program` bigint(255) NOT NULL DEFAULT '1',
`id_kegiatan` bigint(255) NOT NULL DEFAULT '0',
`id_sub_kegiatan` bigint(255) NOT NULL DEFAULT '0',
`status_data` int(255) NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_by` int(11) NOT NULL DEFAULT '0',
`updated_by` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id_pronas_mapping`) USING BTREE,
UNIQUE KEY `tahun` (`tahun`,`id_prognas`,`id_program`,`id_kegiatan`,`id_sub_kegiatan`,`status_data`),
KEY `id_spm_bidang` (`id_prognas`),
CONSTRAINT `90_ref_pronas_mapping_ibfk_1` FOREIGN KEY (`id_prognas`) REFERENCES `90_ref_program_nasional` (`id_prognas`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Data exporting was unselected.

-- Dumping structure for table dbsimcan_simulasi_merah.90_ref_rekening_mapping
DROP TABLE IF EXISTS `90_ref_rekening_mapping`;
CREATE TABLE IF NOT EXISTS `90_ref_rekening_mapping` (
Expand Down Expand Up @@ -319,6 +357,63 @@ CREATE TABLE IF NOT EXISTS `90_ref_sd_mapping` (

-- Data exporting was unselected.

-- Dumping structure for table dbsimcan_simulasi_merah.90_ref_spm_bidang
DROP TABLE IF EXISTS `90_ref_spm_bidang`;
CREATE TABLE IF NOT EXISTS `90_ref_spm_bidang` (
`id_spm_bidang` bigint(255) NOT NULL AUTO_INCREMENT,
`kd_bidang_spm` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`uraian_bidang_spm` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
`status_data` int(255) NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id_spm_bidang`),
UNIQUE KEY `kd_bidang_spm` (`kd_bidang_spm`,`status_data`),
KEY `id_spm_bidang` (`id_spm_bidang`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Data exporting was unselected.

-- Dumping structure for table dbsimcan_simulasi_merah.90_ref_spm_jenis
DROP TABLE IF EXISTS `90_ref_spm_jenis`;
CREATE TABLE IF NOT EXISTS `90_ref_spm_jenis` (
`id_spm_jenis` bigint(255) NOT NULL AUTO_INCREMENT,
`id_spm_bidang` bigint(255) NOT NULL,
`kd_jenis_spm` bigint(255) NOT NULL,
`uraian_jenis_spm` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
`jns_pemda` int(255) NOT NULL DEFAULT '1',
`status_data` int(255) NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id_spm_jenis`) USING BTREE,
UNIQUE KEY `id_spm_bidang_2` (`id_spm_bidang`,`kd_jenis_spm`,`jns_pemda`,`status_data`),
KEY `id_spm_bidang` (`id_spm_bidang`,`id_spm_jenis`) USING BTREE,
CONSTRAINT `90_ref_spm_jenis_ibfk_1` FOREIGN KEY (`id_spm_bidang`) REFERENCES `90_ref_spm_bidang` (`id_spm_bidang`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Data exporting was unselected.

-- Dumping structure for table dbsimcan_simulasi_merah.90_ref_spm_mapping
DROP TABLE IF EXISTS `90_ref_spm_mapping`;
CREATE TABLE IF NOT EXISTS `90_ref_spm_mapping` (
`id_spm_mapping` bigint(255) NOT NULL AUTO_INCREMENT,
`tahun` int(255) NOT NULL DEFAULT '2021',
`id_spm_jenis` bigint(255) NOT NULL,
`id_program` bigint(255) NOT NULL DEFAULT '1',
`id_kegiatan` bigint(255) NOT NULL DEFAULT '0',
`id_sub_kegiatan` bigint(255) NOT NULL DEFAULT '0',
`status_data` int(255) NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_by` int(11) NOT NULL DEFAULT '0',
`updated_by` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id_spm_mapping`) USING BTREE,
UNIQUE KEY `tahun` (`tahun`,`id_spm_jenis`,`id_program`,`id_kegiatan`,`id_sub_kegiatan`,`status_data`),
KEY `id_spm_bidang` (`id_spm_jenis`),
CONSTRAINT `90_ref_spm_mapping_ibfk_1` FOREIGN KEY (`id_spm_jenis`) REFERENCES `90_ref_spm_jenis` (`id_spm_jenis`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Data exporting was unselected.

-- Dumping structure for table dbsimcan_simulasi_merah.90_ref_sub_kegiatan
DROP TABLE IF EXISTS `90_ref_sub_kegiatan`;
CREATE TABLE IF NOT EXISTS `90_ref_sub_kegiatan` (
Expand Down Expand Up @@ -8833,7 +8928,8 @@ CREATE TABLE `90_vref_sub_unit` (
`kd_urusan2` INT(11) NULL,
`kd_urusan3` INT(11) NULL,
`status_unit` INT(11) NOT NULL,
`jns_pemda` INT(11) NOT NULL
`jns_pemda` INT(11) NOT NULL,
`id_bidang_utama` INT(11) NOT NULL
) ENGINE=MyISAM;

-- Dumping structure for view dbsimcan_simulasi_merah.90_vref_sumberdana
Expand Down Expand Up @@ -8888,7 +8984,8 @@ CREATE TABLE `90_vref_unit` (
`nm_bidang3` VARCHAR(255) NULL COLLATE 'utf8mb4_unicode_ci',
`status_data` INT(11) NOT NULL,
`updated_at` DATETIME NOT NULL,
`created_at` DATETIME NOT NULL
`created_at` DATETIME NOT NULL,
`id_bidang_utama` INT(11) NOT NULL
) ENGINE=MyISAM;

-- Dumping structure for view dbsimcan_simulasi_merah.v_anggaran_belanja
Expand Down Expand Up @@ -10068,7 +10165,7 @@ CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `90_vref_sub_kegiatan` AS s
DROP VIEW IF EXISTS `90_vref_sub_unit`;
-- Removing temporary table and create final VIEW structure
DROP TABLE IF EXISTS `90_vref_sub_unit`;
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `90_vref_sub_unit` AS select `a`.`id_sub_unit` AS `id_sub_unit`,`a`.`kd_sub` AS `kd_sub`,right(concat('000',`a`.`kd_sub`),4) AS `kode_sub`,concat(`b`.`kode_unit`,'.',right(concat('000',`a`.`kd_sub`),4)) AS `kode_sub_unit`,`a`.`nm_sub` AS `nm_sub`,`a`.`sub_kinerja` AS `sub_kinerja`,`a`.`sub_keuangan` AS `sub_keuangan`,`a`.`status_data` AS `status_data`,`a`.`created_at` AS `created_at`,`a`.`updated_at` AS `updated_at`,`b`.`id_unit` AS `id_unit`,`b`.`kode_unit` AS `kode_unit`,`b`.`nm_unit` AS `nm_unit`,`b`.`id_bidang` AS `id_bidang`,`b`.`kode_bidang` AS `kode_bidang`,`b`.`nm_bidang` AS `nm_bidang`,`b`.`id_bidang2` AS `id_bidang2`,`b`.`kode_bidang2` AS `kode_bidang2`,`b`.`nm_bidang2` AS `nm_bidang2`,`b`.`id_bidang3` AS `id_bidang3`,`b`.`kode_bidang3` AS `kode_bidang3`,`b`.`nm_bidang3` AS `nm_bidang3`,`b`.`kd_urusan` AS `kd_urusan`,`b`.`kd_urusan2` AS `kd_urusan2`,`b`.`kd_urusan3` AS `kd_urusan3`,`b`.`status_data` AS `status_unit`,`b`.`jns_pemda` AS `jns_pemda` from (`90_ref_sub_unit` `a` join `90_vref_unit` `b` on((`a`.`id_unit` = `b`.`id_unit`)));
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `90_vref_sub_unit` AS select `a`.`id_sub_unit` AS `id_sub_unit`,`a`.`kd_sub` AS `kd_sub`,right(concat('000',`a`.`kd_sub`),4) AS `kode_sub`,concat(`b`.`kode_unit`,'.',right(concat('000',`a`.`kd_sub`),4)) AS `kode_sub_unit`,`a`.`nm_sub` AS `nm_sub`,`a`.`sub_kinerja` AS `sub_kinerja`,`a`.`sub_keuangan` AS `sub_keuangan`,`a`.`status_data` AS `status_data`,`a`.`created_at` AS `created_at`,`a`.`updated_at` AS `updated_at`,`b`.`id_unit` AS `id_unit`,`b`.`kode_unit` AS `kode_unit`,`b`.`nm_unit` AS `nm_unit`,`b`.`id_bidang` AS `id_bidang`,`b`.`kode_bidang` AS `kode_bidang`,`b`.`nm_bidang` AS `nm_bidang`,`b`.`id_bidang2` AS `id_bidang2`,`b`.`kode_bidang2` AS `kode_bidang2`,`b`.`nm_bidang2` AS `nm_bidang2`,`b`.`id_bidang3` AS `id_bidang3`,`b`.`kode_bidang3` AS `kode_bidang3`,`b`.`nm_bidang3` AS `nm_bidang3`,`b`.`kd_urusan` AS `kd_urusan`,`b`.`kd_urusan2` AS `kd_urusan2`,`b`.`kd_urusan3` AS `kd_urusan3`,`b`.`status_data` AS `status_unit`,`b`.`jns_pemda` AS `jns_pemda`,`b`.`id_bidang_utama` AS `id_bidang_utama` from (`90_ref_sub_unit` `a` join `90_vref_unit` `b` on((`a`.`id_unit` = `b`.`id_unit`)));

-- Dumping structure for view dbsimcan_simulasi_merah.90_vref_sumberdana
DROP VIEW IF EXISTS `90_vref_sumberdana`;
Expand All @@ -10080,7 +10177,7 @@ CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `90_vref_sumberdana` AS sel
DROP VIEW IF EXISTS `90_vref_unit`;
-- Removing temporary table and create final VIEW structure
DROP TABLE IF EXISTS `90_vref_unit`;
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `90_vref_unit` AS select `a`.`id_unit` AS `id_unit`,`a`.`jns_pemda` AS `jns_pemda`,`a`.`id_bidang` AS `id_bidang`,`a`.`id_bidang2` AS `id_bidang2`,`a`.`id_bidang3` AS `id_bidang3`,`a`.`kd_unit` AS `kd_unit`,`a`.`nm_unit` AS `nm_unit`,`b`.`kode_bidang2` AS `kode_bidang`,coalesce(`c`.`kode_bidang2`,'0-00') AS `kode_bidang2`,coalesce(`d`.`kode_bidang2`,'0-00') AS `kode_bidang3`,concat(`b`.`kode_bidang2`,'.',coalesce(`c`.`kode_bidang2`,'0-00'),'.',coalesce(`d`.`kode_bidang2`,'0-00'),'.',right(concat('0',`a`.`kd_unit`),2)) AS `kode_unit`,`b`.`kd_urusan` AS `kd_urusan`,`c`.`kd_urusan` AS `kd_urusan2`,`d`.`kd_urusan` AS `kd_urusan3`,`b`.`nm_bidang` AS `nm_bidang`,`c`.`nm_bidang` AS `nm_bidang2`,`d`.`nm_bidang` AS `nm_bidang3`,`a`.`status_data` AS `status_data`,`a`.`updated_at` AS `updated_at`,`a`.`created_at` AS `created_at` from (((`90_ref_unit` `a` join `90_vref_bidang` `b` on((`a`.`id_bidang` = `b`.`id_bidang`))) left join `90_vref_bidang` `c` on((`a`.`id_bidang2` = `c`.`id_bidang`))) left join `90_vref_bidang` `d` on((`a`.`id_bidang3` = `d`.`id_bidang`)));
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `90_vref_unit` AS select `a`.`id_unit` AS `id_unit`,`a`.`jns_pemda` AS `jns_pemda`,`a`.`id_bidang` AS `id_bidang`,`a`.`id_bidang2` AS `id_bidang2`,`a`.`id_bidang3` AS `id_bidang3`,`a`.`kd_unit` AS `kd_unit`,`a`.`nm_unit` AS `nm_unit`,`b`.`kode_bidang2` AS `kode_bidang`,coalesce(`c`.`kode_bidang2`,'0-00') AS `kode_bidang2`,coalesce(`d`.`kode_bidang2`,'0-00') AS `kode_bidang3`,concat(`b`.`kode_bidang2`,'.',coalesce(`c`.`kode_bidang2`,'0-00'),'.',coalesce(`d`.`kode_bidang2`,'0-00'),'.',right(concat('0',`a`.`kd_unit`),2)) AS `kode_unit`,`b`.`kd_urusan` AS `kd_urusan`,`c`.`kd_urusan` AS `kd_urusan2`,`d`.`kd_urusan` AS `kd_urusan3`,`b`.`nm_bidang` AS `nm_bidang`,`c`.`nm_bidang` AS `nm_bidang2`,`d`.`nm_bidang` AS `nm_bidang3`,`a`.`status_data` AS `status_data`,`a`.`updated_at` AS `updated_at`,`a`.`created_at` AS `created_at`,`a`.`id_bidang_utama` AS `id_bidang_utama` from (((`90_ref_unit` `a` join `90_vref_bidang` `b` on((`a`.`id_bidang` = `b`.`id_bidang`))) left join `90_vref_bidang` `c` on((`a`.`id_bidang2` = `c`.`id_bidang`))) left join `90_vref_bidang` `d` on((`a`.`id_bidang3` = `d`.`id_bidang`)));

-- Dumping structure for view dbsimcan_simulasi_merah.v_anggaran_belanja
DROP VIEW IF EXISTS `v_anggaran_belanja`;
Expand Down
Loading

0 comments on commit 5832ee6

Please sign in to comment.