sql
stringlengths 6
1.05M
|
|---|
-- phpMyAdmin SQL Dump
-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 23, 2014 at 07:42 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `a2`
--
-- --------------------------------------------------------
--
-- Table structure for table `cane_accounts`
--
CREATE TABLE IF NOT EXISTS `cane_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_name` varchar(250) NOT NULL,
`op_balance` decimal(10,0) DEFAULT NULL,
`op_balance_dc` varchar(50) NOT NULL,
`op_date` date NOT NULL,
`parent_id` int(11) DEFAULT NULL,
`acc_type` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ;
--
-- Dumping data for table `cane_accounts`
--
INSERT INTO `cane_accounts` (`id`, `account_name`, `op_balance`, `op_balance_dc`, `op_date`, `parent_id`, `acc_type`) VALUES
(1, 'Cash', '0', 'D', '2012-12-25', NULL, 1),
(2, 'Sales', '0', 'C', '2012-12-25', NULL, NULL),
(3, 'Purchase', '0', 'D', '2012-12-25', NULL, NULL),
(4, 'Cost of Goods Sold', '0', 'D', '2012-12-25', NULL, NULL),
(5, 'Sales Return', '0', 'D', '2012-12-25', NULL, NULL),
(6, 'Capital', '0', 'C', '2012-12-25', NULL, NULL),
(7, 'Widthdraw', '0', 'D', '2012-12-25', NULL, NULL),
(8, 'Purchase Return', '0', 'C', '2012-12-25', NULL, NULL),
(9, 'Received With Cheque', '0', 'D', '2012-12-25', NULL, 5),
(10, 'Received Cheque Dishonor', '0', 'D', '2012-12-25', NULL, 6),
(11, 'Received Cheque Cancelled', '0', 'D', '2012-12-25', NULL, NULL),
(12, 'Income From Other Sources', '0', 'C', '2012-12-25', NULL, NULL),
(13, 'Paid with Cheque', '0', 'D', '2012-12-25', NULL, NULL),
(14, 'Canceled Paid Cheque', '0', 'D', '2012-12-25', NULL, NULL),
(15, 'Paid Cheque Dishonor', '0', 'D', '2012-12-25', NULL, NULL),
(16, 'Investment', '0', 'D', '2012-12-25', NULL, NULL),
(17, 'Additional Captial', '0', 'C', '2012-12-25', NULL, NULL),
(18, 'Sales Rebate', '0', 'D', '2012-12-25', NULL, NULL),
(23, 'Dutch Bangla Bank-Mr. X', '10000', 'D', '0000-00-00', 1, 2),
(24, 'Computer Source', '6000', 'D', '2014-01-15', 3, 3),
(25, 'Microsft Corporation', '-3000', 'D', '2013-01-14', 4, 3),
(26, 'Brac Bank-Mr. AX', '5600', 'D', '2014-03-19', 2, 2),
(27, 'Boom', '-1000', 'D', '2014-02-28', 5, 3);
-- --------------------------------------------------------
--
-- Table structure for table `cane_account_types`
--
CREATE TABLE IF NOT EXISTS `cane_account_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `cane_account_types`
--
INSERT INTO `cane_account_types` (`id`, `label`) VALUES
(1, 'cash'),
(2, 'bank'),
(3, 'party account'),
(5, 'cheque'),
(6, 'dishonored cheque'),
(7, 'Expense Accounts');
-- --------------------------------------------------------
--
-- Table structure for table `cane_admin`
--
CREATE TABLE IF NOT EXISTS `cane_admin` (
`admin_id` int(11) NOT NULL AUTO_INCREMENT,
`level` int(11) NOT NULL,
`admin_name` varchar(300) NOT NULL,
`admin_email` varchar(300) NOT NULL,
`admin_pass` varchar(300) NOT NULL,
`admin_last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`admin_status` int(11) NOT NULL,
PRIMARY KEY (`admin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `cane_admin`
--
INSERT INTO `cane_admin` (`admin_id`, `level`, `admin_name`, `admin_email`, `admin_pass`, `admin_last_login`, `admin_status`) VALUES
(1, 1, 'Mahbub', '<EMAIL>', '<PASSWORD>', '2014-12-23 13:41:52', 1),
(3, 1, 'Asim', '<EMAIL>', '<PASSWORD>', '2013-01-06 05:32:54', 1),
(4, 1, 'Mr. Kaif', '<EMAIL>', '<PASSWORD>', '2013-03-28 06:21:13', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_admin_level`
--
CREATE TABLE IF NOT EXISTS `cane_admin_level` (
`level_id` int(11) NOT NULL AUTO_INCREMENT,
`level_name` varchar(155) NOT NULL,
PRIMARY KEY (`level_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `cane_admin_level`
--
INSERT INTO `cane_admin_level` (`level_id`, `level_name`) VALUES
(1, 'Administrator'),
(2, 'Manager'),
(3, 'Sales Person');
-- --------------------------------------------------------
--
-- Table structure for table `cane_bank`
--
CREATE TABLE IF NOT EXISTS `cane_bank` (
`bank_id` int(11) NOT NULL AUTO_INCREMENT,
`bank_name` varchar(100) NOT NULL,
`account_name` varchar(100) NOT NULL,
`account_number` varchar(100) NOT NULL,
PRIMARY KEY (`bank_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `cane_bank`
--
INSERT INTO `cane_bank` (`bank_id`, `bank_name`, `account_name`, `account_number`) VALUES
(1, 'Dutch Bangla Bank', 'Mr. X', '23344559'),
(2, 'Brac Bank', 'Mr. AX', '2394586');
-- --------------------------------------------------------
--
-- Table structure for table `cane_brand`
--
CREATE TABLE IF NOT EXISTS `cane_brand` (
`brand_id` int(11) NOT NULL AUTO_INCREMENT,
`brand_name` varchar(300) NOT NULL,
PRIMARY KEY (`brand_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
--
-- Dumping data for table `cane_brand`
--
INSERT INTO `cane_brand` (`brand_id`, `brand_name`) VALUES
(14, 'Samsungs'),
(15, 'BMW'),
(16, 'Square Pharma'),
(17, 'BMW'),
(18, 'BMWs'),
(19, 'MyOne');
-- --------------------------------------------------------
--
-- Table structure for table `cane_category`
--
CREATE TABLE IF NOT EXISTS `cane_category` (
`category_id` int(11) NOT NULL AUTO_INCREMENT,
`category_name` varchar(300) NOT NULL,
PRIMARY KEY (`category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=35 ;
--
-- Dumping data for table `cane_category`
--
INSERT INTO `cane_category` (`category_id`, `category_name`) VALUES
(18, 'Mouse'),
(19, 'XBox'),
(25, 'Monkey'),
(26, 'Goal'),
(28, 'sd'),
(29, 'Medicine'),
(31, 'New Category'),
(32, 'Wasching Machine'),
(33, 'Waching Machine'),
(34, 'Bangla');
-- --------------------------------------------------------
--
-- Table structure for table `cane_cheques`
--
CREATE TABLE IF NOT EXISTS `cane_cheques` (
`cheque_id` int(11) NOT NULL AUTO_INCREMENT,
`cheque_number` varchar(255) NOT NULL,
`cheque_date` date NOT NULL,
`bank_name` varchar(200) DEFAULT NULL,
`top_journal` int(11) DEFAULT NULL,
`bottom_journal` int(11) DEFAULT NULL,
`cheque_type` int(11) NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`cheque_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `cane_cheques`
--
INSERT INTO `cane_cheques` (`cheque_id`, `cheque_number`, `cheque_date`, `bank_name`, `top_journal`, `bottom_journal`, `cheque_type`, `status`) VALUES
(1, '654321', '2013-01-16', '23', 8, 9, 2, 3),
(2, '12345', '2013-01-15', 'National Bank', 28, NULL, 1, 4),
(3, '7878', '2013-01-16', '26', 30, 31, 2, 1),
(4, '654321', '2013-01-16', '23', 32, 33, 2, 3),
(5, '9090', '2013-06-25', '23', 53, 54, 2, 3),
(6, '12345', '2013-01-15', 'National Bank', 57, 58, 1, 4),
(7, '7878', '2013-01-16', '26', 59, 60, 2, 3);
-- --------------------------------------------------------
--
-- Table structure for table `cane_cheque_status`
--
CREATE TABLE IF NOT EXISTS `cane_cheque_status` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `cane_cheque_status`
--
INSERT INTO `cane_cheque_status` (`id`, `name`) VALUES
(1, 'Cleared'),
(2, 'Cheque In Hand'),
(3, 'Dishonered'),
(4, 'Cancel');
-- --------------------------------------------------------
--
-- Table structure for table `cane_cheque_type`
--
CREATE TABLE IF NOT EXISTS `cane_cheque_type` (
`cheque_id` int(11) NOT NULL AUTO_INCREMENT,
`cheque_type_name` varchar(255) NOT NULL,
PRIMARY KEY (`cheque_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `cane_cheque_type`
--
INSERT INTO `cane_cheque_type` (`cheque_id`, `cheque_type_name`) VALUES
(1, 'Receipt'),
(2, 'Payment');
-- --------------------------------------------------------
--
-- Table structure for table `cane_entries`
--
CREATE TABLE IF NOT EXISTS `cane_entries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`amount` decimal(10,2) NOT NULL,
`dr_side` int(11) NOT NULL,
`cr_side` int(11) NOT NULL,
`parent_voucher` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=162 ;
--
-- Dumping data for table `cane_entries`
--
INSERT INTO `cane_entries` (`id`, `amount`, `dr_side`, `cr_side`, `parent_voucher`) VALUES
(7, '196750.00', 3, 24, 7),
(8, '191750.00', 24, 13, 8),
(9, '191750.00', 13, 23, 9),
(10, '11000.00', 1, 2, 10),
(11, '9950.00', 4, 3, 10),
(12, '11000.00', 1, 2, 11),
(13, '9950.00', 4, 3, 11),
(14, '11000.00', 24, 2, 12),
(15, '9950.00', 4, 3, 12),
(16, '500.00', 1, 24, 13),
(17, '11000.00', 24, 2, 14),
(18, '9950.00', 4, 3, 14),
(19, '11000.00', 24, 2, 15),
(20, '9950.00', 4, 3, 15),
(21, '1000.00', 1, 24, 16),
(22, '47500.00', 24, 8, 17),
(23, '47500.00', 8, 3, 18),
(24, '9950.00', 3, 4, 19),
(25, '11000.00', 5, 1, 19),
(26, '9500.00', 3, 4, 20),
(27, '10500.00', 5, 24, 20),
(28, '60000.00', 9, 24, 21),
(29, '5000.00', 3, 25, 22),
(30, '5000.00', 25, 13, 23),
(31, '5000.00', 13, 26, 24),
(32, '191750.00', 15, 24, 25),
(33, '191750.00', 23, 15, 26),
(34, '60000.00', 26, 9, 27),
(35, '100.00', 3, 24, 28),
(36, '529.00', 24, 8, 29),
(37, '529.00', 8, 3, 30),
(38, '1200.00', 3, 24, 31),
(39, '2000.00', 3, 24, 32),
(40, '1464.00', 3, 24, 33),
(41, '100.00', 24, 8, 34),
(42, '100.00', 8, 3, 35),
(43, '100.00', 24, 8, 36),
(44, '100.00', 8, 3, 37),
(45, '1000.00', 3, 24, 38),
(46, '100.00', 3, 24, 39),
(47, '1100.00', 24, 8, 40),
(48, '1100.00', 8, 3, 41),
(49, '50.00', 24, 8, 42),
(50, '50.00', 8, 3, 43),
(51, '10.00', 24, 8, 44),
(52, '10.00', 8, 3, 45),
(53, '187225.00', 24, 13, 46),
(54, '187225.00', 13, 23, 47),
(55, '1000.00', 24, 2, 48),
(56, '182.44', 4, 3, 48),
(57, '60000.00', 24, 11, 49),
(58, '60000.00', 11, 9, 50),
(59, '187225.00', 15, 24, 51),
(60, '187225.00', 23, 15, 52),
(61, '6250.00', 3, 25, 54),
(62, '315448.00', 3, 25, 55),
(63, '11121.00', 3, 25, 56),
(64, '1164.00', 3, 25, 57),
(65, '120.00', 25, 8, 58),
(66, '120.00', 8, 3, 59),
(67, '276.00', 24, 8, 60),
(68, '276.00', 8, 3, 61),
(69, '400.00', 3, 24, 62),
(70, '714.00', 24, 8, 63),
(71, '714.00', 8, 3, 64),
(72, '2300.00', 1, 2, 65),
(73, '2223.64', 4, 3, 65),
(74, '2300.00', 1, 2, 66),
(75, '2223.64', 4, 3, 66),
(76, '2300.00', 1, 2, 67),
(77, '2223.64', 4, 3, 67),
(78, '2300.00', 1, 2, 68),
(79, '2223.64', 4, 3, 68),
(80, '0.00', 1, 2, 69),
(81, '0.00', 4, 3, 69),
(82, '0.00', 1, 2, 70),
(83, '0.00', 4, 3, 70),
(84, '2300.00', 1, 2, 71),
(85, '2223.64', 4, 3, 71),
(86, '0.00', 1, 2, 72),
(87, '0.00', 4, 3, 72),
(88, '2300.00', 1, 2, 73),
(89, '2223.64', 4, 3, 73),
(90, '2300.00', 1, 2, 74),
(91, '2223.64', 4, 3, 74),
(92, '2300.00', 1, 2, 75),
(93, '2223.64', 4, 3, 75),
(94, '18400.00', 1, 2, 76),
(95, '17789.12', 4, 3, 76),
(96, '2300.00', 1, 2, 77),
(97, '2223.64', 4, 3, 77),
(98, '2300.00', 1, 2, 78),
(99, '2223.64', 4, 3, 78),
(100, '2300.00', 1, 2, 79),
(101, '2223.64', 4, 3, 79),
(102, '11500.00', 1, 2, 80),
(103, '11118.20', 4, 3, 80),
(104, '2300.00', 1, 2, 81),
(105, '2223.64', 4, 3, 81),
(106, '2300.00', 1, 2, 82),
(107, '2223.64', 4, 3, 82),
(108, '0.00', 1, 2, 83),
(109, '0.00', 4, 3, 83),
(110, '2300.00', 1, 2, 84),
(111, '2223.64', 4, 3, 84),
(112, '0.00', 1, 2, 85),
(113, '0.00', 4, 3, 85),
(114, '2300.00', 1, 2, 86),
(115, '2223.64', 4, 3, 86),
(116, '2300.00', 1, 2, 87),
(117, '2223.64', 4, 3, 87),
(118, '0.00', 1, 2, 88),
(119, '0.00', 4, 3, 88),
(120, '2300.00', 1, 2, 89),
(121, '2223.64', 4, 3, 89),
(122, '0.00', 1, 2, 90),
(123, '0.00', 4, 3, 90),
(124, '2300.00', 1, 2, 91),
(125, '2223.64', 4, 3, 91),
(126, '2300.00', 1, 2, 92),
(127, '2223.64', 4, 3, 92),
(128, '2300.00', 1, 2, 93),
(129, '2223.64', 4, 3, 93),
(130, '2300.00', 1, 2, 94),
(131, '2223.64', 4, 3, 94),
(132, '0.00', 1, 2, 95),
(133, '0.00', 4, 3, 95),
(134, '2300.00', 1, 2, 96),
(135, '2223.64', 4, 3, 96),
(136, '0.00', 1, 2, 97),
(137, '0.00', 4, 3, 97),
(138, '2300.00', 1, 2, 98),
(139, '2223.64', 4, 3, 98),
(140, '2300.00', 1, 2, 99),
(141, '2223.64', 4, 3, 99),
(142, '2300.00', 1, 2, 100),
(143, '2223.64', 4, 3, 100),
(144, '2300.00', 1, 2, 101),
(145, '2223.64', 4, 3, 101),
(146, '2300.00', 24, 2, 102),
(147, '2223.64', 4, 3, 102),
(148, '2300.00', 24, 2, 104),
(149, '2223.64', 4, 3, 104),
(150, '2300.00', 24, 2, 105),
(151, '2223.64', 4, 3, 105),
(152, '336863.00', 25, 1, 106),
(153, '2000.00', 1, 27, 107),
(154, '3000.00', 27, 1, 108),
(155, '2000.00', 3, 27, 109),
(156, '45000.00', 24, 8, 110),
(157, '45000.00', 8, 3, 111),
(158, '144.00', 3, 25, 112),
(159, '144.00', 3, 25, 113),
(160, '144.00', 25, 8, 114),
(161, '144.00', 8, 3, 115);
-- --------------------------------------------------------
--
-- Table structure for table `cane_entry_types`
--
CREATE TABLE IF NOT EXISTS `cane_entry_types` (
`id` int(5) NOT NULL,
`name` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `cane_entry_types`
--
INSERT INTO `cane_entry_types` (`id`, `name`) VALUES
(1, 'Receipt'),
(2, 'Payment'),
(3, 'Purchase'),
(4, 'Journal'),
(5, 'Purchase Return'),
(6, 'Sales Return'),
(7, 'Expenses');
-- --------------------------------------------------------
--
-- Table structure for table `cane_party`
--
CREATE TABLE IF NOT EXISTS `cane_party` (
`party_id` int(11) NOT NULL AUTO_INCREMENT,
`party_name` varchar(150) NOT NULL,
`party_contact` varchar(50) NOT NULL,
PRIMARY KEY (`party_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `cane_party`
--
INSERT INTO `cane_party` (`party_id`, `party_name`, `party_contact`) VALUES
(3, 'Computer Source', '0171923456'),
(4, 'Microsft Corporation', '0167304343'),
(5, 'Boom', '123123');
-- --------------------------------------------------------
--
-- Table structure for table `cane_payment`
--
CREATE TABLE IF NOT EXISTS `cane_payment` (
`payment_id` int(11) NOT NULL AUTO_INCREMENT,
`payment_invoice` varchar(255) NOT NULL,
`payment_num` int(11) NOT NULL,
`payment_date` date NOT NULL,
`payment_type_id` int(11) NOT NULL,
PRIMARY KEY (`payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `cane_payment`
--
INSERT INTO `cane_payment` (`payment_id`, `payment_invoice`, `payment_num`, `payment_date`, `payment_type_id`) VALUES
(1, 'PMT-PC-2013-000001', 1, '2013-01-14', 2),
(2, 'PMT-PC-2013-000002', 2, '2013-01-14', 2),
(3, 'PMT-PC-2013-000003', 3, '2013-06-23', 2),
(4, 'PMT-PC-2014-000001', 1, '2014-02-28', 1),
(5, 'PMT-PC-2014-000002', 2, '2014-02-28', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_payment_types`
--
CREATE TABLE IF NOT EXISTS `cane_payment_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`payment_name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `cane_payment_types`
--
INSERT INTO `cane_payment_types` (`id`, `payment_name`) VALUES
(1, 'cash'),
(2, 'cheque');
-- --------------------------------------------------------
--
-- Table structure for table `cane_products`
--
CREATE TABLE IF NOT EXISTS `cane_products` (
`product_id` int(11) NOT NULL AUTO_INCREMENT,
`category_id` int(11) NOT NULL,
`brand_id` int(11) NOT NULL,
`product_item` varchar(200) NOT NULL,
`unit_name` varchar(50) DEFAULT NULL,
`sku_number` varchar(100) DEFAULT NULL,
`buy_price` decimal(10,2) NOT NULL,
`selling_price` decimal(10,2) NOT NULL,
`in_stock` int(11) NOT NULL,
`is_serial_available` int(11) NOT NULL,
PRIMARY KEY (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
--
-- Dumping data for table `cane_products`
--
INSERT INTO `cane_products` (`product_id`, `category_id`, `brand_id`, `product_item`, `unit_name`, `sku_number`, `buy_price`, `selling_price`, `in_stock`, `is_serial_available`) VALUES
(12, 18, 15, 'USB', '', NULL, '1567.86', '500.00', 180, 2),
(13, 29, 16, 'Napa Syrup', '', NULL, '0.00', '20.00', 0, 2),
(14, 19, 14, '360DDS', 'Pcss', '12345', '12.00', '5000.00', 12, 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_product_serials`
--
CREATE TABLE IF NOT EXISTS `cane_product_serials` (
`serial_id` int(11) NOT NULL AUTO_INCREMENT,
`product_serial` varchar(255) NOT NULL,
`product_id` int(11) NOT NULL,
`product_warranty` varchar(150) NOT NULL,
`purchase_id` int(11) NOT NULL,
PRIMARY KEY (`serial_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=27 ;
--
-- Dumping data for table `cane_product_serials`
--
INSERT INTO `cane_product_serials` (`serial_id`, `product_serial`, `product_id`, `product_warranty`, `purchase_id`) VALUES
(25, '44', 11, '365', 16),
(26, '33', 11, '365', 16);
-- --------------------------------------------------------
--
-- Table structure for table `cane_purchase`
--
CREATE TABLE IF NOT EXISTS `cane_purchase` (
`purchase_id` int(11) NOT NULL AUTO_INCREMENT,
`purchase_voucher` varchar(255) NOT NULL,
`num` int(11) NOT NULL,
`party_id` int(11) NOT NULL,
`party_invoice` varchar(100) NOT NULL,
`purchase_total` decimal(10,2) NOT NULL,
`purchase_date` date NOT NULL,
`entry_by` int(11) NOT NULL,
PRIMARY KEY (`purchase_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;
--
-- Dumping data for table `cane_purchase`
--
INSERT INTO `cane_purchase` (`purchase_id`, `purchase_voucher`, `num`, `party_id`, `party_invoice`, `purchase_total`, `purchase_date`, `entry_by`) VALUES
(16, 'PUR-PC-2014-000001', 1, 4, '2050', '6250.00', '2014-02-24', 1),
(17, 'PUR-PC-2014-000002', 2, 4, '23424', '315448.00', '2014-02-24', 1),
(18, 'PUR-PC-2014-000003', 3, 4, '2030', '11121.00', '2014-02-24', 1),
(19, 'PUR-PC-2014-000004', 4, 4, '203', '1164.00', '2014-02-24', 1),
(20, 'PUR-PC-2014-000005', 5, 3, '2345', '400.00', '2014-02-25', 1),
(21, 'PUR-PC-2014-000006', 6, 5, '234234', '2000.00', '2014-02-28', 1),
(22, 'PUR-PC-2014-000007', 7, 4, '', '144.00', '2014-12-17', 1),
(23, 'PUR-PC-2014-000008', 8, 4, '1243535', '144.00', '2014-12-17', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_purchase_details`
--
CREATE TABLE IF NOT EXISTS `cane_purchase_details` (
`p_details_id` int(11) NOT NULL AUTO_INCREMENT,
`purchase_id` int(11) NOT NULL,
`p_product_id` int(11) NOT NULL,
`p_unit_price` decimal(10,2) NOT NULL,
`p_quantity` int(11) NOT NULL,
PRIMARY KEY (`p_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=32 ;
--
-- Dumping data for table `cane_purchase_details`
--
INSERT INTO `cane_purchase_details` (`p_details_id`, `purchase_id`, `p_product_id`, `p_unit_price`, `p_quantity`) VALUES
(24, 16, 11, '250.00', 25),
(25, 17, 12, '5633.00', 56),
(26, 18, 11, '337.00', 33),
(27, 19, 11, '388.00', 3),
(28, 20, 11, '20.00', 20),
(29, 21, 11, '20.00', 100),
(30, 22, 14, '12.00', 12),
(31, 23, 12, '12.00', 12);
-- --------------------------------------------------------
--
-- Table structure for table `cane_purchase_return`
--
CREATE TABLE IF NOT EXISTS `cane_purchase_return` (
`p_return_id` int(11) NOT NULL AUTO_INCREMENT,
`party_id` int(11) NOT NULL,
`return_against_invoice` varchar(150) DEFAULT NULL,
`return_total_amount` decimal(10,2) NOT NULL,
`return_date` date NOT NULL,
`entry_by` int(11) NOT NULL,
PRIMARY KEY (`p_return_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
--
-- Dumping data for table `cane_purchase_return`
--
INSERT INTO `cane_purchase_return` (`p_return_id`, `party_id`, `return_against_invoice`, `return_total_amount`, `return_date`, `entry_by`) VALUES
(8, 4, '3244', '120.00', '2014-02-24', 1),
(9, 3, '23423', '276.00', '2014-02-24', 1),
(10, 3, '', '714.00', '2014-02-25', 1),
(11, 3, '234', '45000.00', '2014-03-01', 1),
(12, 4, '133', '144.00', '2014-12-17', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_purchase_return_details`
--
CREATE TABLE IF NOT EXISTS `cane_purchase_return_details` (
`p_return_details_id` int(11) NOT NULL AUTO_INCREMENT,
`p_return_id` int(11) NOT NULL,
`return_product_id` int(11) NOT NULL,
`return_unit_price` decimal(10,2) NOT NULL,
`return_quantity` int(11) NOT NULL,
PRIMARY KEY (`p_return_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
--
-- Dumping data for table `cane_purchase_return_details`
--
INSERT INTO `cane_purchase_return_details` (`p_return_details_id`, `p_return_id`, `return_product_id`, `return_unit_price`, `return_quantity`) VALUES
(8, 8, 11, '10.00', 12),
(9, 9, 11, '23.00', 12),
(10, 10, 11, '34.00', 21),
(11, 11, 12, '9000.00', 5),
(12, 12, 12, '12.00', 12);
-- --------------------------------------------------------
--
-- Table structure for table `cane_receipt`
--
CREATE TABLE IF NOT EXISTS `cane_receipt` (
`receipt_id` int(11) NOT NULL AUTO_INCREMENT,
`receipt_invoice` varchar(200) NOT NULL,
`receipt_num` int(11) NOT NULL,
`receipt_date` date NOT NULL,
`receipt_type_id` int(11) NOT NULL,
PRIMARY KEY (`receipt_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `cane_receipt`
--
INSERT INTO `cane_receipt` (`receipt_id`, `receipt_invoice`, `receipt_num`, `receipt_date`, `receipt_type_id`) VALUES
(1, 'RPT-PC-2013-000001', 1, '2013-01-14', 1),
(2, 'RPT-PC-2013-000002', 2, '2013-01-14', 1),
(3, 'RPT-PC-2013-000003', 3, '2013-01-14', 2),
(4, 'RPT-PC-2014-000001', 1, '2014-02-28', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_receipt_types`
--
CREATE TABLE IF NOT EXISTS `cane_receipt_types` (
`receipt_type_id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(100) NOT NULL,
PRIMARY KEY (`receipt_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `cane_receipt_types`
--
INSERT INTO `cane_receipt_types` (`receipt_type_id`, `description`) VALUES
(1, 'Cash'),
(2, 'Cheque'),
(3, 'In Bank Account');
-- --------------------------------------------------------
--
-- Table structure for table `cane_rep_delivery`
--
CREATE TABLE IF NOT EXISTS `cane_rep_delivery` (
`rep_delivery_id` int(11) NOT NULL AUTO_INCREMENT,
`rep_delivery_invoice` varchar(255) NOT NULL,
`rep_delivery_num` int(11) NOT NULL,
`rep_delivery_date` date NOT NULL,
`customer_name` varchar(255) NOT NULL,
`customer_contact` varchar(100) NOT NULL,
`prepared_by` int(11) NOT NULL,
PRIMARY KEY (`rep_delivery_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `cane_rep_delivery`
--
INSERT INTO `cane_rep_delivery` (`rep_delivery_id`, `rep_delivery_invoice`, `rep_delivery_num`, `rep_delivery_date`, `customer_name`, `customer_contact`, `prepared_by`) VALUES
(1, 'RPD-PC-2013-000001', 1, '2013-01-18', 'Computer Source', '0171923456', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_rep_delivery_products`
--
CREATE TABLE IF NOT EXISTS `cane_rep_delivery_products` (
`rep_items_id` int(11) NOT NULL AUTO_INCREMENT,
`previous_product_id` int(11) NOT NULL,
`previous_product_serial` varchar(255) NOT NULL,
`sales_invoice` varchar(200) NOT NULL,
`new_product_id` int(11) NOT NULL,
`new_product_serial` varchar(255) NOT NULL,
`acc_rec` decimal(10,2) NOT NULL,
`acc_pay` decimal(10,2) NOT NULL,
`parent_delivery_id` int(11) NOT NULL,
PRIMARY KEY (`rep_items_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `cane_rep_delivery_products`
--
INSERT INTO `cane_rep_delivery_products` (`rep_items_id`, `previous_product_id`, `previous_product_serial`, `sales_invoice`, `new_product_id`, `new_product_serial`, `acc_rec`, `acc_pay`, `parent_delivery_id`) VALUES
(1, 11, '2278', 'INV-PC-2013-000003', 11, '2278', '0.00', '0.00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_sales`
--
CREATE TABLE IF NOT EXISTS `cane_sales` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_number` varchar(255) NOT NULL,
`number` int(11) NOT NULL,
`sale_type` int(11) NOT NULL,
`party_id` int(11) DEFAULT NULL,
`customer_name` varchar(255) DEFAULT NULL,
`customer_mobile` varchar(150) DEFAULT NULL,
`sold_by` int(11) NOT NULL,
`sold_date` date NOT NULL,
`sold_time` varchar(120) NOT NULL,
`total_amount` decimal(10,2) NOT NULL,
`amount_received` decimal(10,2) NOT NULL,
`balance` varchar(255) NOT NULL,
`sales_return` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=49 ;
--
-- Dumping data for table `cane_sales`
--
INSERT INTO `cane_sales` (`id`, `invoice_number`, `number`, `sale_type`, `party_id`, `customer_name`, `customer_mobile`, `sold_by`, `sold_date`, `sold_time`, `total_amount`, `amount_received`, `balance`, `sales_return`) VALUES
(1, 'INV-PC-2013-000001', 1, 1, NULL, '<NAME>', '01827343234', 1, '2013-01-14', '01:21:33 PM', '11000.00', '11000.00', '0', 1),
(2, 'INV-PC-2013-000002', 2, 1, NULL, '<NAME>', '0182423434', 1, '2013-01-14', '01:25:16 PM', '11000.00', '11000.00', '0', 0),
(3, 'INV-PC-2013-000003', 3, 2, 3, NULL, NULL, 1, '2013-01-14', '01:27:30 PM', '11000.00', '500.00', '10500.00', 0),
(4, 'INV-PC-2013-000004', 4, 2, 3, NULL, NULL, 1, '2013-01-14', '01:38:49 PM', '11000.00', '1000.00', '10000.00', 0),
(5, 'INV-PC-2013-000005', 5, 2, 3, NULL, NULL, 1, '2013-01-14', '01:40:57 PM', '11000.00', '1000.00', '10000.00', 1),
(6, 'INV-PC-2014-000001', 1, 2, 3, NULL, NULL, 1, '2014-02-23', '06:52:42 PM', '1000.00', '1000.00', '0.00', 0),
(7, 'INV-PC-2014-000002', 2, 1, NULL, 'Mahbub', '01719349818', 1, '2014-02-26', '07:41:26 AM', '2300.00', '2300.00', '0', 0),
(8, 'INV-PC-2014-000003', 3, 1, NULL, '<NAME>', '01718349818', 1, '2014-02-26', '07:43:28 AM', '2300.00', '2300.00', '0', 0),
(9, 'INV-PC-2014-000004', 4, 1, NULL, '<NAME>', '01672095631', 1, '2014-02-26', '07:48:50 AM', '2300.00', '2300.00', '0', 0),
(10, 'INV-PC-2014-000005', 5, 1, NULL, '<NAME>', '01672095631', 1, '2014-02-26', '07:50:12 AM', '2300.00', '2300.00', '0', 0),
(11, 'INV-PC-2014-000006', 6, 1, NULL, '<NAME>', '01719349818', 1, '2014-02-26', '07:51:21 AM', '2300.00', '2300.00', '0', 0),
(12, 'INV-PC-2014-000007', 7, 1, NULL, '', '', 1, '1970-01-01', '07:52:47 AM', '0.00', '0.00', '0', 0),
(13, 'INV-PC-2014-000007', 7, 1, NULL, '', '', 1, '1970-01-01', '07:54:18 AM', '0.00', '0.00', '0', 0),
(14, 'INV-PC-2014-000007', 7, 1, NULL, 'Mustaque', '01719349818', 1, '2014-02-26', '07:55:05 AM', '2300.00', '2300.00', '0', 0),
(15, 'INV-PC-2014-000008', 8, 1, NULL, '', '', 1, '1970-01-01', '08:02:03 AM', '0.00', '0.00', '0', 0),
(16, 'INV-PC-2014-000008', 8, 1, NULL, '<NAME>', '01719349818', 1, '2014-02-26', '08:02:18 AM', '2300.00', '2300.00', '0', 0),
(17, 'INV-PC-2014-000009', 9, 1, NULL, 'asd', '3244', 1, '2014-02-26', '08:03:25 AM', '2300.00', '2300.00', '0', 0),
(18, 'INV-PC-2014-000010', 10, 1, NULL, 'asd', '324', 1, '2014-02-26', '08:04:27 AM', '2300.00', '2300.00', '0', 0),
(19, 'INV-PC-2014-000011', 11, 1, NULL, '<NAME>', '01719349818', 1, '2014-02-26', '08:06:51 AM', '18400.00', '18400.00', '0', 0),
(20, 'INV-PC-2014-000012', 12, 1, NULL, 'asd', 'asd', 1, '2014-02-26', '08:19:29 AM', '2300.00', '2300.00', '0', 0),
(21, 'INV-PC-2014-000013', 13, 1, NULL, 'sdf', 'sdf', 1, '2014-02-26', '08:21:14 AM', '2300.00', '2300.00', '0', 0),
(22, 'INV-PC-2014-000014', 14, 1, NULL, '<NAME>', '01719349818', 1, '2014-02-26', '10:25:20 AM', '2300.00', '2300.00', '0', 0),
(23, 'INV-PC-2014-000015', 15, 1, NULL, '<NAME>', '01719349818', 1, '2014-02-26', '10:28:09 AM', '11500.00', '11500.00', '0', 0),
(24, 'INV-PC-2014-000016', 16, 1, NULL, 'sf', 'sdf', 1, '2014-02-26', '10:31:55 AM', '2300.00', '2300.00', '0', 0),
(25, 'INV-PC-2014-000017', 17, 1, NULL, 'asd', 'ad', 1, '2014-02-26', '10:32:30 AM', '2300.00', '2300.00', '0', 0),
(26, 'INV-PC-2014-000018', 18, 1, NULL, '', '', 1, '1970-01-01', '10:34:54 AM', '0.00', '0.00', '0', 0),
(27, 'INV-PC-2014-000018', 18, 1, NULL, 'ad', 'ad', 1, '2014-02-26', '10:35:01 AM', '2300.00', '2300.00', '0', 0),
(28, 'INV-PC-2014-000019', 19, 1, NULL, '', '', 1, '1970-01-01', '10:37:50 AM', '0.00', '0.00', '0', 0),
(29, 'INV-PC-2014-000019', 19, 1, NULL, 'sdf', 'sdf', 1, '2014-02-26', '10:38:02 AM', '2300.00', '2300.00', '0', 0),
(30, 'INV-PC-2014-000020', 20, 1, NULL, '<NAME>', '0181231232', 1, '2014-02-26', '10:38:55 AM', '2300.00', '2300.00', '0', 0),
(31, 'INV-PC-2014-000021', 21, 1, NULL, '', '', 1, '1970-01-01', '10:39:47 AM', '0.00', '0.00', '0', 0),
(32, 'INV-PC-2014-000021', 21, 1, NULL, 'sdf', 'dsf', 1, '2014-02-26', '10:39:58 AM', '2300.00', '2300.00', '0', 0),
(33, 'INV-PC-2014-000022', 22, 1, NULL, '', '', 1, '1970-01-01', '10:42:12 AM', '0.00', '0.00', '0', 0),
(34, 'INV-PC-2014-000022', 22, 1, NULL, 'asd', 'asd', 1, '2014-02-26', '10:42:32 AM', '2300.00', '2300.00', '0', 0),
(35, 'INV-PC-2014-000023', 23, 1, NULL, 'asd', 'ad', 1, '2014-02-26', '10:43:37 AM', '2300.00', '2300.00', '0', 0),
(36, 'INV-PC-2014-000024', 24, 1, NULL, 'sdf', 'sdf', 1, '2014-02-26', '10:44:11 AM', '2300.00', '2300.00', '0', 0),
(37, 'INV-PC-2014-000025', 25, 1, NULL, 'asd', 'asd', 1, '2014-02-26', '10:46:47 AM', '2300.00', '2300.00', '0', 0),
(38, 'INV-PC-2014-000026', 26, 1, NULL, '', '', 1, '1970-01-01', '10:47:22 AM', '0.00', '0.00', '0', 0),
(39, 'INV-PC-2014-000026', 26, 1, NULL, 'asd', 'asd', 1, '2014-02-26', '10:47:30 AM', '2300.00', '2300.00', '0', 0),
(40, 'INV-PC-2014-000027', 27, 1, NULL, '', '', 1, '1970-01-01', '10:48:23 AM', '0.00', '0.00', '0', 0),
(41, 'INV-PC-2014-000027', 27, 1, NULL, 'asd', 'asd', 1, '2014-02-26', '10:48:32 AM', '2300.00', '2300.00', '0', 0),
(42, 'INV-PC-2014-000028', 28, 1, NULL, '<NAME>', '01719349818', 1, '2014-02-26', '12:08:52 PM', '2300.00', '2300.00', '0', 0),
(43, 'INV-PC-2014-000029', 29, 1, NULL, 'sad', '23434', 1, '2014-02-27', '09:14:24 AM', '2300.00', '2300.00', '0', 0),
(44, 'INV-PC-2014-000030', 30, 1, NULL, 'asdasd', 'sadasd', 1, '2014-02-27', '09:17:14 AM', '2300.00', '2300.00', '0', 0),
(45, 'INV-PC-2014-000031', 31, 2, 3, NULL, NULL, 1, '2014-02-27', '09:21:02 AM', '2300.00', '2300.00', '0.00', 0),
(46, 'INV-PC-2014-000032', 32, 2, 0, NULL, NULL, 1, '2014-02-27', '10:59:09 AM', '2300.00', '2300.00', '0.00', 0),
(47, 'INV-PC-2014-000033', 33, 2, 3, NULL, NULL, 1, '2014-02-27', '11:05:52 AM', '2300.00', '2300.00', '0.00', 0),
(48, 'INV-PC-2014-000034', 34, 2, 3, NULL, NULL, 1, '2014-02-27', '11:08:07 AM', '2300.00', '2300.00', '0.00', 0);
-- --------------------------------------------------------
--
-- Table structure for table `cane_sales_details`
--
CREATE TABLE IF NOT EXISTS `cane_sales_details` (
`sales_details_id` int(11) NOT NULL AUTO_INCREMENT,
`sales_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`buy_price` decimal(10,2) NOT NULL,
`selling_price` decimal(10,2) NOT NULL,
`quantity` int(11) NOT NULL,
PRIMARY KEY (`sales_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=56 ;
--
-- Dumping data for table `cane_sales_details`
--
INSERT INTO `cane_sales_details` (`sales_details_id`, `sales_id`, `product_id`, `buy_price`, `selling_price`, `quantity`) VALUES
(1, 1, 11, '9500.00', '10500.00', 1),
(2, 1, 12, '450.00', '500.00', 1),
(3, 2, 11, '9500.00', '10500.00', 1),
(4, 2, 12, '450.00', '500.00', 1),
(5, 3, 11, '9500.00', '10500.00', 1),
(6, 3, 12, '450.00', '500.00', 1),
(7, 4, 11, '9500.00', '10500.00', 1),
(8, 4, 12, '450.00', '500.00', 1),
(9, 5, 11, '9500.00', '10500.00', 1),
(10, 5, 12, '450.00', '500.00', 1),
(11, 6, 12, '91.22', '500.00', 2),
(12, 7, 11, '2223.64', '2300.00', 1),
(13, 8, 11, '2223.64', '2300.00', 1),
(14, 9, 11, '2223.64', '2300.00', 1),
(15, 10, 11, '2223.64', '2300.00', 1),
(16, 11, 11, '2223.64', '2300.00', 1),
(17, 14, 11, '2223.64', '2300.00', 1),
(18, 16, 11, '2223.64', '2300.00', 1),
(19, 17, 11, '2223.64', '2300.00', 1),
(20, 18, 11, '2223.64', '2300.00', 1),
(21, 19, 11, '2223.64', '2300.00', 1),
(22, 19, 11, '2223.64', '2300.00', 1),
(23, 19, 11, '2223.64', '2300.00', 1),
(24, 19, 11, '2223.64', '2300.00', 1),
(25, 19, 11, '2223.64', '2300.00', 1),
(26, 19, 11, '2223.64', '2300.00', 1),
(27, 19, 11, '2223.64', '2300.00', 1),
(28, 19, 11, '2223.64', '2300.00', 1),
(29, 20, 11, '2223.64', '2300.00', 1),
(30, 21, 11, '2223.64', '2300.00', 1),
(31, 22, 11, '2223.64', '2300.00', 1),
(32, 23, 11, '2223.64', '2300.00', 1),
(33, 23, 11, '2223.64', '2300.00', 1),
(34, 23, 11, '2223.64', '2300.00', 1),
(35, 23, 11, '2223.64', '2300.00', 1),
(36, 23, 11, '2223.64', '2300.00', 1),
(37, 24, 11, '2223.64', '2300.00', 1),
(38, 25, 11, '2223.64', '2300.00', 1),
(39, 27, 11, '2223.64', '2300.00', 1),
(40, 29, 11, '2223.64', '2300.00', 1),
(41, 30, 11, '2223.64', '2300.00', 1),
(42, 32, 11, '2223.64', '2300.00', 1),
(43, 34, 11, '2223.64', '2300.00', 1),
(44, 35, 11, '2223.64', '2300.00', 1),
(45, 36, 11, '2223.64', '2300.00', 1),
(46, 37, 11, '2223.64', '2300.00', 1),
(47, 39, 11, '2223.64', '2300.00', 1),
(48, 41, 11, '2223.64', '2300.00', 1),
(49, 42, 11, '2223.64', '2300.00', 1),
(50, 43, 11, '2223.64', '2300.00', 1),
(51, 44, 11, '2223.64', '2300.00', 1),
(52, 45, 11, '2223.64', '2300.00', 1),
(53, 46, 11, '2223.64', '2300.00', 1),
(54, 47, 11, '2223.64', '2300.00', 1),
(55, 48, 11, '2223.64', '2300.00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_sales_p_serials`
--
CREATE TABLE IF NOT EXISTS `cane_sales_p_serials` (
`sold_serials_id` int(11) NOT NULL AUTO_INCREMENT,
`sold_product_serial` varchar(255) NOT NULL,
`warranty` varchar(100) NOT NULL,
`purchase_id` int(11) NOT NULL,
`sold_details_id` int(11) NOT NULL,
PRIMARY KEY (`sold_serials_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=49 ;
--
-- Dumping data for table `cane_sales_p_serials`
--
INSERT INTO `cane_sales_p_serials` (`sold_serials_id`, `sold_product_serial`, `warranty`, `purchase_id`, `sold_details_id`) VALUES
(2, '2149', '365', 7, 3),
(3, '2278', '365', 7, 5),
(4, '3803', '365', 7, 7),
(5, '817', '45', 18, 12),
(6, '814', '45', 18, 13),
(7, '928', '45', 18, 14),
(8, 'Mango', '365', 16, 15),
(9, 'Banana', '365', 16, 16),
(10, '23423444', '365', 16, 17),
(11, '23423433', '365', 16, 18),
(12, '234234', '365', 16, 19),
(13, 'vsdf', '34', 16, 20),
(14, '122ss', '45', 20, 21),
(15, 'gdf', '234', 16, 22),
(16, 'sasd', '34', 16, 23),
(17, '847', '45', 18, 24),
(18, '843', '45', 18, 25),
(19, '864', '45', 18, 26),
(20, '588', '45', 18, 27),
(21, '903', '45', 18, 28),
(22, '970', '45', 18, 29),
(23, '647', '45', 18, 30),
(24, 'da33', '45', 20, 31),
(25, '822', '45', 18, 32),
(26, '600', '45', 18, 33),
(27, '662', '45', 18, 34),
(28, '4420', '34', 18, 35),
(29, '737', '45', 18, 36),
(30, '860', '45', 18, 37),
(31, '845', '45', 18, 38),
(32, '2805', '34', 18, 39),
(33, '617', '45', 18, 40),
(34, '606', '45', 18, 41),
(35, '990', '45', 18, 42),
(36, '896', '45', 18, 43),
(37, '3441', '34', 18, 44),
(38, '553', '45', 18, 45),
(39, '4988', '34', 18, 46),
(40, '3258', '34', 18, 47),
(41, '4659', '34', 18, 48),
(42, '4888', '34', 18, 49),
(43, '608', '45', 18, 50),
(44, 'wdb', '234', 16, 51),
(45, '787', '45', 18, 52),
(46, '2932', '34', 18, 53),
(47, '2666', '34', 18, 54),
(48, '4902', '34', 18, 55);
-- --------------------------------------------------------
--
-- Table structure for table `cane_sales_return`
--
CREATE TABLE IF NOT EXISTS `cane_sales_return` (
`sales_return_id` int(11) NOT NULL AUTO_INCREMENT,
`sales_return_invoice` varchar(255) NOT NULL,
`num` int(11) NOT NULL,
`against_sales_invoice` varchar(255) NOT NULL,
`sales_return_total` decimal(10,2) NOT NULL,
`sales_return_date` date NOT NULL,
`entry_by` int(11) NOT NULL,
PRIMARY KEY (`sales_return_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `cane_sales_return`
--
INSERT INTO `cane_sales_return` (`sales_return_id`, `sales_return_invoice`, `num`, `against_sales_invoice`, `sales_return_total`, `sales_return_date`, `entry_by`) VALUES
(1, 'SR-PC-2013-000001', 1, 'INV-PC-2013-000001', '11000.00', '2013-01-14', 1),
(2, 'SR-PC-2013-000002', 2, 'INV-PC-2013-000005', '10500.00', '2013-01-14', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_sales_return_details`
--
CREATE TABLE IF NOT EXISTS `cane_sales_return_details` (
`s_return_details_id` int(11) NOT NULL AUTO_INCREMENT,
`sales_return_id` int(11) NOT NULL,
`return_product_id` int(11) NOT NULL,
`return_unit_cost` decimal(10,2) NOT NULL,
`return_unit_price` decimal(10,2) NOT NULL,
`return_quantity` int(11) NOT NULL,
PRIMARY KEY (`s_return_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `cane_sales_return_details`
--
INSERT INTO `cane_sales_return_details` (`s_return_details_id`, `sales_return_id`, `return_product_id`, `return_unit_cost`, `return_unit_price`, `return_quantity`) VALUES
(1, 1, 11, '9500.00', '10500.00', 1),
(2, 1, 12, '450.00', '500.00', 1),
(3, 2, 11, '9500.00', '10500.00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_voucher`
--
CREATE TABLE IF NOT EXISTS `cane_voucher` (
`voucher_id` int(11) NOT NULL AUTO_INCREMENT,
`voucher_number` varchar(200) DEFAULT NULL,
`narration` varchar(255) DEFAULT NULL,
`trans_date` date NOT NULL,
`entry_by` int(11) NOT NULL,
PRIMARY KEY (`voucher_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=116 ;
--
-- Dumping data for table `cane_voucher`
--
INSERT INTO `cane_voucher` (`voucher_id`, `voucher_number`, `narration`, `trans_date`, `entry_by`) VALUES
(7, 'PUR-PC-2013-000001', 'Purchased Goods', '2013-01-14', 1),
(8, 'PMT-PC-2013-000001', 'Payment for purchased goods', '2013-01-14', 1),
(9, 'Journal', 'Transfered Balance From Bank to Paid with Cheque Account', '2013-01-18', 1),
(10, 'INV-PC-2013-000001', 'Product Sold On Cash', '2013-01-14', 1),
(11, 'INV-PC-2013-000002', 'Product Sold On Cash', '2013-01-14', 1),
(12, 'INV-PC-2013-000003', 'Sold Product to Party', '2013-01-14', 1),
(13, 'RPT-PC-2013-000001', 'INV-PC-2013-000003', '2013-01-14', 1),
(14, 'INV-PC-2013-000004', 'Sold Product to Party', '2013-01-14', 1),
(15, 'INV-PC-2013-000005', 'Sold Product to Party', '2013-01-14', 1),
(16, 'RPT-PC-2013-000002', 'INV-PC-2013-000005', '2013-01-14', 1),
(17, 'Journal', 'Returned Purchased Goods', '2013-01-14', 1),
(18, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2013-01-14', 1),
(19, 'SR-PC-2013-000001', 'Sales Return', '2013-01-14', 1),
(20, 'SR-PC-2013-000002', 'Sales Return', '2013-01-14', 1),
(21, 'RPT-PC-2013-000003', 'Previous Sales', '2013-01-14', 1),
(22, 'PUR-PC-2013-000002', 'Purchased Goods', '2013-01-14', 1),
(23, 'PMT-PC-2013-000002', 'Purchased Goods', '2013-01-14', 1),
(24, 'Journal', 'Transfered Balance From Bank to Paid with Cheque Account', '2013-01-17', 1),
(25, 'Journal', 'Paid Cheque Was Dishonored', '2013-01-18', 1),
(26, 'Journal', 'Transfered Balance To Bank From Paid Cheque Dishonor', '2013-01-18', 1),
(27, 'Journal', 'Balance Transfer To Bank Account', '2013-01-18', 1),
(28, 'PUR-PC-2013-000003', 'Purchased Goods', '2013-05-18', 1),
(29, 'Journal', 'Returned Purchased Goods', '2013-05-19', 1),
(30, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2013-05-19', 1),
(31, 'PUR-PC-2013-000004', 'Purchased Goods', '2013-05-19', 1),
(32, 'PUR-PC-2013-000005', 'Purchased Goods', '2013-05-19', 1),
(33, 'PUR-PC-2013-000006', 'Purchased Goods', '2013-05-19', 1),
(34, 'Journal', 'Returned Purchased Goods', '2013-05-19', 1),
(35, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2013-05-19', 1),
(36, 'Journal', 'Returned Purchased Goods', '2013-05-19', 1),
(37, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2013-05-19', 1),
(38, 'PUR-PC-2013-000007', 'Purchased Goods', '2013-05-19', 1),
(39, 'PUR-PC-2013-000008', 'Purchased Goods', '2013-05-19', 1),
(40, 'Journal', 'Returned Purchased Goods', '2013-05-19', 1),
(41, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2013-05-19', 1),
(42, 'Journal', 'Returned Purchased Goods', '2013-06-19', 1),
(43, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2013-06-19', 1),
(44, 'Journal', 'Returned Purchased Goods', '2013-06-19', 1),
(45, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2013-06-19', 1),
(46, 'PMT-PC-2013-000003', 'Paid BIll', '2013-06-23', 1),
(47, 'Journal', 'Transfered Balance From Bank to Paid with Cheque Account', '2013-06-26', 1),
(48, 'INV-PC-2014-000001', 'Sold Product to Party', '2014-02-23', 1),
(49, 'Journal', 'Canceled Received Cheque', '2014-02-23', 1),
(50, 'Journal', 'Adjusted Balance- Received Cheque Cancelled and Received With Cheque', '2014-02-23', 1),
(51, 'Journal', 'Paid Cheque Was Dishonored', '2014-02-23', 1),
(52, 'Journal', 'Transfered Balance To Bank From Paid Cheque Dishonor', '2014-02-23', 1),
(53, 'PUR-PC-2014-000001', 'Purchased Goods', '2014-02-24', 1),
(54, 'PUR-PC-2014-000001', 'Purchased Goods', '2014-02-24', 1),
(55, 'PUR-PC-2014-000002', 'Purchased Goods', '2014-02-24', 1),
(56, 'PUR-PC-2014-000003', 'Purchased Goods', '2014-02-24', 1),
(57, 'PUR-PC-2014-000004', 'Purchased Goods', '2014-02-24', 1),
(58, 'Journal', 'Returned Purchased Goods', '2014-02-24', 1),
(59, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2014-02-24', 1),
(60, 'Journal', 'Returned Purchased Goods', '2014-02-24', 1),
(61, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2014-02-24', 1),
(62, 'PUR-PC-2014-000005', 'Goods Purchased', '2014-02-25', 1),
(63, 'Journal', 'Returned Purchased Goods', '2014-02-25', 1),
(64, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2014-02-25', 1),
(65, '000003', 'Product Sold On Cash', '2014-02-26', 1),
(66, '000004', 'Product Sold On Cash', '2014-02-26', 1),
(67, '000005', 'Product Sold On Cash', '2014-02-26', 1),
(68, '000006', 'Product Sold On Cash', '2014-02-26', 1),
(69, '000007', 'Product Sold On Cash', '1970-01-01', 1),
(70, '000007', 'Product Sold On Cash', '1970-01-01', 1),
(71, '000007', 'Product Sold On Cash', '2014-02-26', 1),
(72, '000008', 'Product Sold On Cash', '1970-01-01', 1),
(73, '000008', 'Product Sold On Cash', '2014-02-26', 1),
(74, '000009', 'Product Sold On Cash', '2014-02-26', 1),
(75, '000010', 'Product Sold On Cash', '2014-02-26', 1),
(76, '000011', 'Product Sold On Cash', '2014-02-26', 1),
(77, '000012', 'Product Sold On Cash', '2014-02-26', 1),
(78, '000013', 'Product Sold On Cash', '2014-02-26', 1),
(79, '000014', 'Product Sold On Cash', '2014-02-26', 1),
(80, '000015', 'Product Sold On Cash', '2014-02-26', 1),
(81, '000016', 'Product Sold On Cash', '2014-02-26', 1),
(82, '000017', 'Product Sold On Cash', '2014-02-26', 1),
(83, '000018', 'Product Sold On Cash', '1970-01-01', 1),
(84, '000018', 'Product Sold On Cash', '2014-02-26', 1),
(85, '000019', 'Product Sold On Cash', '1970-01-01', 1),
(86, '000019', 'Product Sold On Cash', '2014-02-26', 1),
(87, '000020', 'Product Sold On Cash', '2014-02-26', 1),
(88, '000021', 'Product Sold On Cash', '1970-01-01', 1),
(89, '000021', 'Product Sold On Cash', '2014-02-26', 1),
(90, '000022', 'Product Sold On Cash', '1970-01-01', 1),
(91, '000022', 'Product Sold On Cash', '2014-02-26', 1),
(92, '000023', 'Product Sold On Cash', '2014-02-26', 1),
(93, '000024', 'Product Sold On Cash', '2014-02-26', 1),
(94, '000025', 'Product Sold On Cash', '2014-02-26', 1),
(95, '000026', 'Product Sold On Cash', '1970-01-01', 1),
(96, '000026', 'Product Sold On Cash', '2014-02-26', 1),
(97, '000027', 'Product Sold On Cash', '1970-01-01', 1),
(98, '000027', 'Product Sold On Cash', '2014-02-26', 1),
(99, '000028', 'Product Sold On Cash', '2014-02-26', 1),
(100, '000029', 'Product Sold On Cash', '2014-02-27', 1),
(101, 'INV-PC-2014-000030', 'Product Sold On Cash', '2014-02-27', 1),
(102, 'INV-PC-2014-000031', 'Sold Product to Party', '2014-02-27', 1),
(103, 'INV-PC-2014-000032', 'Sold Product to Party', '2014-02-27', 1),
(104, 'INV-PC-2014-000033', 'Sold Product to Party', '2014-02-27', 1),
(105, 'INV-PC-2014-000034', 'Sold Product to Party', '2014-02-27', 1),
(106, 'PMT-PC-2014-000001', 'Paid', '2014-02-28', 1),
(107, 'RPT-PC-2014-000001', 'asd', '2014-02-28', 1),
(108, 'PMT-PC-2014-000002', '', '2014-02-28', 1),
(109, 'PUR-PC-2014-000006', 'Purchased Goods', '2014-02-28', 1),
(110, 'Journal', 'Returned Purchased Goods', '2014-03-01', 1),
(111, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2014-03-01', 1),
(112, 'PUR-PC-2014-000007', 'Goods Purchased', '2014-12-17', 1),
(113, 'PUR-PC-2014-000008', 'Goods Purchased', '2014-12-17', 1),
(114, 'Journal', 'Returned Purchased Goods', '2014-12-17', 1),
(115, 'Journal', 'Transfered Balance To Purchase From Purchase Return', '2014-12-17', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cane_warranty`
--
CREATE TABLE IF NOT EXISTS `cane_warranty` (
`warranty_id` int(11) NOT NULL AUTO_INCREMENT,
`warranty_invoice` varchar(255) NOT NULL,
`warranty_num` int(11) NOT NULL,
`generated_date` date NOT NULL,
`entry_by` int(11) NOT NULL,
`customer_name` varchar(150) NOT NULL,
`customer_contact` varchar(50) NOT NULL,
PRIMARY KEY (`warranty_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `cane_warranty`
--
INSERT INTO `cane_warranty` (`warranty_id`, `warranty_invoice`, `warranty_num`, `generated_date`, `entry_by`, `customer_name`, `customer_contact`) VALUES
(1, 'CMP-PC-2013-000001', 1, '2013-01-18', 1, 'Computer Source', '0171923456');
-- --------------------------------------------------------
--
-- Table structure for table `cane_warranty_items`
--
CREATE TABLE IF NOT EXISTS `cane_warranty_items` (
`warr_id` int(11) NOT NULL AUTO_INCREMENT,
`on_warranty_serial` varchar(255) NOT NULL,
`parent_warranty_id` int(11) NOT NULL,
`problem_solved` int(11) NOT NULL,
PRIMARY KEY (`warr_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- file:json.sql ln:693 expect:true
select * from json_to_recordset('[{"a":1,"b":{"d":"foo"},"c":true},{"a":2,"c":false,"b":{"d":"bar"}}]')
as x(a int, b json, c boolean)
|
<filename>sql/table_drugbank.actions.sql
/**
* Create lookup table for DrugBank actions
*/
CREATE TABLE IF NOT EXISTS drugbank.actions (
id SERIAL NOT NULL,
name VARCHAR NOT NULL,
created_ts TIMESTAMPTZ NOT NULL DEFAULT now(),
modified_ts TIMESTAMPTZ NOT NULL DEFAULT now(),
deleted_ts TIMESTAMPTZ NULL,
CONSTRAINT drugbank_actions_pk
PRIMARY KEY (id),
CONSTRAINT uq_drugbank_actions_name
UNIQUE (name)
)
;
|
DROP TABLE IF EXISTS department;
DROP TABLE IF EXISTS dept_emp;
DROP TABLE IF EXISTS dept_manager;
DROP TABLE IF EXISTS employees;
DROP TABLE IF EXISTS salaries;
DROP TABLE IF EXISTS titles;
CREAT TABLE employee (
emp_no INT NOT NULL,
birth_date DATE NOT NULL,
first_name VARCHAR(14) NOT NULL,
last_name VARCHAR(16) NOT NULL,
gender VARCHAR(1) NOT NULL,
hire_date DATE NOT NULL,
PRIMARY KEY (emp_no));
CREAT TABLE department_employees (
emp_no INT NOT NULL,
dept_no VARCHAR(30)
from_date DATE NOT NULL,
to_date DATE NOT NULL,
PRIMARY KEY (emp_no, dept_no)
);
CREATE TABLE department (
dept_no VARCHAR(30) NOT NULL,
dept_name VARCHAR(255) NOT NULL,
PRIMARY KEY (dept_no)
);
CREATE TABLE dept_manager (
dept_no VARCHAR(30) NOT NULL,
emp_no INTEGER,
from_date VARCHAR(30),
to_date VARCHAR(30),
FOREIGN KEY (dept_no) REFERENCES department(dept_no),
FOREIGN KEY (emp_no) REFERENCES employees(emp_no)
);
CREATE TABLE salaries(
emp_no INTEGER NOT NULL,
salary INTEGER NOT NULL,
from_date VARCHAR(30),
to_date VARCHAR(30),
PRIMARY KEY (emp_no)
);
CREATE TABLES titles(
emp_no INTEGER NOT NULL,
title VARCHAR(255) NOT NULL,
from_date VARCHAR(30),
to_date VARCHAR(30),
PRIMARY KEY (emp_no,title,from_date)
);
|
/* Replace with your SQL commands */
INSERT INTO "crm_v2"."roles"
(name, date_created, date_updated)
VALUES ('licenceHolder', NOW(), NOW());
ALTER TABLE "crm_v2"."document_roles"
DROP CONSTRAINT document_billing_role;
/* remove any duplicate document roles so constraint can be added */
DELETE FROM crm_v2.document_roles WHERE document_role_id IN
(
SELECT r1.document_role_id FROM crm_v2.document_roles r1
JOIN crm_v2.document_roles r2 ON r1.document_role_id<>r2.document_role_id AND r1.document_id=r2.document_id AND r1.role_id=r2.role_id AND r1.start_date=r2.start_date
ORDER BY r1.document_id
);
ALTER TABLE "crm_v2"."document_roles"
ADD CONSTRAINT document_role_starts UNIQUE(document_id, role_id, start_date);
|
<reponame>LaudateCorpus1/oracle-database-assessment
SELECT db_name,
CAST(SUBSTR(dbversion,0,2) AS NUMERIC) dbversionshort,
dbversion,
dbfullversion,
(
SELECT TRIM(value)
FROM ${dataset}.dbparameters a
WHERE trim(con_id) = '1'
AND trim(name) = 'compatible' limit 1) compatible,
log_mode,
redo_gb_per_day,
platform_name,
db_size_allocated_gb,
db_size_in_use_gb,
dg_protection_level,
CASE
WHEN db_size_allocated_gb < 1000 THEN 'Data Pump or Exp/Imp (Imports data first, then indexes)'
WHEN db_size_allocated_gb > 1000
AND IF(cast(instr(dbfullversion,'Standard') AS NUMERIC) > 0, 'Standard', 'Enterprise') = 'Enterprise'
AND cast(substr(dbversion,0,1) AS NUMERIC) >= 11
AND platform_name IN ('Microsoft Windows (32-bit)',
'Microsoft Windows (x86)',
'Microsoft Windows 64-bit for AMD',
'Microsoft Windows (x86-64)',
'Microsoft Windows IA (64-bit)',
'Microsoft Windows (64-bit Itanium)',
'Linux 64-bit for AMD',
'Linux x86 64-bit',
'Solaris Operating System (AMD64)',
'Solaris Operating System (x86-64)') THEN 'Oracle Physical Dataguard'
WHEN db_size_allocated_gb > 1000
AND IF(cast(instr(dbfullversion,'Standard') AS NUMERIC) > 0, 'Standard', 'Enterprise') = 'Enterprise'
AND cast(substr(dbversion,0,1) AS NUMERIC) >= 10
AND platform_name IN ('Linux (32-bit)',
'Linux x86',
'Linux IA (64-bit)',
'Linux Itanium') THEN 'Oracle Physical Dataguard'
WHEN db_size_allocated_gb > 1000
AND IF(cast(instr(dbfullversion,'Standard') AS NUMERIC) > 0, 'Standard', 'Enterprise') = 'Standard' THEN 'Data Pump or Exp/Imp (Imports data first, then indexes) or RMAN (Backup/Restore w/ Optimized Downtime)'
WHEN db_size_allocated_gb > 1000
AND platform_name != 'Linux x86 64-bit' THEN 'Oracle TTS Cross Platform w/ Optimized Downtime'
END initial_recommended_migration_technique_to_same_dbversion,
'References: Doc ID 413484.1, Doc ID 1401921.1, Doc ID 2005729.1' oracle_references,
'' other_references
FROM ${dataset}.vdbsummary a;
|
<filename>inst/sql/sql_server/CreateCohortTableIndex.sql
-- Add an index to the @cohort_table table to help with performance in the next steps
CREATE INDEX idx_cohort_def_id ON @cohort_database_schema.@cohort_table (cohort_definition_id);
CREATE INDEX idx_cohort_subj ON @cohort_database_schema.@cohort_table (subject_id);
CREATE INDEX idx_cohort_start ON @cohort_database_schema.@cohort_table (cohort_start_date);
CREATE INDEX idx_cohort_end ON @cohort_database_schema.@cohort_table (cohort_end_date);
|
<reponame>parkersatterfield/Employee-Tracker-CMS
INSERT INTO department (name, id)
VALUES ('Accounting', 002),
('Engineering', 001),
('Management', 003),
('Sales', 004);
INSERT INTO role (title, salary, department_id)
VALUES ('Jr Engineer', 80000, 001),
('Sr Engineer', 100000, 001),
('Controller', 100000, 002),
('Project Manager', 120000, 003),
('Vice President', 200000, 003),
('Sales Lead', 90000, 004),
('Jr Salesman', 60000, 004);
INSERT INTO employee (first_name, last_name, manager_id)
VALUES ('John', 'Smith', 001),
('Ella', 'Louise', 002),
('Suzanne', 'Schaffer', 002),
('Loren', 'Weaver', 003),
('Derrick', 'Henry', 004);
|
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
--
-- CK_SYNC1 TABLE ck_sync1_drop_column_co_default1
--
CREATE TABLE ck_sync1_drop_column_co_default1 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
-- CK_SYNC1 TABLE ck_sync1_drop_column_co_default2
--
CREATE TABLE ck_sync1_drop_column_co_default2 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default2;
--
-- CK_SYNC1 TABLE ck_sync1_drop_column_co_default3
--
CREATE TABLE ck_sync1_drop_column_co_default3 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_drop_column_co_default3 VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default3;
--
-- CK_SYNC1 TABLE ck_sync1_drop_column_co_default4
--
CREATE TABLE ck_sync1_drop_column_co_default4 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_drop_column_co_default4 VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default4;
--
-- CK_SYNC1 TABLE ck_sync1_drop_column_co_default5
--
CREATE TABLE ck_sync1_drop_column_co_default5 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_drop_column_co_default5 VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default5;
--
-- CK_SYNC1 TABLE ck_sync1_drop_column_co_default6
--
CREATE TABLE ck_sync1_drop_column_co_default6 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_drop_column_co_default6 VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default6;
--
-- CK_SYNC1 TABLE ck_sync1_drop_column_co_default7
--
CREATE TABLE ck_sync1_drop_column_co_default7 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_drop_column_co_default7 VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default7;
--
-- CK_SYNC1 TABLE - used for insert select
--
CREATE TABLE ck_sync1_co_drop ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is the time', col009 character varying(512)[], col010 numeric(8),col011 int,col012 double precision, col013 bigint, col014 char(8), col015 bytea,col016 timestamp with time zone,col017 interval, col018 cidr, col019 inet, col020 macaddr,col021 serial ,col022 money,col023 bigserial, col024 timetz,col025 circle, col026 box, col027 name,col028 path, col029 int2,
col031 bit varying(256),col032 date, col034 lseg,col035 point,col036 polygon,col037 real,col039 time, col040 timestamp ) with ( appendonly='true', orientation='column') ;
INSERT INTO ck_sync1_co_drop VALUES (generate_series(1,10) ,'a',11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_co_drop;
--
--
--
-- DROP ALL COLUMN WITH DEFAULT TO - > CK_SYNC1 TABLE ck_sync1_drop_column_co_default1
--
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col001;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col002 , col003, col004, col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col002;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col003, col004, col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col003;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col004, col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col004;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col005;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col006;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col007;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col008;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col009;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col010;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col011;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col012;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col013;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col014;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'d','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col015;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col016;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col017;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'0.0.0.0','0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col018;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col019;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col020;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col021;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col022;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , generate_series(1,10),'00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col023;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col024;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '((2,2),1)','((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col025;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col026;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col027;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'((1,2),(2,1))',11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col028;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col029;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col031, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col031;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col032 , col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col032;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '((1,1),(2,2))','(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col034 , col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col034;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '(1,1)','((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col035, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col035;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) ,'((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col036 , col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col036;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , 111111,'23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a, col037, col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col037;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col039 , col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col039;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) , '2001-12-13 01:51:15');
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a,col040 from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
ALTER TABLE ck_sync1_drop_column_co_default1 DROP COLUMN col040;
INSERT INTO ck_sync1_drop_column_co_default1 VALUES (generate_series(1,10) );
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
INSERT INTO ck_sync1_drop_column_co_default1 SELECT a from ck_sync1_co_drop;
SELECT count(*) FROM ck_sync1_drop_column_co_default1;
--
--
--
-- DROP ALL COLUMN WITH DEFAULT TO - > SYNC1 TABLE sync1_drop_column_co_default2
--
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col001;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,11,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col002 , col003, col004, col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col002;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,true,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col003, col004, col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col003;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'111', '1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col004, col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col004;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'1_one', '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col005, col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col005;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '{1,2,3,4,5}', 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col006, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col006;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , 'Hello .. how are you', 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col007 , col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col007;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , 'Hello .. how are you', '{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col008, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col008;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'{one,two,three,four,five}', 12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col009, col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col009;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,12345678, 1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col010, col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col010;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,1, 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col011,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col011;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , 111.1111, 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col012 ,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col012;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , 11, '1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col013, col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col013;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'1_one_11', 'd','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col014, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col014;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'d','2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col015 , col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col015;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'2001-12-13 01:51:15+1359', '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col016, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col016;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '11', '0.0.0.0', '0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col017 ,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col017;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'0.0.0.0','0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col018 ,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col018;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'0.0.0.0', 'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col019, col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col019;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'AA:AA:AA:AA:AA:AA', generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col020, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col020;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col021, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col021;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10), '34.23', generate_series(1,10), '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col022, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col022;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , generate_series(1,10),'00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col023, col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col023;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '00:00:00+1359', '((2,2),1)', '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col024, col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col024;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '((2,2),1)','((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col025 , col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col025;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '((1,2),(2,1))', 'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col026, col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col026;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'hello', '((1,2),(2,1))', 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col027 , col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col027;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'((1,2),(2,1))',11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col028, col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col028;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , 11, '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col029 , col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col029;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '010101', '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col031, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col031;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '2001-12-13', '((1,1),(2,2))', '(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col032 , col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col032;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '((1,1),(2,2))','(1,1)', '((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col034 , col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col034;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '(1,1)','((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col035, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col035;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) ,'((1,2),(2,3),(3,4),(4,3),(3,2),(2,1))', 111111, '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col036 , col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col036;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , 111111,'23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a, col037, col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col037;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '23:00:00', '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col039 , col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col039;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) , '2001-12-13 01:51:15');
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a,col040 from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
--
--
ALTER TABLE sync1_drop_column_co_default2 DROP COLUMN col040;
INSERT INTO sync1_drop_column_co_default2 VALUES (generate_series(1,10) );
SELECT count(*) FROM sync1_drop_column_co_default2;
INSERT INTO sync1_drop_column_co_default2 SELECT a from sync1_co_drop;
SELECT count(*) FROM sync1_drop_column_co_default2;
|
<reponame>Eggbertx/gochan
-- This should be run only after gochan has been started for the first time
-- Also this should only be used in a development environment
-- mysql -u gochan -D gochan -pgochan < /vagrant/devtools/mysql_dummydata.sql
INSERT INTO gc_threads (board_id) values(1);
INSERT INTO `gc_posts` (
`thread_id`,`ip`,`name`,`tripcode`,`email`,`subject`,`message`,`message_raw`
) VALUES (
1,'192.168.56.1','Name','Tripcode','<EMAIL>','Subject','Message<br /><b>bold text</b>','Message
[b]bold text[/b]'
);
|
<reponame>simtk/src
ALTER TABLE artifact_votes DROP CONSTRAINT artifact_votes_fk_aid;
ALTER TABLE artifact_votes ADD CONSTRAINT artifact_votes_fk_aid FOREIGN KEY (artifact_id) REFERENCES artifact(artifact_id) ON DELETE CASCADE;
|
--+ holdcas on;
set system parameters 'dont_reuse_heap_file=yes';
create table t1 (id int, v varchar(20), c char(20), s string);
create index i_t1_all on t1(v,c,s);
create index i_t1_v on t1(v);
create index i_t1_c on t1(c);
create index i_t1_s on t1(s);
insert into t1 values (1, 'dbms qa1 part', 'dbms qa1 part', 'dbms qa1 part');
insert into t1 values (2, 'dbms qa2 part', 'dbms qa2 part', 'dbms qa2 part');
insert into t1 values (3, 'dbms qa2 part', 'dbms qa2 part', 'dbms qb2 part');
insert into t1 values (4, 'aaa', 'aaa', 'aaa');
insert into t1 values (5, 'bbb', 'bbb', 'bbb');
insert into t1 values (6, 'ccc', 'ccc', 'ccc');
insert into t1 values (7, '', '', '');
insert into t1 values (8, ' ', ' ', ' ');
insert into t1 values (9, ' ', ' ', ' ');
insert into t1 values (10, null, null, null);
select /*+ recompile */ * from t1 where v not like 'dbms%';
select /*+ recompile */ * from t1 where s not like 'dbms%';
select /*+ recompile */ * from t1 where c not like 'dbms%';
select /*+ recompile */ * from t1 where 1||v not like '1%';
select /*+ recompile */ * from t1 where 1||c not like '1%';
select /*+ recompile */ * from t1 where 1||s not like '1%';
select /*+ recompile */ * from t1 where 1||s not like 'db%';
drop table t1;
set system parameters 'dont_reuse_heap_file=no';
commit;
--+ holdcas off;
|
-- @testpoint: 条件语句 if ...then ...else
create or replace procedure proc_if_else_002
as
begin
if(false)
then
raise info 'the condition is true';
else
raise info 'the condition is false';
end if;
end ;
/
call proc_if_else_002();
drop procedure proc_if_else_002;
|
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Июл 29 2021 г., 08:13
-- Версия сервера: 10.4.12-MariaDB
-- Версия PHP: 7.4.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- База данных: `asiamodule1`
--
-- --------------------------------------------------------
--
-- Структура таблицы `groups`
--
CREATE TABLE `groups` (
`id` int(11) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `groups`
--
INSERT INTO `groups` (`id`, `name`) VALUES
(1, 'Security'),
(2, 'Office Point'),
(3, 'Security'),
(4, 'Security');
-- --------------------------------------------------------
--
-- Структура таблицы `group_point`
--
CREATE TABLE `group_point` (
`id` int(11) NOT NULL,
`group_id` int(11) DEFAULT NULL,
`point_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `group_point`
--
INSERT INTO `group_point` (`id`, `group_id`, `point_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(5, 1, 3),
(6, 1, 4);
-- --------------------------------------------------------
--
-- Структура таблицы `group_staff`
--
CREATE TABLE `group_staff` (
`id` int(11) NOT NULL,
`group_id` int(11) DEFAULT NULL,
`staff_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `group_staff`
--
INSERT INTO `group_staff` (`id`, `group_id`, `staff_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 1, 4);
-- --------------------------------------------------------
--
-- Структура таблицы `logs`
--
CREATE TABLE `logs` (
`id` int(11) UNSIGNED NOT NULL,
`staff_id` int(11) NOT NULL,
`point_id` int(11) NOT NULL,
`access` tinyint(1) NOT NULL,
`camera` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`timestamp` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `logs`
--
INSERT INTO `logs` (`id`, `staff_id`, `point_id`, `access`, `camera`, `timestamp`) VALUES
(1, 1, 1, 1, 'http://laravel/logs/1627283808.jpg', 20210726071648),
(2, 1, 2, 0, 'http://laravel/logs/1627283816.jpg', 20210726071656),
(3, 1, 2, 0, 'http://laravel/logs/1627283818.jpg', 20210726071658),
(4, 1, 1, 1, 'http://laravel/logs/1627283823.jpg', 20210726071703),
(5, 1, 1, 1, 'http://laravel/logs/1627283964.jpg', 20210726071924),
(6, 2, 1, 0, 'http://laravel/logs/1627287583.jpg', 20210726081943),
(7, 2, 1, 0, 'http://laravel/logs/1627287587.jpg', 20210725081947),
(8, 2, 2, 1, 'http://laravel/logs/1627287604.jpg', 20210725082004),
(9, 3, 1, 0, 'http://laravel/logs/1627289270.jpg', 20210724084750),
(10, 3, 1, 0, 'http://laravel/logs/1627289301.jpg', 20210724084821),
(11, 3, 1, 1, 'http://laravel/logs/1627289324.jpg', 20210702084844),
(12, 4, 1, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 20210728130952),
(13, 4, 1, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 20210728131100),
(14, 4, 2, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 20210728131224),
(15, 4, 3, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 20210728131228),
(16, 4, 4, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 20210728131232),
(17, 4, 4, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 20210728131300),
(18, 4, 4, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627478146),
(19, 4, 4, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627478209),
(20, 4, 4, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627482491),
(21, 4, 3, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627482532),
(22, 4, 3, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627482546),
(23, 4, 3, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627482559),
(24, 4, 3, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627482647),
(25, 4, 3, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627482656),
(26, 4, 3, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627482664),
(27, 4, 3, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627499448),
(28, 4, 5, 1, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627499462),
(29, 4, 6, 0, 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 1627499527);
-- --------------------------------------------------------
--
-- Структура таблицы `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2021_07_26_062243_staff_create', 2),
(4, '2021_07_26_062455_access_groups', 2),
(5, '2021_07_26_062541_points', 2),
(6, '2021_07_26_062624_logs', 2);
-- --------------------------------------------------------
--
-- Структура таблицы `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Структура таблицы `points`
--
CREATE TABLE `points` (
`id` int(11) UNSIGNED NOT NULL,
`parent` int(11) DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `points`
--
INSERT INTO `points` (`id`, `parent`, `name`) VALUES
(1, NULL, 'Point 1'),
(2, NULL, 'Point 2'),
(3, NULL, 'Office Point'),
(4, 2, 'Office Place'),
(5, 2, 'Office Place'),
(6, NULL, 'Office Place');
-- --------------------------------------------------------
--
-- Структура таблицы `staff`
--
CREATE TABLE `staff` (
`id` int(11) UNSIGNED NOT NULL,
`full_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(55) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `staff`
--
INSERT INTO `staff` (`id`, `full_name`, `photo`, `code`) VALUES
(1, 'Staff 1', 'http://laravel/storage/staff/HlW1cljToVXupi0meSw9cp2jgCV55uWZEZ8vUaic.jpg', 'vg3bM1IWv9nUsoBmRUMjjFJpxEnPdqeA'),
(2, 'Staff 2', 'http://laravel/storage/staff/UnUIrqvkRwCYizs4c5N6d4MHWjrnsylvLXFIYNKI.jpg', 'zseAUE6sQUeegkrGxQ4N2j0QpXmain58'),
(3, 'Demo employee', 'http://laravel/storage/staff/S18kQ8rTWjHdinYgcLhaHhIW3IFIAbdN99bkqDvJ.jpg', 'dhcc7nxD9DR5i20devpQlXffQtjFkBXS'),
(4, 'Staff Ivanov', 'http://asiamodule1/storage/staff/FAFA5IYuxdP4KtYp5FUKvUY5cmaxwplpFSbuTbA0.jpg', 'cZbGn6zXBxZtwQXGm43vEbI7ia6ovfvV'),
(5, 'Staff Ivanov', 'http://wsa-m1/storage/staff/vLOEY4RUgjFt3myo30r5lPsVZE4zVbyrkNgymed2.jpeg', 'RtExTlmQGesxYpZEYoERUsxiNdof7tmA');
-- --------------------------------------------------------
--
-- Структура таблицы `staff_point`
--
CREATE TABLE `staff_point` (
`id` int(11) NOT NULL,
`staff_id` int(11) DEFAULT NULL,
`point_id` int(11) DEFAULT NULL,
`timestamp` bigint(20) DEFAULT NULL,
`time` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `staff_point`
--
INSERT INTO `staff_point` (`id`, `staff_id`, `point_id`, `timestamp`, `time`) VALUES
(1, 1, 3, 1627482426, 1230),
(2, 4, 3, 1627482612, 1230),
(3, 4, 3, 1627499548, 1230);
-- --------------------------------------------------------
--
-- Структура таблицы `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`full_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`login` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Дамп данных таблицы `users`
--
INSERT INTO `users` (`id`, `full_name`, `login`, `email_verified_at`, `password`, `remember_token`, `token`, `created_at`, `updated_at`) VALUES
(1, 'name', '<EMAIL>', NULL, '$2y$10$PqG.x/Ih8iP6hr5shdYgu.csnGfj6pg9UgqP7brWMiVblaA1nymcC', NULL, 'Mm0vYX2Qkgxh76iALQJHO7vdPphp7cqU', '2021-07-25 00:54:07', '2021-07-25 00:59:02'),
(2, 'Admin', 'admin', NULL, '1234', NULL, 'AJdgZipBbvAMXoWVqHU4NDfNNK5qpaR8', '2021-07-26 00:48:56', '2021-07-28 13:08:31'),
(3, 'fdsfdsf', 'abc', NULL, '$2y$10$McomIJpF1dAqdzLwjQgKbOgt8cMkrq5f.arugfQyPgZZ7N03gxbUe', NULL, 'FGgw08hXLGFDhvmFWs3jB6WPJhPqUnAL', '2021-07-26 02:40:27', '2021-07-26 02:40:32'),
(4, 'qwerty', 'guest', NULL, '$2y$10$QoUsv7GjgQl6cdJ6BR9.Q.voJy60VDM7xU496In8tNlrqhJtqzmjG', NULL, 'R96X1hE3GyUY0YaooyK5wMzDogkDVdoq', '2021-07-26 02:57:10', '2021-07-26 02:57:10'),
(5, 'demo', 'temp', NULL, '$2y$10$A9NTdq5I6PwO5pCkmEUNtOi0uEqtJL7AkhjhiG3d7/2eo9O.0bOVu', NULL, 'V2AU5fWKrBlQ6VSg7Ph4UmEE9VGVG51q', '2021-07-26 02:57:48', '2021-07-26 02:57:57');
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `groups`
--
ALTER TABLE `groups`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `group_point`
--
ALTER TABLE `group_point`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `group_staff`
--
ALTER TABLE `group_staff`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `logs`
--
ALTER TABLE `logs`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Индексы таблицы `points`
--
ALTER TABLE `points`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `staff`
--
ALTER TABLE `staff`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `staff_point`
--
ALTER TABLE `staff_point`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`login`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `groups`
--
ALTER TABLE `groups`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT для таблицы `group_point`
--
ALTER TABLE `group_point`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT для таблицы `group_staff`
--
ALTER TABLE `group_staff`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT для таблицы `logs`
--
ALTER TABLE `logs`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
--
-- AUTO_INCREMENT для таблицы `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT для таблицы `points`
--
ALTER TABLE `points`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT для таблицы `staff`
--
ALTER TABLE `staff`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT для таблицы `staff_point`
--
ALTER TABLE `staff_point`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT для таблицы `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE TABLE "regions" (
"index" INTEGER,
"name" TEXT NOT NULL UNIQUE,
"nations" TEXT,
"numnations" INTEGER,
"delegate" TEXT,
"delegateauth" TEXT,
"founder" TEXT,
"factbook" TEXT,
"lastupdate" INTEGER,
"firstnation" TEXT,
"passworded" INTEGER,
"founderless" INTEGER,
PRIMARY KEY("index" AUTOINCREMENT)
)|||CREATE TABLE "nations" (
"index" INTEGER PRIMARY KEY AUTOINCREMENT,
"name" TEXT NOT NULL UNIQUE,
"region" TEXT NOT NULL,
"endorsements" INTEGER,
"WAStatus" INTEGER
);|||CREATE TABLE "endorsements" (
"EndorserID" INTEGER NOT NULL,
"EndorseeID" INTEGER NOT NULL
);|||CREATE TABLE "embassies" (
"region1" INTEGER NOT NULL,
"region2" INTEGER NOT NULL,
UNIQUE (region1, region1) ON CONFLICT REPLACE
);
|
select * from tabela_de_clientes;
select estado, limite_de_credito from tabela_de_clientes;
select estado, sum(limite_de_credito) as total_credito from tabela_de_clientes group by estado;
select embalagem, preco_de_lista from tabela_de_produtos;
select embalagem, max(preco_de_lista)as maior_preco from tabela_de_produtos GROUP BY embalagem;
select embalagem, count(*) as numero_produtos from tabela_de_produtos group by embalagem;
select bairro, sum(limite_de_credito) as total_credito from tabela_de_clientes
where cidade = 'Rio de Janeiro' group by bairro;
select estado, bairro, sum(limite_de_credito) as total_credito from
tabela_de_clientes group by estado, bairro order by estado, bairro;
|
<reponame>El-Jey/animalgotchi
-- --------------------------------------------------------
-- Хост: 127.0.0.1
-- Версия сервера: 10.6.4-MariaDB-1:10.6.4+maria~focal - mariadb.org binary distribution
-- Операционная система: debian-linux-gnu
-- HeidiSQL Версия: 11.2.0.6213
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-- Дамп структуры базы данных animalgotchi
CREATE DATABASE IF NOT EXISTS `animalgotchi` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
USE `animalgotchi`;
-- Дамп структуры для таблица animalgotchi.animal_kinds
CREATE TABLE IF NOT EXISTS `animal_kinds` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`kind_ru` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`kind_en` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`max_size` double unsigned NOT NULL DEFAULT 0,
`max_age` int(3) unsigned NOT NULL,
`growth_factor` double unsigned NOT NULL,
`default_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`available` tinyint(1) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Дамп данных таблицы animalgotchi.animal_kinds: ~5 rows (приблизительно)
DELETE FROM `animal_kinds`;
/*!40000 ALTER TABLE `animal_kinds` DISABLE KEYS */;
INSERT INTO `animal_kinds` (`id`, `kind_ru`, `kind_en`, `max_size`, `max_age`, `growth_factor`, `default_image`, `available`) VALUES
(1, 'Кот', 'Cat', 33, 7, 4.7, 'assets/images/animals/cat.svg', 1),
(2, 'Собака', 'Dog', 51, 10, 5.1, 'assets/images/animals/dog.svg', 1),
(3, 'Голубь', 'Pigeon', 12, 4, 3, 'assets/images/animals/pigeon.svg', 1),
(4, 'Ночная Фурия', 'Night Fury', 90, 25, 3.6, 'assets/images/animals/night_fury.svg', 1),
(5, 'Питон', 'Python', 77, 17, 4.5, 'assets/images/animals/python.svg', 0);
/*!40000 ALTER TABLE `animal_kinds` ENABLE KEYS */;
-- Дамп структуры для таблица animalgotchi.users
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`firstname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Дамп данных таблицы animalgotchi.users: ~0 rows (приблизительно)
DELETE FROM `users`;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `email`, `firstname`, `lastname`, `password`) VALUES
(1, '<EMAIL>', 'Олег', 'Фролов', '<PASSWORD>');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
-- Дамп структуры для таблица animalgotchi.user_animals
CREATE TABLE IF NOT EXISTS `user_animals` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`animal_kind_id` int(11) unsigned NOT NULL,
`user_id` int(11) unsigned NOT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`max_size` int(3) NOT NULL,
`max_age` int(3) NOT NULL,
`growth_factor` double NOT NULL,
`size` double DEFAULT 1,
`age` int(3) DEFAULT 1,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `animal_kind_id` (`animal_kind_id`) USING BTREE,
CONSTRAINT `animal_kind_id` FOREIGN KEY (`animal_kind_id`) REFERENCES `animal_kinds` (`id`),
CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Дамп данных таблицы animalgotchi.user_animals: ~0 rows (приблизительно)
DELETE FROM `user_animals`;
/*!40000 ALTER TABLE `user_animals` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_animals` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
|
<gh_stars>0
DROP TABLE IF EXISTS sample_db.user;
CREATE TABLE IF NOT EXISTS sample_db.user (
id BIGINT AUTO_INCREMENT COMMENT 'ユーザーID',
nick_name VARCHAR(60) NOT NULL COMMENT 'ニックネーム',
sex CHAR(1) NOT NULL COMMENT '性別 M:男性 F:女性',
prefecture_id TINYINT(1) NOT NULL DEFAULT 0 COMMENT '都道府県 0:不明、1:北海道 - 8:九州・沖縄',
email VARCHAR(120) COMMENT 'メールアドレス',
memo TEXT COMMENT '備考欄',
create_at DATETIME NOT NULL DEFAULT NOW(),
update_at DATETIME NOT NULL DEFAULT NOW(),
PRIMARY KEY (id)
);
CREATE INDEX idx_sex on sample_db.user (sex) USING BTREE;
CREATE INDEX idx_pref on sample_db.user (prefecture_id) USING BTREE;
|
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for CharacterActions
-- ----------------------------
DROP TABLE IF EXISTS `CharacterActions`;
CREATE TABLE `CharacterActions` (
`CharacterGuid` bigint(20) unsigned NOT NULL,
`Action` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Slot` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`CharacterGuid`),
FOREIGN KEY (`CharacterGuid`) REFERENCES `Characters` (`Guid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterActions
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterCreationActions
-- ----------------------------
DROP TABLE IF EXISTS `CharacterCreationActions`;
CREATE TABLE `CharacterCreationActions` (
`Race` tinyint(3) unsigned NOT NULL,
`Class` tinyint(3) unsigned NOT NULL,
`Action` int(11) NOT NULL DEFAULT '0',
`Slot` tinyint(3) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `Race` (`Race`,`Class`,`Action`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterCreationActions
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterCreationData
-- ----------------------------
DROP TABLE IF EXISTS `CharacterCreationData`;
CREATE TABLE `CharacterCreationData` (
`Race` tinyint(3) unsigned NOT NULL,
`Class` tinyint(3) unsigned NOT NULL,
`Zone` int(10) unsigned NOT NULL DEFAULT '0',
`Map` int(10) unsigned NOT NULL DEFAULT '0',
`X` float NOT NULL,
`Y` float NOT NULL,
`Z` float NOT NULL,
`O` float NOT NULL,
UNIQUE KEY `Race` (`Race`,`Class`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterCreationData
-- ----------------------------
INSERT INTO `CharacterCreationData` VALUES ('1', '1', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('1', '2', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('1', '3', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('1', '4', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('1', '5', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('1', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('1', '8', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('1', '9', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('1', '10', '6170', '0', '-8914.57', '-133.909', '80.5378', '5.10444');
INSERT INTO `CharacterCreationData` VALUES ('2', '1', '6451', '1', '-618.518', '-4251.67', '38.718', '0');
INSERT INTO `CharacterCreationData` VALUES ('2', '3', '6451', '1', '-618.518', '-4251.67', '38.718', '0');
INSERT INTO `CharacterCreationData` VALUES ('2', '4', '6451', '1', '-618.518', '-4251.67', '38.718', '0');
INSERT INTO `CharacterCreationData` VALUES ('2', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('2', '7', '6451', '1', '-618.518', '-4251.67', '38.718', '0');
INSERT INTO `CharacterCreationData` VALUES ('2', '8', '6451', '1', '-618.518', '-4251.67', '38.718', '0');
INSERT INTO `CharacterCreationData` VALUES ('2', '9', '6451', '1', '-618.518', '-4251.67', '38.718', '0');
INSERT INTO `CharacterCreationData` VALUES ('2', '10', '6451', '1', '-618.518', '-4251.67', '38.718', '0');
INSERT INTO `CharacterCreationData` VALUES ('3', '1', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '2', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '3', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '4', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '5', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('3', '7', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '8', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '9', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('3', '10', '6176', '0', '-6230.42', '330.232', '383.105', '0.501087');
INSERT INTO `CharacterCreationData` VALUES ('4', '1', '6450', '1', '10311.3', '831.463', '1326.57', '5.48033');
INSERT INTO `CharacterCreationData` VALUES ('4', '3', '6450', '1', '10311.3', '831.463', '1326.57', '5.48033');
INSERT INTO `CharacterCreationData` VALUES ('4', '4', '6450', '1', '10311.3', '831.463', '1326.57', '5.48033');
INSERT INTO `CharacterCreationData` VALUES ('4', '5', '6450', '1', '10311.3', '831.463', '1326.57', '5.48033');
INSERT INTO `CharacterCreationData` VALUES ('4', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('4', '8', '6450', '1', '10311.3', '831.463', '1326.57', '5.48033');
INSERT INTO `CharacterCreationData` VALUES ('4', '10', '6450', '1', '10311.3', '831.463', '1326.57', '5.48033');
INSERT INTO `CharacterCreationData` VALUES ('4', '11', '6450', '1', '10311.3', '831.463', '1326.57', '5.48033');
INSERT INTO `CharacterCreationData` VALUES ('5', '1', '6454', '0', '1699.85', '1706.56', '135.928', '4.88839');
INSERT INTO `CharacterCreationData` VALUES ('5', '3', '6454', '0', '1699.85', '1706.56', '135.928', '4.88839');
INSERT INTO `CharacterCreationData` VALUES ('5', '4', '6454', '0', '1699.85', '1706.56', '135.928', '4.88839');
INSERT INTO `CharacterCreationData` VALUES ('5', '5', '6454', '0', '1699.85', '1706.56', '135.928', '4.88839');
INSERT INTO `CharacterCreationData` VALUES ('5', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('5', '8', '6454', '0', '1699.85', '1706.56', '135.928', '4.88839');
INSERT INTO `CharacterCreationData` VALUES ('5', '9', '6454', '0', '1699.85', '1706.56', '135.928', '4.88839');
INSERT INTO `CharacterCreationData` VALUES ('5', '10', '6454', '0', '1699.85', '1706.56', '135.928', '4.88839');
INSERT INTO `CharacterCreationData` VALUES ('6', '1', '6452', '1', '-2915.55', '-257.347', '59.2693', '0.302378');
INSERT INTO `CharacterCreationData` VALUES ('6', '2', '6452', '1', '-2915.55', '-257.347', '59.2693', '0.302378');
INSERT INTO `CharacterCreationData` VALUES ('6', '3', '6452', '1', '-2915.55', '-257.347', '59.2693', '0.302378');
INSERT INTO `CharacterCreationData` VALUES ('6', '5', '6452', '1', '-2915.55', '-257.347', '59.2693', '0.302378');
INSERT INTO `CharacterCreationData` VALUES ('6', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('6', '7', '6452', '1', '-2915.55', '-257.347', '59.2693', '0.302378');
INSERT INTO `CharacterCreationData` VALUES ('6', '10', '6452', '1', '-2915.55', '-257.347', '59.2693', '0.302378');
INSERT INTO `CharacterCreationData` VALUES ('6', '11', '6452', '1', '-2915.55', '-257.347', '59.2693', '0.302378');
INSERT INTO `CharacterCreationData` VALUES ('7', '1', '1', '0', '-4983.42', '877.7', '274.31', '3.06393');
INSERT INTO `CharacterCreationData` VALUES ('7', '4', '1', '0', '-4983.42', '877.7', '274.31', '3.06393');
INSERT INTO `CharacterCreationData` VALUES ('7', '5', '1', '0', '-4983.42', '877.7', '274.31', '3.06393');
INSERT INTO `CharacterCreationData` VALUES ('7', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('7', '8', '1', '0', '-4983.42', '877.7', '274.31', '3.06393');
INSERT INTO `CharacterCreationData` VALUES ('7', '9', '1', '0', '-4983.42', '877.7', '274.31', '3.06393');
INSERT INTO `CharacterCreationData` VALUES ('7', '10', '1', '0', '-4983.42', '877.7', '274.31', '3.06393');
INSERT INTO `CharacterCreationData` VALUES ('8', '1', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '3', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '4', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '5', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('8', '7', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '8', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '9', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '10', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('8', '11', '6453', '1', '-1171.45', '-5263.65', '0.847728', '5.78945');
INSERT INTO `CharacterCreationData` VALUES ('9', '1', '4737', '648', '-8423.81', '1361.3', '104.671', '1.55428');
INSERT INTO `CharacterCreationData` VALUES ('9', '3', '4737', '648', '-8423.81', '1361.3', '104.671', '1.55428');
INSERT INTO `CharacterCreationData` VALUES ('9', '4', '4737', '648', '-8423.81', '1361.3', '104.671', '1.55428');
INSERT INTO `CharacterCreationData` VALUES ('9', '5', '4737', '648', '-8423.81', '1361.3', '104.671', '1.55428');
INSERT INTO `CharacterCreationData` VALUES ('9', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('9', '7', '4737', '648', '-8423.81', '1361.3', '104.671', '1.55428');
INSERT INTO `CharacterCreationData` VALUES ('9', '8', '4737', '648', '-8423.81', '1361.3', '104.671', '1.55428');
INSERT INTO `CharacterCreationData` VALUES ('9', '9', '4737', '648', '-8423.81', '1361.3', '104.671', '1.55428');
INSERT INTO `CharacterCreationData` VALUES ('10', '1', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('10', '2', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('10', '3', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('10', '4', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('10', '5', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('10', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('10', '8', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('10', '9', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('10', '10', '6455', '530', '10349.6', '-6357.29', '33.4026', '5.31605');
INSERT INTO `CharacterCreationData` VALUES ('11', '1', '6456', '530', '-3961.64', '-13931.2', '100.615', '2.08364');
INSERT INTO `CharacterCreationData` VALUES ('11', '2', '6456', '530', '-3961.64', '-13931.2', '100.615', '2.08364');
INSERT INTO `CharacterCreationData` VALUES ('11', '3', '6456', '530', '-3961.64', '-13931.2', '100.615', '2.08364');
INSERT INTO `CharacterCreationData` VALUES ('11', '5', '6456', '530', '-3961.64', '-13931.2', '100.615', '2.08364');
INSERT INTO `CharacterCreationData` VALUES ('11', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('11', '7', '6456', '530', '-3961.64', '-13931.2', '100.615', '2.08364');
INSERT INTO `CharacterCreationData` VALUES ('11', '8', '6456', '530', '-3961.64', '-13931.2', '100.615', '2.08364');
INSERT INTO `CharacterCreationData` VALUES ('11', '10', '6456', '530', '-3961.64', '-13931.2', '100.615', '2.08364');
INSERT INTO `CharacterCreationData` VALUES ('22', '1', '4755', '654', '-1451.53', '1403.35', '35.5561', '0.333847');
INSERT INTO `CharacterCreationData` VALUES ('22', '3', '4755', '654', '-1451.53', '1403.35', '35.5561', '0.333847');
INSERT INTO `CharacterCreationData` VALUES ('22', '4', '4755', '654', '-1451.53', '1403.35', '35.5561', '0.333847');
INSERT INTO `CharacterCreationData` VALUES ('22', '5', '4755', '654', '-1451.53', '1403.35', '35.5561', '0.333847');
INSERT INTO `CharacterCreationData` VALUES ('22', '6', '4298', '609', '2355.84', '-5664.77', '426.028', '3.65997');
INSERT INTO `CharacterCreationData` VALUES ('22', '8', '4755', '654', '-1451.53', '1403.35', '35.5561', '0.333847');
INSERT INTO `CharacterCreationData` VALUES ('22', '9', '4755', '654', '-1451.53', '1403.35', '35.5561', '0.333847');
INSERT INTO `CharacterCreationData` VALUES ('22', '11', '4755', '654', '-1451.53', '1403.35', '35.5561', '0.333847');
INSERT INTO `CharacterCreationData` VALUES ('24', '1', '5736', '860', '1466.09', '3465.98', '181.86', '2.87962');
INSERT INTO `CharacterCreationData` VALUES ('24', '3', '5736', '860', '1466.09', '3465.98', '181.86', '2.87962');
INSERT INTO `CharacterCreationData` VALUES ('24', '4', '5736', '860', '1466.09', '3465.98', '181.86', '2.87962');
INSERT INTO `CharacterCreationData` VALUES ('24', '5', '5736', '860', '1466.09', '3465.98', '181.86', '2.87962');
INSERT INTO `CharacterCreationData` VALUES ('24', '7', '5736', '860', '1466.09', '3465.98', '181.86', '2.87962');
INSERT INTO `CharacterCreationData` VALUES ('24', '8', '5736', '860', '1466.09', '3465.98', '181.86', '2.87962');
INSERT INTO `CharacterCreationData` VALUES ('24', '10', '5736', '860', '1466.09', '3465.98', '181.86', '2.87962');
-- ----------------------------
-- Table structure for CharacterCreationSkills
-- ----------------------------
DROP TABLE IF EXISTS `CharacterCreationSkills`;
CREATE TABLE `CharacterCreationSkills` (
`Race` tinyint(3) unsigned NOT NULL,
`Class` tinyint(3) unsigned NOT NULL,
`SkillId` int(10) unsigned NOT NULL DEFAULT '0',
`SkillLevel` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `Race` (`Race`,`Class`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterCreationSkills
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterCreationSpells
-- ----------------------------
DROP TABLE IF EXISTS `CharacterCreationSpells`;
CREATE TABLE `CharacterCreationSpells` (
`Race` tinyint(3) unsigned NOT NULL,
`Class` tinyint(3) unsigned NOT NULL,
`SpellId` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `Race` (`Race`,`Class`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterCreationSpells
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterItems
-- ----------------------------
DROP TABLE IF EXISTS `CharacterItems`;
CREATE TABLE `CharacterItems` (
`CharacterGuid` bigint(20) unsigned NOT NULL,
`ItemId` int(10) unsigned NOT NULL DEFAULT '0',
`Bag` tinyint(3) unsigned NOT NULL DEFAULT '255',
`Slot` tinyint(3) unsigned NOT NULL,
`Mode` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Equipped` tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY `CharacterGuid` (`CharacterGuid`,`ItemId`,`Slot`) USING BTREE,
FOREIGN KEY (`CharacterGuid`) REFERENCES `Characters` (`Guid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterItems
-- ----------------------------
-- ----------------------------
-- Table structure for Characters
-- ----------------------------
DROP TABLE IF EXISTS `Characters`;
CREATE TABLE `Characters` (
`Guid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`GameAccountId` int(10) unsigned NOT NULL DEFAULT '0',
`RealmId` int(10) unsigned NOT NULL DEFAULT '0',
`Name` varchar(192) NOT NULL DEFAULT '',
`ListPosition` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Race` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Class` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Sex` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Skin` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Face` tinyint(3) unsigned NOT NULL DEFAULT '0',
`HairStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
`HairColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
`FacialHairStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Experience` int(10) unsigned NOT NULL DEFAULT '0',
`ExperienceLevel` tinyint(3) unsigned NOT NULL DEFAULT '1',
`Zone` int(10) unsigned NOT NULL DEFAULT '0',
`Map` int(10) unsigned NOT NULL DEFAULT '0',
`X` float NOT NULL DEFAULT '0',
`Y` float NOT NULL DEFAULT '0',
`Z` float NOT NULL DEFAULT '0',
`O` float NOT NULL DEFAULT '0',
`GuildGuid` bigint(20) unsigned NOT NULL DEFAULT '0',
`CharacterFlags` int(10) unsigned NOT NULL DEFAULT '0',
`CustomizeFlags` int(10) unsigned NOT NULL DEFAULT '0',
`Flags3` int(10) unsigned NOT NULL DEFAULT '0',
`FirstLogin` tinyint(3) unsigned NOT NULL DEFAULT '1',
`PetCreatureDisplayId` int(10) unsigned NOT NULL DEFAULT '0',
`PetLevel` int(10) unsigned NOT NULL DEFAULT '0',
`PetCreatureFamily` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`Guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of Characters
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterSkills
-- ----------------------------
DROP TABLE IF EXISTS `CharacterSkills`;
CREATE TABLE `CharacterSkills` (
`CharacterGuid` bigint(20) unsigned NOT NULL,
`SkillId` int(10) unsigned NOT NULL DEFAULT '0',
`SkillLevel` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `CharacterGuid` (`CharacterGuid`,`SkillId`) USING BTREE,
FOREIGN KEY (`CharacterGuid`) REFERENCES `Characters` (`Guid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterSkills
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterSpells
-- ----------------------------
DROP TABLE IF EXISTS `CharacterSpells`;
CREATE TABLE `CharacterSpells` (
`CharacterGuid` bigint(20) unsigned NOT NULL,
`SpellId` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `CharacterGuid` (`CharacterGuid`,`SpellId`) USING BTREE,
FOREIGN KEY (`CharacterGuid`) REFERENCES `Characters` (`Guid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterSpells
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterTemplateActions
-- ----------------------------
DROP TABLE IF EXISTS `CharacterTemplateActions`;
CREATE TABLE `CharacterTemplateActions` (
`ClassId` int(11) unsigned NOT NULL,
`Action` int(10) unsigned NOT NULL,
`Slot` tinyint(3) unsigned NOT NULL,
UNIQUE KEY `ClassId` (`ClassId`,`Action`) USING BTREE,
KEY `Class` (`ClassId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterTemplateActions
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterTemplateClasses
-- ----------------------------
DROP TABLE IF EXISTS `CharacterTemplateClasses`;
CREATE TABLE `CharacterTemplateClasses` (
`ClassId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`SetId` int(11) unsigned NOT NULL,
`FactionGroup` tinyint(4) NOT NULL,
UNIQUE KEY `ClassId` (`ClassId`,`SetId`,`FactionGroup`) USING BTREE,
KEY `Id` (`ClassId`),
KEY `SetId` (`SetId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterTemplateClasses
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterTemplateData
-- ----------------------------
DROP TABLE IF EXISTS `CharacterTemplateData`;
CREATE TABLE `CharacterTemplateData` (
`ClassId` int(11) unsigned NOT NULL,
`Map` smallint(6) NOT NULL,
`Zone` smallint(6) NOT NULL,
`X` float NOT NULL,
`Y` float NOT NULL,
`Z` float NOT NULL,
`O` float NOT NULL,
PRIMARY KEY (`ClassId`),
FOREIGN KEY (`ClassId`) REFERENCES `CharacterTemplateClasses` (`ClassId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterTemplateData
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterTemplateItems
-- ----------------------------
DROP TABLE IF EXISTS `CharacterTemplateItems`;
CREATE TABLE `CharacterTemplateItems` (
`ItemId` int(10) unsigned NOT NULL DEFAULT '0',
`ClassId` int(11) unsigned NOT NULL,
`IsEquipped` tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY `ItemId` (`ItemId`,`ClassId`) USING BTREE,
KEY `ClassId` (`ClassId`),
FOREIGN KEY (`ClassId`) REFERENCES `CharacterTemplateClasses` (`ClassId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterTemplateItems
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterTemplateSets
-- ----------------------------
DROP TABLE IF EXISTS `CharacterTemplateSets`;
CREATE TABLE `CharacterTemplateSets` (
`Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(255) DEFAULT '',
`Description` varchar(255) DEFAULT '',
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterTemplateSets
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterTemplateSkills
-- ----------------------------
DROP TABLE IF EXISTS `CharacterTemplateSkills`;
CREATE TABLE `CharacterTemplateSkills` (
`SkillId` int(10) unsigned NOT NULL,
`ClassId` int(11) unsigned NOT NULL,
UNIQUE KEY `SkillId` (`SkillId`,`ClassId`) USING BTREE,
KEY `ClassId` (`ClassId`),
FOREIGN KEY (`ClassId`) REFERENCES `CharacterTemplateClasses` (`ClassId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterTemplateSkills
-- ----------------------------
-- ----------------------------
-- Table structure for CharacterTemplateSpells
-- ----------------------------
DROP TABLE IF EXISTS `CharacterTemplateSpells`;
CREATE TABLE `CharacterTemplateSpells` (
`SpellId` int(10) unsigned NOT NULL,
`ClassId` int(11) unsigned NOT NULL,
UNIQUE KEY `SpellId` (`SpellId`,`ClassId`) USING BTREE,
KEY `ClassId` (`ClassId`),
FOREIGN KEY (`ClassId`) REFERENCES `CharacterTemplateClasses` (`ClassId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of CharacterTemplateSpells
-- ----------------------------
|
--code before switching to heroku deploy/jawsdb
-- if exists drop database burger_db;
-- create database burger_db;
-- use burger_db
create table burger_eats (
id INT AUTO_INCREMENT NOT NULL,
burger_name VARCHAR (30) NOT NULL,
devoured BOOLEAN default 0,
PRIMARY KEY(id)
)
|
USE AdventureWorks2014
GO
SELECT DISTINCT Color, Style
FROM Production.Product
|
<filename>src/main/resources/db/migration/V1.0.1__init_schema.sql
--
CREATE SCHEMA IF NOT EXISTS wa_workflow_api;
--
|
<reponame>MariaBarraza/ProyectoSegundoParcialLaravel<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 28-04-2020 a las 05:56:45
-- Versión del servidor: 10.4.11-MariaDB
-- Versión de PHP: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `estufa`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2016_06_01_000001_create_oauth_auth_codes_table', 2),
(5, '2016_06_01_000002_create_oauth_access_tokens_table', 2),
(6, '2016_06_01_000003_create_oauth_refresh_tokens_table', 2),
(7, '2016_06_01_000004_create_oauth_clients_table', 2),
(8, '2016_06_01_000005_create_oauth_personal_access_clients_table', 2);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `oauth_access_tokens`
--
CREATE TABLE `oauth_access_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED DEFAULT NULL,
`client_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `oauth_access_tokens`
--
INSERT INTO `oauth_access_tokens` (`id`, `user_id`, `client_id`, `name`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) VALUES
('0c3ca51bf324165d4ff0e2a1663aa89e07d1f84b223ed8c4e8692768086a8fb00e78815f14c176b1', 1, 2, NULL, '[]', 0, '2020-04-10 05:35:09', '2020-04-10 05:35:09', '2021-04-09 22:35:09'),
('143621c83a451be24f0357ad80375c47bb28713e27121220d67dbe9ccd7f4c2345dec21bdffa9a00', 1, 2, NULL, '[]', 0, '2020-04-02 08:39:55', '2020-04-02 08:39:55', '2021-04-02 01:39:55'),
('44f8b7cee4541e770accadcd51620742ae823d86c3213f5e95fa3997e930592851e630c3b7b1ffbd', 1, 2, NULL, '[]', 0, '2020-04-08 06:09:50', '2020-04-08 06:09:50', '2021-04-07 23:09:50'),
('4b105d67a20ee664a921096caefcf5f8005d64810a121f23ab50b75b8dd475859acf5fe3160e5151', 1, 2, NULL, '[]', 0, '2020-04-10 04:16:13', '2020-04-10 04:16:13', '2021-04-09 21:16:13'),
('635f4672eb579cb81a84e0d5b34a04c8231c753f63eaa2a82076ea394bafebedac3511dde2949b55', 1, 2, NULL, '[]', 0, '2020-04-10 05:37:39', '2020-04-10 05:37:39', '2021-04-09 22:37:39'),
('7c39ebc43ccc65fe7422f62823d87aa61019d0830293a02f0d5c624efee90e2dc851975d17560665', 1, 2, NULL, '[]', 0, '2020-04-14 12:12:51', '2020-04-14 12:12:51', '2021-04-14 05:12:51');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `oauth_auth_codes`
--
CREATE TABLE `oauth_auth_codes` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED NOT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `oauth_clients`
--
CREATE TABLE `oauth_clients` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_access_client` tinyint(1) NOT NULL,
`password_client` tinyint(1) NOT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `oauth_clients`
--
INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES
(1, NULL, 'Laravel Personal Access Client', '3FFpxr1GYcZFht4G5bnbdTqiAlkpg0LDZZxdtnF4', 'http://localhost', 1, 0, 0, '2020-04-02 08:02:40', '2020-04-02 08:02:40'),
(2, NULL, 'Laravel Password Grant Client', 'NzYyK2shv2Hbyb3wZIxF34yk7NyBUrTFpBeIuEOh', 'http://localhost', 0, 1, 0, '2020-04-02 08:02:40', '2020-04-02 08:02:40'),
(3, NULL, 'Laravel Personal Access Client', 'IKPrl0cIZyPq4lAbkS2ontHf7XB7RIVUk990thDj', 'http://localhost', 1, 0, 0, '2020-04-08 06:09:30', '2020-04-08 06:09:30'),
(4, NULL, 'Laravel Password Grant Client', 'OgB8jGfaB0qc5IyiL7AKQG7tL525RmoVh4FnZGCq', 'http://localhost', 0, 1, 0, '2020-04-08 06:09:30', '2020-04-08 06:09:30'),
(5, NULL, 'Laravel Personal Access Client', 'JUm6iMFuYq7i3FwoXFfiWJeJf8GEpSJyJhyoLJBv', 'http://localhost', 1, 0, 0, '2020-04-10 03:41:21', '2020-04-10 03:41:21'),
(6, NULL, 'Laravel Password Grant Client', '<KEY>', 'http://localhost', 0, 1, 0, '2020-04-10 03:41:22', '2020-04-10 03:41:22'),
(7, NULL, 'Laravel Personal Access Client', '9peNqNXsJdrnS1Wqr2C1sya1yo53SC8VYEupInfG', 'http://localhost', 1, 0, 0, '2020-04-10 04:01:30', '2020-04-10 04:01:30'),
(8, NULL, 'Laravel Password Grant Client', 'bn20sZE3KnIzrVyLHMZ14VzZqg9f7MpSH2ZBM9P6', 'http://localhost', 0, 1, 0, '2020-04-10 04:01:31', '2020-04-10 04:01:31'),
(9, NULL, 'Laravel Personal Access Client', 'xcrNE59bHl3eE1PT92EGsU3AyfYxcejZOIm0PzaR', 'http://localhost', 1, 0, 0, '2020-04-10 05:33:49', '2020-04-10 05:33:49'),
(10, NULL, 'Laravel Password Grant Client', 'IcTaxZW4EfbrEjBGbqnEN9qELjUfME6CLyicZfZe', 'http://localhost', 0, 1, 0, '2020-04-10 05:33:49', '2020-04-10 05:33:49'),
(11, NULL, 'Laravel Personal Access Client', 'zNnou5S27Pogbe3Bt0hSKksVx2qVFMDQsAJkqSAo', 'http://localhost', 1, 0, 0, '2020-04-14 12:22:07', '2020-04-14 12:22:07'),
(12, NULL, 'Laravel Password Grant Client', 'jWT9KsdiwAtwhZwBb75GlxAuHf5KGvK1Jn0DY0fT', 'http://localhost', 0, 1, 0, '2020-04-14 12:22:07', '2020-04-14 12:22:07');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `oauth_personal_access_clients`
--
CREATE TABLE `oauth_personal_access_clients` (
`id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `oauth_personal_access_clients`
--
INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2020-04-02 08:02:40', '2020-04-02 08:02:40'),
(2, 3, '2020-04-08 06:09:30', '2020-04-08 06:09:30'),
(3, 5, '2020-04-10 03:41:21', '2020-04-10 03:41:21'),
(4, 7, '2020-04-10 04:01:31', '2020-04-10 04:01:31'),
(5, 9, '2020-04-10 05:33:49', '2020-04-10 05:33:49'),
(6, 11, '2020-04-14 12:22:07', '2020-04-14 12:22:07');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `oauth_refresh_tokens`
--
CREATE TABLE `oauth_refresh_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `oauth_refresh_tokens`
--
INSERT INTO `oauth_refresh_tokens` (`id`, `access_token_id`, `revoked`, `expires_at`) VALUES
('078ca09025dbd4403720a1b126787fc2a7624b7dc8ca4413447a614cb47aadfe43fe35ac25be82f3', '7c39ebc43ccc65fe7422f62823d87aa61019d0830293a02f0d5c624efee90e2dc851975d17560665', 0, '2021-04-14 05:12:51'),
('228134d56793fef87358dd2ec4eaf53c29fa7758f46db30043297819b62b899beeadc35d879dc87c', '<KEY>', 0, '2021-04-09 21:16:13'),
('34415a43db7f68c49f458ad8ced22de43203b23f4bfe2a23f60ab2079c4e1ab5837750e2239a9bd5', '635f4672eb579cb81a84e0d5b34a04c8231c753f63eaa2a82076ea394bafebedac3511dde2949b55', 0, '2021-04-09 22:37:39'),
('<KEY>', '143621c83a451be24f0357ad80375c47bb28713e27121220d67dbe9ccd7f4c2345dec21bdffa9a00', 0, '2021-04-02 01:39:56'),
('cf91db8ad0d5636e4534a874e1e4d479b665fc38d1ae7252207c4af830074f4bbe0198da974445e1', '<KEY>', 0, '2021-04-07 23:09:50'),
('e4f3d9ae060b8c27487598fefd092cb3ec481d50b32f95e7941511d2666c6badb6c16c8b29849c1d', '0c3ca51bf324165d4ff0e2a1663aa89e07d1f84b223ed8c4e8692768086a8fb00e78815f14c176b1', 0, '2021-04-09 22:35:10');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tarea`
--
CREATE TABLE `tarea` (
`id` int(11) NOT NULL,
`tipo_tarea` varchar(100) DEFAULT NULL,
`encargado` varchar(50) NOT NULL,
`descripcion` varchar(255) DEFAULT NULL,
`estado` varchar(30) DEFAULT NULL,
`material` varchar(255) DEFAULT NULL,
`fecha` date DEFAULT NULL,
`ubicacion` varchar(255) DEFAULT NULL,
`foto_resultado` text DEFAULT NULL,
`created_at` timestamp NULL DEFAULT current_timestamp(),
`updated_at` timestamp NULL DEFAULT NULL,
`id_user` bigint(20) UNSIGNED NOT NULL,
`modelo_estufa` varchar(30) DEFAULT NULL,
`precio_estufa` int(11) DEFAULT NULL,
`pieza` varchar(30) DEFAULT NULL,
`precio_pieza` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Volcado de datos para la tabla `tarea`
--
INSERT INTO `tarea` (`id`, `tipo_tarea`, `encargado`, `descripcion`, `estado`, `material`, `fecha`, `ubicacion`, `foto_resultado`, `created_at`, `updated_at`, `id_user`, `modelo_estufa`, `precio_estufa`, `pieza`, `precio_pieza`) VALUES
(13, 'Instalacion', 'fer', 'TareaInstalacion', 'Terminado', NULL, '2020-02-01', 'ubicacion', 'Bk1MEAHTBn5amLvlwysOGHg1agGgG3jteG7j7OLE.jpeg', '2020-04-13 13:07:10', '2020-04-28 10:50:19', 1, 'aaa5060', 500, NULL, NULL),
(14, 'Reparacion', 'encargadoEdit', 'descripcionEdit', 'estadoEdit', 'modeloEdit', '2020-02-01', 'ubicacionEdit', 'JsEPqRMyiqc2gU7aYzyr4Yqk9exBMqvBf66O5fe7.png', '2020-04-13 13:07:34', '2020-04-28 10:54:03', 1, NULL, NULL, 'piezaEdit', 600),
(15, 'Instalacion', 'encargadoEdit', 'descripcionEdit', 'estadoEdit', NULL, '2020-02-01', 'casa', '0eJtP3upb1HVYz7wrvICFYRoc0taCIa1O22Qz7hs.jpeg', '2020-04-14 11:27:49', '2020-04-28 10:55:04', 1, 'modeloEdit', 500, NULL, NULL),
(16, 'Reparacion', 'fer', 'TareaRepararPendiente', 'Pendiente', NULL, '2020-02-01', 'ubicacion', 'LOw363qS4caLZpW6gsnPSNodgM5XJmHEJylA1lbZ.jpeg', '2020-04-14 11:30:35', '2020-04-28 10:54:14', 1, NULL, NULL, 'pieza de arriba', 6900),
(17, 'Instalacion', 'fer', 'tareaApi', 'estado', NULL, '2020-02-01', 'ubicacion', '6xARZPgyYpXEJjiaSAfJaZ4m4odoto2gmSkU7Crl.jpeg', '2020-04-14 12:23:56', '2020-04-28 10:50:40', 1, 'aaa12', 500, NULL, NULL),
(18, 'Reparacion', 'fer', 'tareaApi', 'estado', 'material', '2020-02-01', 'ubicacion', 'Q71eepvqJpyWQyQGLTSSxeR6DI7lLTe0tf4x2jfY.jpeg', '2020-04-14 12:25:40', '2020-04-28 10:54:26', 1, NULL, NULL, 'pieza', 890),
(19, 'Reparacion', 'fer', 'tareaApi', 'estado', 'material', '2020-02-01', 'ubicacion', 't94kFxqIU4y9vW1fGpA192lbPWqGxPt6RWYe5aKI.jpeg', '2020-04-14 12:25:57', '2020-04-28 10:54:39', 1, NULL, NULL, 'pieza', 890),
(20, 'Instalacion', 'fer', 'tareaApi2', 'estado', NULL, '2020-02-01', 'ubicacion', '7VS68CVRsxunI8O8jQWmZBBAIhR7YwkUanx5TrvY.jpeg', '2020-04-14 12:26:37', '2020-04-28 10:50:49', 1, 'aaa12', 500, NULL, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tipos_usuarios`
--
CREATE TABLE `tipos_usuarios` (
`id` int(11) NOT NULL,
`descripcion` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Volcado de datos para la tabla `tipos_usuarios`
--
INSERT INTO `tipos_usuarios` (`id`, `descripcion`) VALUES
(1, 'Administrador'),
(2, 'Trabajador');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`tipo` varchar(35) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_tipo_usuario` int(11) DEFAULT 2
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`id`, `tipo`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `id_tipo_usuario`) VALUES
(1, 'Administrador', 'Fer', '<EMAIL>', NULL, '$2y$10$tkHI8epv5YhGhDIEHsBpHuhiaKzK3sCC9D7L6XbjPZdlDWorWrLr.', 'qhEXMlafBmsZB0heUjQoCMAxJXArQIg8h9B6uM0XFDxJzJVSByEi7nqPf6h0', '2020-04-02 07:57:18', '2020-04-02 07:57:18', 1);
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `oauth_access_tokens`
--
ALTER TABLE `oauth_access_tokens`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_access_tokens_user_id_index` (`user_id`);
--
-- Indices de la tabla `oauth_auth_codes`
--
ALTER TABLE `oauth_auth_codes`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_auth_codes_user_id_index` (`user_id`);
--
-- Indices de la tabla `oauth_clients`
--
ALTER TABLE `oauth_clients`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_clients_user_id_index` (`user_id`);
--
-- Indices de la tabla `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `oauth_refresh_tokens`
--
ALTER TABLE `oauth_refresh_tokens`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indices de la tabla `tarea`
--
ALTER TABLE `tarea`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `tipos_usuarios`
--
ALTER TABLE `tipos_usuarios`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT de la tabla `oauth_clients`
--
ALTER TABLE `oauth_clients`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT de la tabla `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT de la tabla `tarea`
--
ALTER TABLE `tarea`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT de la tabla `tipos_usuarios`
--
ALTER TABLE `tipos_usuarios`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE TABLE race_date
(
date INT NOT NULL AUTO_INCREMENT COMMENT 'レース開催日',
year INT NULL COMMENT 'レース開催:年',
month INT NULL COMMENT 'レース開催:日',
is_get INT NULL DEFAULT 0 COMMENT 'レース結果情報取得フラグ',
PRIMARY KEY (date)
) COMMENT 'レース日程一覧テーブル';
CREATE TABLE race_horse_info
(
horse_id VARCHAR(128) NOT NULL COMMENT '競走馬ID(netkeiba準拠)',
name VARCHAR(128) NULL COMMENT '名前',
birthday INT NULL COMMENT '誕生日',
sex INT NULL COMMENT '性別(牡・牝・騙)',
home VARCHAR(128) NULL COMMENT '産地',
breeder_id INT NULL COMMENT '生産牧場ID(netkeiba準拠)',
owner_id INT NULL COMMENT '馬主ID(netkeiba準拠)',
training_center INT NULL COMMENT 'トレーニングセンター(美穂・栗東)',
trainer_id INT NULL COMMENT '調教師ID(netkeiba準拠)',
father_id VARCHAR(128) NULL DEFAULT 0 COMMENT '父',
mother_id VARCHAR(128) NULL DEFAULT 0 COMMENT '母',
father_father_id VARCHAR(128) NULL DEFAULT 0 COMMENT '父父',
father_mother_id VARCHAR(128) NULL DEFAULT 0 COMMENT '父母',
mother_father_id VARCHAR(128) NULL DEFAULT 0 COMMENT '母父',
mother_mother_id VARCHAR(128) NULL DEFAULT 0 COMMENT '母母',
PRIMARY KEY (horse_id)
) COMMENT '競走馬情報';
CREATE TABLE race_horse_result
(
race_id BIGINT NOT NULL COMMENT '管理ID(レース日程+会場ID+レース番号)',
horse_num INT NOT NULL COMMENT '馬番',
frame_num INT NULL COMMENT '枠番',
horse_id VARCHAR(128) NOT NULL COMMENT '競走馬ID(netkeiba準拠)',
sex INT NULL COMMENT '性別(牡・牝・騙)',
age INT NULL COMMENT '馬齢',
horse_weight INT NULL COMMENT '馬体重',
horse_weight_diff INT NULL COMMENT '馬体重差',
weight INT NULL COMMENT '斤量(kg*10)',
odds INT NULL COMMENT 'オッズ(odds*10)',
rank INT NULL COMMENT '順位',
time INT NULL COMMENT 'タイム(秒*10)',
popularity INT NULL COMMENT '人気',
last_3f INT NULL COMMENT '上がり3F(秒*10)',
jockey_id INT NULL COMMENT '騎手ID(netkeiba準拠)',
training_center INT NULL COMMENT 'トレーニングセンター(美穂・栗東)',
trainer_id INT NULL COMMENT '調教師ID(netkeiba準拠)',
PRIMARY KEY (race_id, horse_num)
) COMMENT '競走馬レース結果情報';
CREATE TABLE race_info
(
race_id BIGINT NOT NULL COMMENT '管理ID(レース日程+会場ID+レース番号)',
date INT NOT NULL COMMENT 'レース開催日',
track_id INT NULL COMMENT 'レース場ID',
race_num INT NULL COMMENT 'レース番号',
entry_num INT NULL COMMENT '出走頭数',
distance INT NULL COMMENT '距離',
clockwise INT NULL COMMENT '回り(右・左)',
side INT NULL COMMENT '側(内・外)',
ground INT NULL COMMENT '馬場(芝・ダ・障)',
ground_condition INT NULL COMMENT '馬場状態',
weather INT NULL COMMENT '天候',
mare_only_flag INT NULL COMMENT '牝馬限定フラグ',
age_condition INT NULL COMMENT '馬齢条件',
class_id INT NULL COMMENT 'クラス',
race_name VARCHAR(128) NULL COMMENT 'レース名',
PRIMARY KEY (race_id)
) COMMENT 'レース基本情報テーブル';
|
SELECT day
-- 1) Subquery to generate all dates
-- from min to max date_created
FROM (SELECT GENERATE_SERIES(MIN(date_created),
MAX(date_created),
'1 day')::date AS day
-- What table is date_created in?
FROM evanston311) AS all_dates
-- 4) Select dates (day from above) that are NOT IN the subquery
WHERE day NOT IN
-- 2) Subquery to select all date_created values as dates
(SELECT date_created::date
FROM evanston311);
-- Generate 6 month bins covering 2016-01-01 to 2018-06-30
-- Create lower bounds of bins
SELECT generate_series('2016-01-01', -- First bin lower value
'2018-01-01', -- Last bin lower value
'6 months'::interval) AS lower,
-- Create upper bounds of bins
generate_series('2016-07-01', -- First bin upper value
'2018-07-01', -- Last bin upper value
'6 months'::interval) AS upper;
-- Count number of requests made per day
SELECT day, COUNT(date_created) AS count
-- Use a daily series from 2016-01-01 to 2018-06-30
-- to include days with no requests
FROM (SELECT generate_series('2016-01-01', -- series start date
'2018-06-30', -- series end date
'1 day'::interval)::date AS day) AS daily_series
LEFT JOIN evanston311
-- match day from above (which is a date) to date_created
ON day = date_created::date
GROUP BY day;
-- Bins from Step 1
WITH bins AS (
SELECT generate_series('2016-01-01',
'2018-01-01',
'6 months'::interval) AS lower,
generate_series('2016-07-01',
'2018-07-01',
'6 months'::interval) AS upper),
-- Daily counts from Step 2
daily_counts AS (
SELECT day, count(date_created) AS count
FROM (SELECT generate_series('2016-01-01',
'2018-06-30',
'1 day'::interval)::date AS day) AS daily_series
LEFT JOIN evanston311
ON day = date_created::date
GROUP BY day)
-- Select bin bounds
SELECT lower,
upper,
-- Compute median of count for each bin
PERCENTILE_DISC(0.5) WITHIN GROUP (ORDER BY day) AS median
-- Join bins and daily_counts
FROM bins
LEFT JOIN daily_counts
-- Where the day is between the bin bounds
ON day >= lower
AND day < upper
-- Group by bin bounds
GROUP BY lower, upper
ORDER BY lower;
-- generate series with all days from 2016-01-01 to 2018-06-30
WITH all_days AS
(SELECT GENERATE_SERIES('2016-01-01',
'2018-06-30',
'1 day'::interval) AS date),
-- Subquery to compute daily counts
daily_count AS
(SELECT DATE_TRUNC('day', date_created) AS day,
COUNT(*) AS count
FROM evanston311
GROUP BY day)
-- Aggregate daily counts by month using date_trunc
SELECT DATE_TRUNC('month', date) AS month,
-- Use coalesce to replace NULL count values with 0
AVG(COALESCE(COUNT,0)) AS average
FROM all_days
LEFT JOIN daily_count
-- Joining condition
ON all_days.date=daily_count.day
GROUP BY month
ORDER BY month;
|
alter table inbox
drop column fk_kid;
alter table inbox
drop column edited_kid;
alter table inbox
add kara jsonb;
alter table inbox
add extra_tags jsonb[];
alter table inbox
add lyrics jsonb;
alter table inbox
add mediafile text;
alter table inbox
add fix boolean;
|
<gh_stars>0
USE `soft_uni`;
SELECT
e.`department_id`, SUM(e.`salary`) AS `total_salary`
FROM
`employees` AS e
GROUP BY `department_id`
ORDER BY `department_id`;
|
<filename>demo/shop/shop-translated/query-44.sql
WITH RECURSIVE c0(src, trg) AS ((SELECT s0.src, s3.trg FROM edge s0, (SELECT trg as src, src as trg, label FROM edge) as s1, edge s2, edge s3 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s2.trg = s3.src AND s0.label = 42 AND s1.label = 17 AND s2.label = 71 AND s3.label = 57 )) , c1(src, trg) AS ((SELECT edge.src, edge.src FROM edge UNION SELECT edge.trg, edge.trg FROM edge UNION SELECT s0.src, s2.trg FROM edge s0, (SELECT trg as src, src as trg, label FROM edge) as s1, (SELECT trg as src, src as trg, label FROM edge) as s2 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s0.label = 54 AND s1.label = 58 AND s2.label = 72 UNION SELECT s0.src, s1.trg FROM edge s0, (SELECT trg as src, src as trg, label FROM edge) as s1 WHERE s0.trg = s1.src AND s0.label = 71 AND s1.label = 72 )) , c2(src, trg) AS (SELECT src, trg FROM c1 UNION SELECT head.src, tail.trg FROM c1 as head, c2 as tail WHERE head.trg = tail.src) , c3(src, trg) AS ((SELECT s0.src, s2.trg FROM edge s0, edge s1, (SELECT trg as src, src as trg, label FROM edge) as s2 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s0.label = 71 AND s1.label = 46 AND s2.label = 2 UNION SELECT s0.src, s1.trg FROM edge s0, (SELECT trg as src, src as trg, label FROM edge) as s1 WHERE s0.trg = s1.src AND s0.label = 5 AND s1.label = 0 UNION SELECT s0.src, s1.trg FROM edge s0, (SELECT trg as src, src as trg, label FROM edge) as s1 WHERE s0.trg = s1.src AND s0.label = 24 AND s1.label = 12 )) , c4(src, trg) AS ((SELECT s0.src, s3.trg FROM edge s0, (SELECT trg as src, src as trg, label FROM edge) as s1, edge s2, (SELECT trg as src, src as trg, label FROM edge) as s3 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s2.trg = s3.src AND s0.label = 1 AND s1.label = 8 AND s2.label = 54 AND s3.label = 54 UNION SELECT s0.src, s1.trg FROM edge s0, (SELECT trg as src, src as trg, label FROM edge) as s1 WHERE s0.trg = s1.src AND s0.label = 11 AND s1.label = 2 )) SELECT DISTINCT c1.src, c0.src, c3.src FROM c0, c1, c2, c3, c4 WHERE c1.src = c0.trg AND c3.src = c1.trg AND c4.src = c3.trg;
|
<filename>DUT S1/M1104 - Intro aux BD/Mini projet/requete8.sql
--Afficher les tables necessaires pour vérifier la requête
SELECT nom, numJoueur
FROM joueur;
SELECT nom, numComp, saison
FROM competition
WHERE nom='CoupeFrance';
SELECT *
FROM gagnerJ
WHERE numComp = 1 OR numComp = 4 OR numComp = 7;
--8) Afficher la liste des joueurs (nom, prenom) ayant gagné la coupe de France (toutes saisons confondues) dans l'ordre ante-alphabétique
SELECT joueur.nom, joueur.prenom
FROM joueur JOIN gagnerJ ON gagnerJ.numJoueur = joueur.numJoueur
JOIN competition ON competition.numComp = gagnerJ.numComp
WHERE competition.nom = 'CoupeFrance'
ORDER BY joueur.nom DESC;
|
<gh_stars>10-100
-- file:groupingsets.sql ln:334 expect:true
explain (costs off)
select sum(v), count(*) from gstest_empty group by grouping sets ((),(),())
|
CREATE PROCEDURE [dbo].[BugNet_ProjectMailbox_UpdateProjectMailbox]
@ProjectMailboxId int,
@MailBoxEmailAddress nvarchar (100),
@ProjectId int,
@AssignToUserName nvarchar(255),
@IssueTypeId int
AS
DECLARE @AssignToUserId UNIQUEIDENTIFIER
SELECT @AssignToUserId = UserId FROM Users WHERE UserName = @AssignToUserName
UPDATE BugNet_ProjectMailBoxes SET
MailBox = @MailBoxEmailAddress,
ProjectId = @ProjectId,
AssignToUserId = @AssignToUserId,
IssueTypeId = @IssueTypeId
WHERE ProjectMailboxId = @ProjectMailboxId
|
<filename>dataactvalidator/config/sqlrules/fabs4_detached_award_financial_assistance_1.sql
-- Action date must follow YYYYMMDD format
SELECT
row_number,
action_date,
afa_generated_unique AS "uniqueid_AssistanceTransactionUniqueKey"
FROM detached_award_financial_assistance
WHERE submission_id = {0}
AND CASE WHEN is_date(COALESCE(action_date, '0'))
THEN action_date !~ '\d\d\d\d\d\d\d\d'
ELSE TRUE
END
AND UPPER(COALESCE(correction_delete_indicatr, '')) <> 'D';
|
# PERSON schema
# --- !Ups
CREATE TABLE PERSON (
ID numeric NOT NULL,
NAME varchar(255) NOT NULL,
PRIMARY KEY (ID)
);
# --- !Downs
DROP TABLE PERSON;
|
CREATE TABLE [dbo].[UserQualifications] (
[UserQualificationID] INT IDENTITY (1, 1) NOT NULL,
[IntegratorUserID] INT NOT NULL,
[EductaionalInstitutionID] INT NOT NULL,
[QualificationLevelID] INT NOT NULL,
[QualificationTitle] VARCHAR (175) NOT NULL,
[YearStartedQualification] DATE DEFAULT (getdate()) NOT NULL,
[YearCompletedQualification] DATE DEFAULT (getdate()) NOT NULL,
[QualificationAverage] FLOAT (53) NOT NULL,
CONSTRAINT [PK_UserQualifications] PRIMARY KEY CLUSTERED ([UserQualificationID] ASC),
CONSTRAINT [FK_UserQualifications_EductaionalInstitutions] FOREIGN KEY ([EductaionalInstitutionID]) REFERENCES [dbo].[EductaionalInstitutions] ([EductaionalInstitutionID]),
CONSTRAINT [FK_UserQualifications_IntegratorUsers] FOREIGN KEY ([IntegratorUserID]) REFERENCES [dbo].[IntegratorUsers] ([IntegratorUserID]),
CONSTRAINT [FK_UserQualifications_QualificationLevels] FOREIGN KEY ([QualificationLevelID]) REFERENCES [dbo].[QualificationLevels] ([QualificationLevelID])
);
GO
CREATE NONCLUSTERED INDEX [IX_UserQualifications_QualificationLevelID]
ON [dbo].[UserQualifications]([QualificationLevelID] ASC);
GO
CREATE NONCLUSTERED INDEX [IX_UserQualifications_IntegratorUserID]
ON [dbo].[UserQualifications]([IntegratorUserID] ASC);
GO
CREATE NONCLUSTERED INDEX [IX_UserQualifications_EductaionalInstitutionID]
ON [dbo].[UserQualifications]([EductaionalInstitutionID] ASC);
|
<reponame>IvanPavlovets/ipavlovets<filename>chapter_005/src/test/java/ru/job4j/db/spamerDB.sql
create database spammer;
create table users(
id serial primary key,
name varchar(255),
email varchar(255)
);
select * from users;
|
<reponame>deka108/meas_deka<filename>db/mathdb_dbmanagement_subject.sql
CREATE DATABASE IF NOT EXISTS `mathdb` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `mathdb`;
-- MySQL dump 10.13 Distrib 5.7.12, for osx10.9 (x86_64)
--
-- Host: localhost Database: mathdb
-- ------------------------------------------------------
-- Server version 5.7.16
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `dbmanagement_subject`
--
DROP TABLE IF EXISTS `dbmanagement_subject`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dbmanagement_subject` (
`id` int(11) NOT NULL,
`title` longtext,
`edu_level_id` int(11) DEFAULT NULL,
`description` longtext,
PRIMARY KEY (`id`),
KEY `DBManagement_subject_2947486` (`edu_level_id`),
CONSTRAINT `edu_level_id_refs_id_1771aa60` FOREIGN KEY (`edu_level_id`) REFERENCES `dbmanagement_education_level` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dbmanagement_subject`
--
LOCK TABLES `dbmanagement_subject` WRITE;
/*!40000 ALTER TABLE `dbmanagement_subject` DISABLE KEYS */;
INSERT INTO `dbmanagement_subject` VALUES (1,'Additional Mathematics',2,'O Level Advanced Math'),(2,'Elementary Mathematics',2,'O Level Elementary Math'),(3,'H2 Mathematics',1,'High School Math'),(4,'PSLE Mathematics',3,'Primary School Mathematic');
/*!40000 ALTER TABLE `dbmanagement_subject` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-05-15 19:53:53
|
<filename>books/book_chapter.sql
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 30, 2020 at 04:50 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 5.6.37
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `publication`
--
-- --------------------------------------------------------
--
-- Table structure for table `book_chapter`
--
CREATE TABLE `book_chapter` (
`b_id` varchar(5) CHARACTER SET utf8mb4 NOT NULL,
`ch_title` varchar(150) NOT NULL,
`ch_number` int(10) NOT NULL,
`ch_pgno_from` int(10) NOT NULL,
`ch_pgno_to` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `book_chapter`
--
INSERT INTO `book_chapter` (`b_id`, `ch_title`, `ch_number`, `ch_pgno_from`, `ch_pgno_to`) VALUES
('B45', '', 0, 0, 0),
('B46', '', 0, 0, 0),
('B47', '', 0, 0, 0),
('B48', 'ersdtfyg', 4, 45, 54);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `book_chapter`
--
ALTER TABLE `book_chapter`
ADD KEY `b_id` (`b_id`);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `book_chapter`
--
ALTER TABLE `book_chapter`
ADD CONSTRAINT `book_chapter_ibfk_1` FOREIGN KEY (`b_id`) REFERENCES `books` (`b_id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : liboshi
Source Server Version : 50726
Source Host : localhost:3306
Source Database : jxc0910
Target Server Type : MYSQL
Target Server Version : 50726
File Encoding : 65001
Date: 2020-10-23 14:38:35
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for mbs_assessment_record
-- ----------------------------
DROP TABLE IF EXISTS `mbs_assessment_record`;
CREATE TABLE `mbs_assessment_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sserver_id` int(11) NOT NULL COMMENT '服务单id',
`ser_sign` blob NOT NULL COMMENT '技师签名',
`adduser_id` int(11) DEFAULT NULL COMMENT '添加人_id',
`server_id` int(11) DEFAULT NULL COMMENT '技师id',
`server_name` varchar(255) DEFAULT NULL COMMENT '技师名称',
`ser_demo` varchar(255) NOT NULL COMMENT '服务项目',
`ser_detail` varchar(255) NOT NULL COMMENT '服务内容',
`ser_pro` varchar(255) DEFAULT NULL COMMENT '产品',
`time` datetime NOT NULL COMMENT '创建日期',
`update_time` datetime DEFAULT NULL COMMENT '修改日期',
`ask_time` varchar(255) DEFAULT NULL COMMENT '备注',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='服务记录表';
-- ----------------------------
-- Records of mbs_assessment_record
-- ----------------------------
INSERT INTO `mbs_assessment_record` VALUES ('4', '4', 0x646174613A696D6167652F706E673B6261736536342C6956424F5277304B47676F414141414E53556845556741414165554141414436434159414141436678312B5941414152346B6C4551565234587533647936344556525547344D565655495047474457676F73616F69635148304C6B506F414E487A686E794A6F795A366B5148506F41506F4D363959597A33674159546F38524C5145484E78693473366E53667275367579397037663265695148665632743961702F3554316458644434516641675149454342414949584141796D7155415142416751494543415151746B5145434241674143424A414A434F556B6A6C45474141414543424953794753424167414142416B6B4568484B535269694441414543424167495A544E41674141424167535343416A6C4A4931514267454342416751454D706D67414142416751494A424551796B6B616F51774342416751494343557A5141424167514945456769494A53544E45495A42416751494542414B4A734241675149454343515245416F4A326D454D6767514945434167464132417751494543424149496D4155453753434755514945434141414768624159494543424167454153416147637042484B494543414141454351746B4D45434241674143424A414A434F556B6A6C45474141414543424953794753424167414142416B6B4568484B535269694441414543424167495A544E41674141424167535343416A6C4A4931514267454342416751454D706D67414142416751494A424551796B6B616F51774342416751494343557A5141424167514945456769494A53544E45495A42416751494542414B4A734241675149454343515245416F4A326D454D6767514945434167464132417751494543424149496D4155453753434755514945434141414768624159494543424167454153416147637042484B494543414141454351746B4D45434241674143424A414A434F556B6A6C45474141414543424953794753424167414142416B6B4568484B535269694441414543424167495A544E41674141424167535343416A6C4A4931514267454342416751454D706D67414142416751494A424551796B6B616F51774342416751494343557A5141424167514945456769494A53544E45495A42416751494542414B4A734241675149454343515245416F4A326D454D6767514945434167464132417751494543424149496D4155453753434755514945434141414768624159494543424167454153416147637042484B494543414141454351746B4D45434241674143424A414A434F556B6A6C45474141414543424953794753424167414142416B6B4568484B535269694441414543424167495A544E41674141424167535343416A6C4A4931514267454342416751454D706D67414142416751494A424551796B6B616F51774342416751494343557A5141424167514945456769494A53544E45495A42416751494542414B4A734241675149454343515245416F4A326D454D6767514945434167464132417751494543424149496D4155453753434755514945434141414768624159494543424167454153416147637042484B494543414141454351746B4D45434241674143424A414A434F556B6A6C45474141414543424953794753424167414142416B6B4568484B535269694441414543424167495A544E41674141424167535343416A6C4A4931514267454342416751454D706D67414142416751494A424551796B6B616F51774342416751494343557A5141424167514945456769494A53544E45495A42416751494542414B4A734241675149454343515245416F4A326D454D6767514945434167464132417751494543424149496D4155453753434755514945434141414768624159494543424167454153416147637042484B494543414141454351746B4D45434241674143424A414A434F556B6A6C45474141414543424953794753424167414142416B6B4568484B535269694441414543424167495A544E41674141424167535343416A6C4A4931514267454342416751454D706D67414142416751494A424551796B6B616F51774342416751494343557A5141424167514945456769494A53544E45495A42416751494542414B4A734241675149454343515245416F4A326D454D6767514945434167464132417751494543424149496D4155453753434755514945434141414768624159494543424167454153416147637042484B494543414141454351746B4D45434241674143424A414A434F556B6A6C45474141414543424953794753424167414142416B6B4568484B5352696944514B4D43627837574E5437574C4833632B553945504E696F6E3256314A7244304C30646E664A5A4C6F476D424956434852523437586D5138686D537371656C4273626A6C42417A7663706132524B413267524B36777A466779324E424F624D74502B562F48376F5237642B6A4E647A3378384F4E752F46304174734962506D4C754D324B374955416762484161784878794347343176683948774A32324F63535158747442346461316C6A6E74545635486F474C42417A76525677655443436C7741386A34764D336E76554F6766626A69506843796C57654C32705977797352385A487A442F634941766B4568484B2B6E71694977436D426E305445353234383679334239632B49654B78423576466C6354642B4E646A674870596B6C48766F736A58574A6E42722B413768314673776A563966646D7972626572562B356141775455494250595475435638682B42393858447065723956354E6E7A36784878364B4563783759386656484A4251494739774973447956777059447776524C756971634E66367A3850694B6575754C356E6B4A67567747687643752F6E546371384C4F492B4D794656364B632B53347A4446355858736252566E5953454D6F377764747463774C6C35716D485A7753783846323339654F3361446D2B7257747436797349474E6F56554732794734466A48317778586E774A694433667439744E4930594C64624E586A313176614D31437561466D57737271416E504F686B73492F2F7A773171585643374B444F7749765238535468332F722B475A4171684D77744E5731544D4562433553506F6A7A3331714A79646E627278305675764B796D642B6554765A70756239754C45387074393966714C68655963354E574F65692F4D5872377A65563738597731425954796D7271327661714155463656313859724552692B6D4F472B337764664431684A4D772B763435647148642F71365A6C4B76655A69426A6F586D484F546C7250684F6F66456D584B6466564F317679544E5147634363344C59545672314434565172722B4833613741355A317557392F46776B76416676724D48353975306D707646495279657A33745A6B5643755A7457643750516330466344746A6C4E65547948634E2B32685151796D3332745974564365557532747A38497639316545765371586B57784D3250774473574B4A5437366E64547178584B5462577A7138576375324F36484A682F6366674D367135674C50617454314572503435766871453641554E62586375364C766A6342336B4934713748342B33464332567A554B3241554B363264563056667439643039342F334E556F7A467173554A37463545455A425952797871366F7151695553382B664F6E454A556843626B667345684C4C3571465A414B466662756D594C5078584767726A5A6C692B2B4D4B47384F4B6B4E626955676C4C65537470397A417558547334353971594D775069666E76303846684C4B5A71465A414B466662756D594B4638624E74444C4E516F52796D6C596F354649426F5879706D4D63764A58447135713179682F5844532B334564726F55454D70647472324E5251766C4E767059307971456355336471724E576F56786E333154747A66566D59454F42553248387938506E55323959696C30314C694355473239777938747A7074787964334F733764514866676A6A485031707351716833474A584F316D54554F366B3054737463337032374537716E52725232573646636D634E62326D3551726D6C62755A5A79374537716E39392B44435150465771704655426F6478715A7A74596C3144756F4D6B624C39485A38636267646E644851436762696D6F4668484B31725574582B4B386934704F5471707764703274544677554A35533761334F596968584B62666431365663364F74786133762F7345684C4C3571465A414B46666275685346487A7337397545664B5672546452464375657632313731346F5678332F2F61732F6A63523866536B41504F305A30667365784151796D6168576745483057706274337668773447764646497558782F374D6F6E64693152416C774A43756375327437466F6F58782F4838737674384335617A522B445A6C50473865436C6C59686C4676715A6D64724563716E477A344F4868393638582B6E3853643063656E736746484A636F56794A593153356C30426F587A2B54486E366950494C2F394F49654B6244675A712B6A6D782B4F687943437059736C43746F6B684B50437A696F6E702B4D55312B6B304F4E5A347668315A4C4E7A666E5938596838426F62795075373075494F44414F672F7878596A3437496C763165726C4C55446A5150357452487869487031484564686351436876546D364853776B493563736C33783852663534387266577A5A6A64325854346E6E724766674644657A393665627851517974634448767653685262443259316431382B495A2B346A494A54336362665842515345387532497831357A62756D53747465526235385257396857514368763632317643776F49356555776A34587A717846524C6E66582B6A4E656B396552612B31696633554C356635363373794B68664B79725379764E553944754E5A4C32722B4C694938646547706477374C6474625661424952794C5A3153357830426F627A4F554C54776572504C3175764D687132754B7A432B75755034747136317261386759476858514231743874676C3752724F4F73642F564E525137377064745056734176656443512F2F7A64786D363570365A676B4935566C4D4E7A2B6F747076426E43586633484962574648675643673753313452336161334552444B327A695876527A3771734E7963486B70496A362B58526C6E397A512B734C5630462F6E5A685874414E514B6E51746C5A636A5574564F6770416147382F57786B6637335A57664C324D3247506C776B4D4D2F716C69506A2B34616E6A50336F643179377A394F6845416F5A337632596375365339393963676567765566764E677A2F4D466A6C326D3973666B66442B50544377676C5064767A6A5363393778427865572F2F6564424265634676686752337A733862446947446250722F66546E2F547769735942517A7447635936383362393262386364706272337648463151525530435177682F4E534B2B4852455054304B367072576F6C6344624167362B75595A68657462383134683459714D5333626D36456254644C434977766C7739624C4463722F4849496C75334551493743516A6C6E654476326533346A4C5538624B76586D5632367A6A634C4B6A6F74384A57492B4D376B507A75656D5A6A71425178787A6861574D2B54336A6B7262346E586D495A53394453726E544B6A7172734458492B496268332F396245533841496C4137514A434F5863487035666F3172714A7865764A7565644164616346536A43586E323943497443436746444F3338587036387872584D3732656E4C2B4F5641684151496443416A6C4F706F38665A31353663765A586B2B75597735555359424134774A43756134475479396E4C3358573750586B75755A41745151494E436F676C4F74723742706E7A62352F74723435554445424167304B434F56366D37726B57624E51726E634F5645364151454D4351726E755A693731455A31437565343555443042416F3049434F5836472F6C635244772F5763627245664859425573547968646765536742416754574568444B61386C7576393162336A6F6C6C4C66766C7A3053494544676A6F4251626D736F586F7549643432574E50657455304B3572546D77476749454B685551797055323770367976787752333730776D49567965334E6752515149564367676C437473327379537033646E333966723462475052305135322F5A4467414142416A7349434F556430446663356478674868373370346A343449623132525542416751496A4153456376766A4D4C3042374F57492B4F686B3254356D732F30357345494342436F51454D6F564E476D42457165664176624869506A77614C74436551466B6D794241674D4374416B4C35567346366E763947524477304B7264385A2F4D5468333865582B5932452F5830564B55454344516D34414463574550504C4F656C69486871394A6A6851305A3864574E66633243314241676B4652444B5352757A596C6D76524D53484A7348386145514D7332416D5673533361514945434E776E34414463353379557536772F4D46703665633135754C54395A4554386F55385771795A41674D432B416B4A35582F3839392F37713644586C6352336A31357233724D2B2B43524167304A3241554F367535653959384E386A3474305467726B667A646D336E4E5554494542674251476876414A715A5A753839764F794B31756D63676B51494A426651436A6E37394557465537506D432F393673637461725150416751494E4338676C4A747638657746546A2F35537A445070764E41416751494C434D676C4A6478624745723031417561784C4D4C5854574767675171455A414B4666547174554C2F557445764F2F495867547A36765232514941416766384A434757544D4169384A794C2B64766948636766326544624D69546B68514944414267494F746873675637534C385764676C38765A4434354365766A2F4653314871515149454B684C51436A5831612B317178312F6163552F49754C7830526D7A39792B7672572F37424168304C79435575782B424F774454723345636E7A322F4542485049694E416741434264515345386A71754E573931664264322B527A73483054453079356A3139785374524D6755497541554B366C553976562B5678455044384A34656E5A3833625632424D42416751364568444B485458376771574F7A356166695967662B577248432F51386C414142416C634B434F55723452702F57766C61782F4C316A75576E6E435750622F49794D343033332F4949454E685077414632502F7673657836664C5A6335475335686D356E736E564D6641514C56436A6A415674753654516F6633336B39374E444D62454A764A77514939436A67414E746A312B65762B6333524234674935666C75486B6D4141494772424954795657786450576C36746D786D756D712F78524967734B5741412B7957326E587536317352386256523657616D7A6A36716D674342436751635943746F556F4953707A64394A53684A43515149454768505143693331394F31567554753637566B625A634141514948416146734641675149454341514249426F5A796B45636F675149414141514A4332517751494543414149456B416B493553534F555159414141514945684C495A49454341414145435351534563704A474B494D41415149454341686C4D30434141414543424A4949434F556B6A5641474151494543424151796D6141414145434241676B4552444B535271684441494543424167494A544E4141454342416751534349676C4A4D3051686B45434241675145416F6D77454342416751494A42455143676E61595179434241675149434155445944424167514945416769594251547449495A52416751494141416146734267675149454341514249426F5A796B45636F675149414141514A4332517751494543414149456B416B493553534F555159414141514945684C495A49454341414145435351534563704A474B494D41415149454341686C4D30434141414543424A4949434F556B6A5641474151494543424151796D6141414145434241676B4552444B535271684441494543424167494A544E4141454342416751534349676C4A4D3051686B45434241675145416F6D77454342416751494A42455143676E61595179434241675149434155445944424167514945416769594251547449495A52416751494141416146734267675149454341514249426F5A796B45636F675149414141514A4332517751494543414149456B416B493553534F555159414141514945684C495A49454341414145435351534563704A474B494D41415149454341686C4D30434141414543424A4949434F556B6A5641474151494543424151796D6141414145434241676B4552444B535271684441494543424167494A544E4141454342416751534349676C4A4D3051686B45434241675145416F6D77454342416751494A42455143676E6159517943424167514943415544594442416751494541676963422F416657635A416F58394443384141414141456C46546B5375516D434320, '1', '28', '技师三', '3', '4', '4', '2020-10-03 00:00:00', null, null, '1');
INSERT INTO `mbs_assessment_record` VALUES ('5', '4', 0x646174613A696D6167652F706E673B6261736536342C6956424F5277304B47676F414141414E53556845556741414165554141414436434159414141436678312B594141415245306C4551565234587533647936737342784548344972332B6B694D3061737850684343496F494C4D61496F4B436775784B30724E323731667844637574452F5158446E557368614E7A35515156485568527352685969596F444852364932502B4B446A6D54675A2B357835646664555658385873676A4D644664395657642B702B6478357037776A774142416751494545676863452B4B4B685242674141424167514968464332424151494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D6767514945434167464332417751494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D6767514945434167464332417751494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D6767514945434167464332417751494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D6767514945434167464332417751494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D6767514945434167464332417751494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D6767514945434167464332417751494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D6767514945434167464332417751494543424149496D4155453479434755514945434141414768624163494543424167454153416147635A42444B494543414141454351746B4F45434241674143424A414A434F636B676C45474141414543424953794853424167414142416B6B4568484B535153694441414543424167495A547441674141424167535343416A6C4A494E514267454342416751454D703267414142416751494A424551796B6B476F5177434241675149434355375141424167514945456769494A53544445495A42416751494542414B4E734241675149454343515245416F4A786D454D676751494543416746433241775149454869787744386A596E687350505878386454376D514F426B35634F48514543424C6F492F434969336E5A47434F38362F4473695874494652782F4C4376694E626C6C765A794E41494966414956664451376A2B4B794A7548316A796350767466322B4F694E386565463833492F4338674643324341514972455867487846783634624876534655682F2B4732357A793736474965487A722B4B3659543146632B58324538736F58515073456D67763850434C657669654966336C316D366B6F687176727A575072307846785A366F444F30352F41614863663859364A4C424767653167334F312F69537659376165796831416577746B2F416E734668504A65496A6367514B4351774856685049546B3849617564797A55797A4D5263662F56755A62344A5743687470786D62674768504C657734784D34544F4275524E783332453364616B5467756A422B4C694A6565694778375A6F38316C356F434E564F6131477154557939585155325433634F442B536E7674476F7138314E6659324663615972303831635064617563547450364E6D696E49446D4C67516D467367654C424F334F386E687170674A35556E47765A3644434F58317A46716E6551562B46684876764F596477734F442B6C4D523862713835533961326644353474302F7A4A4870796E67585179677675683731547961553638395142373045626E7258384E71663274363179527A476D3630557972312B506D667652696A505475774542453453474C73693348366758394F666352797A71504C594A5A525057762F3133716E4B59713933516A706675384354563339385975786E74634B5634726E7A3237303672765A736756412B64774E57646E2B68764C4B42613765737750437A75766C377A574F7657335A3733626E79316648326649527932522B35797851756C432F6A377177457A68486F2F7452323961746A6F587A4F64712F38766B4A35355175672F644943663432496C393377643532725064553739696133366F39527270524C2F34677458337A31685639657A426B4A35424E34533051387475644C4634373543734B6C4F78774C3432712F5546786E4A705358337162693578504B7851656F6641493741734E7279362F654539432F6A6F69484538673947784776324B6D6A3235765868484B4352617455676C43754E433231456A684F594E39727A312B4F694D38636438684A6276336A6948686B3545672F69596A3354484B4750416352796E6C6D556149536F56786954496F6B634C624154642B65744E526E6E6F63776676664956587A484D4E344D54436966766272724F6F425158746538645576675478487871684747755A38324876756C5948696A3272334E52794B556D77393436766145387453696A6B6567687342315432315048633556766A686972716B4A35626C6B6D7835584B446364724C59494843687733645061353737372B596352386436644771594F2F414E62764F6A4E68504A462B65756458436A586D356D4B436377686346303450784D5244787835776F36664E7A365334495762432B565435565A3650364738307346726D384131416A6539495777496D467333794E3064655931342B4E6A546653765746736F72487634707251766C553954636830427667533946784B64762B4B7A7A305030514E6C2B4D694D3965555654385773556C706969556C31427564413668334769595769457773634250492B4A6465384A35374A512F696F6A335456784C78634E7476356E4F59323346435636675A6F74794158536E4A46425559504D74566673654E396234687136786B57342F65374450724F684B4B4874714159737974616A6A45656776634E4E66437476742F7478336356665733447831375A6555796C4E6375486168764443343078456F4C6E44646138663776724671434B5A396278517254764E2F355739436566676C356E61333576517A6A3442516E73665655516C30464E674E354239457841657561665336643345504E782F433675386A5830625279577A373259513745664630702B62304D702B41554A37503170454A64424834666B53386636755A5935364F2F5535456648445074315A394B79492B32675872716F2F4E56664C777678356E6D7731337A6E5973793579366A6B3267767344753638664842504A7539346338786233556C32504D4F5A6B6E49754B6871784F732B5458314F593362486C736F74783274786769634C624437465054777830466565665A522F33754166652F6B72767755392F5A563868653250737339455A3344644259517970326E717A634370777363382F727836576635583044767530492B357772393350714F75662B326D36766B592B5463396E6B426F57775243424459466A6A6E39654E7A4A5965766C507A6A4159394C57612B69507838526E39744338506836376B6173385036575A6F5644317A4B426177536D6650313443755239723046767A70486C696E54626233696166336936337A384352776B4935614F34334A684157344535587A2B654375335150317179655531333659396465636631564A4E6538584745386F714872335543456648647134387362574E384C79492B6C467A6E304B766F37546132773372343750447744565A542F52767165666E5677624A6375552F566D2B4D734B434355463852324B674C4A4244703973394D6D70416669557837587476386B356D4D523864596A5A725564794B65652F346A5475576C6E67564F5774374F4833676973525741336B5038534566633362503763734235496873416576423459655A31344E3543666A496748477A7071615345426F627751744E4D5153434C773535485047712F7863654258456648773155796D367639767A663930614A4956376C3347564D765957306C3342486F49644871366575364A504263527732656E4433324D464D687A5432516C787A3930345662436F5530434C51577176706D72355441305265416D4161467350776A3046736A323265506532726F6A634B614155443454304E304A4A426259666272615233555344307470424159426F577750435051553241336B623066455233713271697343665153456370395A366F5441494442384E2F474874796971664A4744365245673445725A4468426F4A6544313431626A314D776142567770723348716575346F7350743039544E58662B7969593639364974425751436933486133475669546739654D56445675727651574563752F3536713633674E65506538395864797355454D6F72484C71575777674D663348716C6A6430745A696C4A676938494343554C514F4265674A65503634334D7855544F4568414B422F453545594555676A735868305052666B5A546A456152524359527341503944534F6A6B4A67626F4864712B506834302B33357A367034784D67734B79415546375732396B4948437667367668594D62636E554668414B4263656E744C6243376736626A396944524A34735942517468454538676E73687248586A76504E534555455A68455179724F774F6969426B775447777468727879645275684F426D674A4375656263564E314C344138526357656E4A56386B30577647756946776B494251506F6A4A6A516A4D4976433169506A59794D65617668345248352F6C6A41354B6745427141614763656A794B61797777396C54315578487832735939613430416754304351746D4B454668575943794D50565739374179636A55426141614763646A514B6179627775346834304F76477A6161714851495443776A6C695545646A734349674938345751734342413453454D6F484D626B52675A4D4578734C34397848782B704F4F356B3445434C5158454D727452367A42437767384868467638465431426553646B6B4278416146636649444B54796667716570304931455167546F4351726E4F72465361562B41334566476D6B633862507845526238786274736F49454D676D494A537A545551396C515447726F71482B6E33457164495531556F676B594251546A514D705A515275427352393435554B347A4C6A4643684248494B434F576363314656546F4776524D536E646B6F62677669724566484A6E4357726967434253674A4375644B30387454366D6F6A34526B51386B71656B69315469352B63693745354B6F4B2B414235572B7335327A73303945784B4E7A6E694435735A2B4E69507553313667384167514B43676A6C676B4E4C557649517A4E2B4D694B6554314B4D4D416751496C426351797556487141454342416751364349676C4C744D5568384543424167554635414B4A63666F515949454342416F497541554F3479535830514945434151486B426F56782B68426F67514941416753344351726E4C4A505642674141424175554668484C354557714141414543424C6F49434F55756B39514841514945434A5158454D726C5236674241675149454F6769494A5337544649664241675149464265514369584836454743424167514B434C674644754D6B6C39454342416745423541614663666F51614945434141494575416B4B35797954315159414141514C6C425952792B524671674141424167533643416A6C4C70505542774543424169554678444B3555656F415149454342446F49694355753078534877514945434251586B416F6C782B68426767514945436769344251376A4A4A6652416751494241655147685848364547694241674143424C674A437563736B39554741414145433551574563766B52616F414141514945756767493553365431416342416751496C426351797556487141454342416751364349676C4C744D5568384543424167554635414B4A63666F515949454342416F497541554F3479535830514945434151486B426F56782B68426F67514941416753344351726E4C4A505642674141424175554668484C354557714141414543424C6F49434F55756B39514841514945434A5158454D726C5236674241675149454F6769494A5337544649664241675149464265514369584836454743424167514B434C674644754D6B6C39454342416745423541614663666F51614945434141494575416B4B35797954315159414141514C6C425952792B524671674141424167533643416A6C4C70505542774543424169554678444B3555656F415149454342446F49694355753078534877514945434251586B416F6C782B6842676751494543676938422F414D736849417265584D75794141414141456C46546B5375516D434320, '1', '28', '技师三', '22', '22', '2222', '2020-10-03 00:00:00', null, null, '1');
INSERT INTO `mbs_assessment_record` VALUES ('6', '4', 0x646174613A696D6167652F706E673B6261736536342C6956424F5277304B47676F414141414E53556845556741414165554141414436434159414141436678312B594141416741456C45515652345875326450773875755657486E623272374C494C2B514D53434953514B476841516B4A38414367514A51557431485330616449675569416F4B616D68704B45454A4D5148514E42415259645743416B4943736B6D75306B414F66764F3472553834325037324436326E797446755874666A33334F6338366333396A6A6D666D6334773845494141424345414141695949664D3645465267424151684141414951674942446C456B43434541414168434167424543694C4B525147414742434141415168414146456D427941414151684141414A474343444B52674B424752434141415167414146456D5279414141516741414549474347414B42734A42475A41414149516741414545475679414149516741414549474345414B4A734A42435941514549514141434545435579514549514141434549434145514B4973704641484772472F7A6A6E506E624F7658756F2F37674E4151684134444D4545475553596861422F7730474A67396E52594678495141425577516F68716243635A51783333484F7666507932417630573064356A374D5167414145456751515A644A694A67472F6648336C494D49384D784B4D445145496D4343414B4A734977394647684D76594867513565585136344477457A695A41415477372F6C61385A385A734A524C5941514549544357414B452F467A2B41426756435979557453417749514F4A494178652F49734A74772B6C7132446E50772B6A66754C35734945555A4141414B6A4353444B6F346B7A336B55674A63726862506B6A6E6C386D5753414167644D49494D716E5264794F76796C5239746146473738515A6A76787768494951474141415552354147534753424B34452B58772B57562F49446C4B416B4541417363516F4F41644532707A6A74364A736A65554634755943786347515141434977676779694D6F4D30614B774A4D6F2B2F627378695A7649414342347767677973654633497A444F56454F37792B7A4739744D324441454168446F53514252376B6D58767038495345535A32544935424145494845554155543471334B61636C5968794F46762B766E507562564D6559417745494141425A514B49736A4A5175684D544B42566C6C72444661476B494151697353674252586A56793639737446575757734E65504E52354141414A43416F69794542544E31416C4952646B7657312F6657695A6631634E41687843416743554346446C4C30546A4C46716B6F682F65562F642F4A326250794247386863425142437478523454626C62496B6F68374E6C76357A397870516E47414D42434542416951436972415353626F6F4A6C4968795046766D6E646A4675446B41416842596751436976454B5539725378564A5466643835394D3043424D4F2B5A4633674667614D4A494D704868332B71383657693749324E503161424D45384E49594E4441414C614242426C62614C304A79565149386F705966345A3539792F5341656C485151674141484C4242426C7939485A32375A61555936466D546439375A306E654165426F776767796B65463235537A4C614C7348626D4F372F326D4C37396B2F713470636867444151687353774252336A61303568317246655552622F7136376D467A6E7068504A777945774234454B445A37784846464C3170464F587832756364734F647855786E6D79596F5A684D7751574A4543785754426F6D356A634B73726845766146784F2F472F6C6E6E334C38714D4C727338313278793173424B46314141414A35416F68796E6845742B684451454F5766644D35396B486A3170752F373935317A76316470656A674C447757666538755651446B4D41684351455543555A5A786F7055394151355176712B4C6E6C36392F72313357446D664A6F65664D6D50587A6742346841494741414B4A4D4F7377696F436E4B6C7739334D2B64534D6231733835764A767575636534647A5A6C61614D4334457A694B414B4A3856623076653968446C79372B764F4F662B384D625A6E45436E4E6E697836637453356D414C4244596D6743687648467A6A727655553564797939704D77337A317146533570633934595479374D673843714243677571305A756662744869484A493665362B6333774F53455335396C37312B6C4844417768416F437342524C6B72586A702F494442616C4C30704B57474F7A34476E4758456F324C6C6C63494950415168416F4A67416F6C794D6A414F55434D77515A572F36337A6E6E66696C346A4F704F6C4F396D772F484F624D3468705953674777684177446B4B436C6B77693842495566625048667463542B563771536A487332334F6F566B5A784C6751324A4141425758446F433769556939522F70357A37713062415137522B50462F33446E333778477679363763386E51762B3632477A312B4D665037463171714E3241574235516B677973754863466B484E45524E4B7341584A442B6D76792F3839674D317156326A766C4A6C49634138456D596843746877424146452B5967776D3352534B6E37652B477557357639656B724F5843482F424F66656867454C4A6C36644B326771474E74736B5871356E35376E5A554748594467524B4374774F2F754B444851497055613456582B2B565A42616338373555614573754C484A6A572F303939637052366F62566147485838675134755A59503462494F684D752F4A586C3448666578632B374C7A726C764B78496F6655484953614C733737466672787374695A6469654F674B41767354344F54615038615750487A614252336247597276714B387A496371666A554C34745378664B303634434C4630766D444C6751515135514F445074426C715168724C44317275465736655774336B596F76556E623356794F4836414D435451515135535A38484277524B4248684B2F6373355343692F4E6D41586A7A38766659336D383255772F3044313534452F796764667941776C59436C676A675642494D58453767325A556C794B445554746A6A724B7257707448307835496B4870446139376543763942336F4539457A394D6B454A4158315A4437342F763845704C50676139616839547A7771426A345A353739624E442F6B5A34584F346A5548642F55717348712F73617A3438743348764D61645A5978547061417450686B4F364C425667524B5A73476843482F524F66637449516C724262373063616964583669522B314C57536E556A334B775770716250503475335549536E443831324A62445379625672444762373956586E334E634B5A6F69586D50364263383466572F76486D696A58377277756D566E5873687039334E323964577378752B4E794A3854584261532F6431776137394578594C78444353444B3577572B357457552F706C673763655372425834326B31657558646B72355A6854797347316D4957733731626E766274727331712F752F684B6B663437367646436E73334A49416F62786A556C307331623866795264662F377A336E6E4265626E6E2B7346666A4C486A2F4C656E6F33396C586764313336664C6F347352617A4B7A2F764E6D2F644353367A354A356E4E6E3033455543556D2F435A4F4C684766432F4466584836652B66634C302F7778464B424C396E6B46633747647473676C4F4E674B575A336770794C5352672F5A736B54546E7947664361414B4B2B5449613369367A33743857724B576F4B574372786B6B3164714E7262622B5A506A59436C6D38544B302F2B2F6372595477586E4E4F7647767A6D754D673045526774364C53424D5049775672692B38504F4F542F7A73667248556F48504C5765653871576B4841644C4D59746A6B684E6B6678376B2F4C4E36726D44585151515135586E4231684A66375131596F3468594B764250393146726976386F6874726A3544613758622F5058505A4E376177754657524A65323232394163424559455652666C766E584F2F49764C4F527150547866637543685A464F64376B46652F6D33623259357A61373555533739786B587A6E53767353517843652B5673327A644F307230333052675256476558526A756747754A722F626E434A7353704F5042466B58354F6839536A395A49696E394858454F367A73566B35726B587A35424C5A7573735777394A48776252494C43614B442B3946454344522B382B72754C5134376E6633725A7239353854414F337837766F4C42646A6E312F57717A61763953544F725845786D696C76743248463863342B376A636F37786F46416B7342716F7579645745475945642F38435A6354674877504F693265586A697834766E52516955586B317068624C484A4831763747464F38482B4330654C5A79352F674A42456A534364415A3867634563674977436C50715071586B42534B6A374273355469346D4D3051356A6B394A7A5A706837386834785750647655536C7871615332774D312F58504D44594753424163694244514A3541524163367855582B486D6E2B76336B356171553078794D636B397836776473355A372B37577A613230665276576E4B6369687A61656645365069392B6B3469504A7735417A3449704154674A36675573582B394F4954336861367177756A52546D316975487A496C6533546E784A534D69715A564F6935474D6550632F4E342F764F4A666678674144516A63414D5561626733496454737451724557367468476D3531792F785263764F326633306649372B4C6759746F6A2B626C2F6E784557587A49647257774E47694842655961325938387A4566533847394F4F54754A5936495779673066727934546A33567254444F753476487946652F706751612F65687742674F3141315336464245595564793949616E4346526272555861496F45787156444944487345726E756D576250593636534A4C61386C616D6E62735A706553616D69484B4466413439416D41694F4B2B3933734F4452386842314E6F415963584C4C634B353152313571646D756C4B52546E63764866534C486D6B723645776F782B315766357748464137514B564C4559476559706861616B73747935624D4545564F4C64716F524768377A3052542F55744675655469597446516657723244462B5A4B512F49476B52354147534753424C6F4963716C75367048377961326D41716C4D352B656F6E78336B5651717974642B415975384E57796163642B3835345979445362623949456F6278504B35527A52464F5855726D704A59556155502F75324C456B3936446C44752B746249736F3937624A32637657384D4C727A646654396132764D68396B6A4F516D4847634E4152784851456D584A66574E4A6F646E3558486961445A64656D5051557637746C394A776F6E2F5156714E4A346152515642466D446F7243506E5175524541484E4A68466F4657574E527A52364373776B72492B334376795038546C664F7576714B5170334F5A455435565069474C4B587241527035474334437056375845356A764F5037514A535054344670414770464F665749553232784B42576B61624161426F34765871794B38744E732F6B6D55542F6B4B564F3743704346464867383935594B6E46372F696668486C596D51636F45536752705254393435626376674555633456382B743336574D31765861735078582F4F78394F325130383637576876574B7456454C32374B616C6F4F314A424B39474553675635586A47567A733744763037585A54446537456C7461413064726D63796E3038346B365554356E467A664A7A31726935664E6E3639354954635773514F446563674C537761382B4F55364B38383663617055752F4A625767644861645336356338552F356B425079334A67722F583735723345684B76576265386C5355737274536B354535614870376E4143456C48754D54744F69664B75353046754D31784F444F395356484F4651624A45476F7579392B75746C33476A4E6A7A4E4F6C31376271793738796D3344324557697950473362555948524738785A3138457557636D4769354C726B7730427072526A2B686546376E656E6A4F31347072725A696E474568454A78626C734A2F64613168746A47727A4C6263486F625A666A684D53324432686852686F4E6F46415368444465357958536232573743517A74416C593149614D785337462B2F713330755637695A424B485A47497A70306F537A656E53573278316B3654733853336B32344A5348684D61594D6F5438484F6F4D3635574352477A59354473552F4E486E634954767A7051372F55472F4E7575536A524641764A6855464B6C486466746B374673486475536936516574747766502B49387645704D41314175486E6C756A393447564D3663367478516C4E59617362766555787165666E704971696D446D67732F557433663664457563626D6E7377312B353778714E664F35344E6D624C723374584E6964346648414530455A73392B4E4F2B4C4E6F4651507668754354495730645A5A555868523961625342366B51784C6B7934714B743071586D77325A382B4F46443539775076537A66665157694F5543394F30435565784F6D2F7A734363614564665839775231462B65736E456E536A58436C7972715075386B4D6267704D31486F61386A7A6F6C516B48314D3049544A4E5A734154413741676350484D34465A562B59616F6D49746645386946347179644E6E3479542B706F457236794F58414B614963586C544E454F52764F2B66657335625570396D444B4A385738626E2B396E7752534B6C6E75346C79727143486F6978644E6E3569717447485A4A4E58616B642B6161796C37634D6C2B62656C42796D3230376A516B5A727A725569414557517075633774454F584F674F6E2B55774B703364557A6C387432452B5663515139464F6464576B7261747332337038616D3942784C37744E72343866332F61752B62532B30495635423650515A343259496753364D796F5232695041483659554F6D7675726B6C2B6265655847596C594F535764704B6F637074764C702B44396E6E6C6F317A2F736633715850747739386C4D2B315246334C2B4173452F415A444C52652B7674366E484C46726A516B6E4B50787A4C33314E2B58336F6737666F54794356686677735959586343595145495261436C6F4773776D7A322B6867395848354A6E6A6C4D7A7A74704E58746534755175424A78386C496E51335378355274334A433358704263336542306E75576A4342726E6E6B642B6871523342334D7073744643447939495769324B4D3465587A4F45456F464C725669306E763874747742797836623248317A4D5775327559583833612F643974516A70794D38793870474A6D736750506D5A47636739326B65456D456E677176444E4655624A304F6846623864445347657664716B5878674B3844637349716D536E667A6461663769585072467450473839715A732B53433672612B4D54486A52784C792B626A2B706D5A334D664250737A686E504168796A6F4A49566D366A7065622F5839726E5075315254356E637A78376A473356734632442F7431735869724F34546E532B78476F627A6A6E6675546C7442562B476A485972672B43733131495454676B65572F7653714C384E4776725855787A41533052786A41754775642B796469684839494C4E6E2B4D4637353435374F4737546D7570622B6E6C72647A34747979306C4271583232735373656866534D4269386E6436424B485479596766572F76544645754B564250676E79686E6E6B65535A65754C3175762B476A596E4250587531523845714E552F735178304C433931326D53457566556856753444443769777535692B4E2F4F75532F306370352B32776C5954753532372B68684E4945764F65652B48677A365647777369484A754A76503073666451504559553156517363387641642F483374722B726B4277316F707A6A6C7272762F52514842546536644A477A75655443554D50416B624E794458755037514E52506A6230585277504330314F714B794C63736B53764963353431776158646A6A704B6D354B48675338766765375A56444F5948726B73774B6E54376C304769526A4663626368656B43753754525132424759576B786B364F73552B673948454C7936497358594C58766B646247755853706576532F695874532B50344A455A337939545365456A734864306D745A6D725A6F5642772B37553076702F4F75642B544B4E7A2B74416867436A72634B51582B52642F4C6C616C7856795463573773465762384E624E5554596131636279376B4967464935374A7A56345661474558327A35366C687A626E684A6E744B416C776F7248456768466D4164335658506C6E7850476E6A696678693539544F5871712F5874574B582B57684770456F46357570444962656179346D39706E487A3765426E377172737A362B392F4F4F642B4E48426D70693031544C6339686B4273473971686A70555535746F5A6C705A4475517549556C394B323276355957487032767453347638642B39514C4F654C61744C496F68357A432F506676323537395A2B624638577A66545936504B4A734D79314A47355554757A706C5A7865444A336870665A6F69466C615872556C472B4533444A4A715361324667366B58497241624E736E5855657A764C582F4C694973766B516D5465775A4B59554F6A4F724744794A614930764D385269786F564137754C4B2F2F35555435346568596F464B335572515071705236736E444B4A734E544C4737454B556A51566B4D584E615A6D7A57524C6C5758476549685A576C61352B75556D3550376153436462584C5057356E3854514B66577A35674957326237504F5132302F74756B505564346D6C464D63615A6D787A536F4771646D77354A6E6B4A38416A665A474B344B69456B4E727A74416F523570482F2B393239317071566A46456363754F306E437535766C742B48356D374C585965637979696645796F757A6A614D6D4F62565178536862323159493730785A6F776C5970796170596F35572F4E39354B545375706A535A38616255666D726F6139322F65424B4738663471344F74707A514C6365324F425750572F72536B3954596F337952436D414C6E35706A632F376E587249694656757277695A68316E49424B2B6D2F746B307564725839636C776C41555335456879482F59424179776E64636D77742F7451396349314350386F5871586A5638716B394C75642F376D4969642F786C6C306173616E31734F61356C3730584C754C6C6A6333484A48632F7648516767796832674874536C744A6A4F6E463247593864465861736F74584351706F755772644C785374726C2F4D2F5A6E6A742B6456484F2B562F4357724F743159733854522B58367774525869356B70677957466C4E726F75794C35486564632B2B3844504E2B744C7A496F5957444E4B435743326A4F2F39774D4E336438537051743757444F7854446E662B3734487239627656446F3465745366534C4B5334584C6E4C4853596D70426C4F4D6C524D314332634A42456C54724254546E662B3643496E643853705439763631517636782B54434D5845306C653071594467525753756F5062644B6C455146704D4C5968794B4D4C2B3731667561387934576A6849516D4739674F62387A396D664F33356C5559342F2F6D4368356C712F794A4F6345397532735A416732384939774446704D62556B797234676855765647756441433464636D6F51764A374836306F79632F396676642F626E6A7238545A59304C71687A2F31742F4469304572732F766352564B727A787A665145436A4944554D7A36474C4535415730396D6948442F3264496D7956763633634D696C674F59796532367332742B662F4A653838557A4B4C7859344B794C33784D32614B4966782B4D413539394F315165653450675330696C4966362B6A564F6746704D5A307479716C69726C6E51577A673878546938487A6E363035416C7566666B76325370564D727661686575646C6975596648537457624F6C63516E624C764352563674623173635A7A6D687477433875525053596D70466C4C58764A56392B745842345368474A6F466C497353662F4A534967355265325732454A4E725452776A655566613673774D3143546B2B7A41564765686E364C6761584631496F6F68335A6F356E344C42386E53702B2B2F355A477433736B6D4565556E48365438776E62574C316A69765144583433656165566361562B764D5376335A7376334D424E6B533647464F535975704E564857336A4456777545755A5659716F424A5266716F31556E35784F38757A766E6946514F706A7A784A696D56645076356671473146654B6C7A6D6A4730704E4333486C6F4949433653324949644C6770726E30306F46394336573268635738546A612F5A666D31563337314636416B666D65737373714B79336D322F536A575553326759496A596749746861626C574C4742723461532B35716C665962747458315A725944652B612F4E5054584F39572B574E734B6C347165644936583575744A4658716C76573756486C4C634B3533426E5767704E7937453552304D78534C58567A6E7474583159726F446C523972397233424E2F456D57744D584B354A666B3946542F74484A48596362565A37534B76784C6674326D6F58702B30413464416A675A5A4330334A734C6977355562364F31316A4B7A6E32574D4764722F50754B42665469486650556E73552B69624C6E614B4765706234494E54756D7131336B6C5A347A573757336B4D52624154334D6D525A6862546B32687A6B33633475586E6C746D636232576143334E2F4B5338513575314C31613844616D347A6861386D4530714832614B6F6A552B755677362F6E64452B66675561414C5149717774782B614D7A765564667954413931637A613437664650596D5A316A6D3931554C614570306576695369717531313542654E6C3676414F33426F53544E5A6C34516C4E684A32786342524A6C556143475145372B6E766C754F7A646B733754742B34314B704D444E4C2F6951534B65487049556153465A4453474F5A7971655433654F6B367650696273664C524977596C5047686251514252726F4447495A38536B497066436C6E4C73626B516C5053646D6A564C506E5367586643737A6668796A4D50666E3359626134725258567A6A474D3453357641697A647477765444457335705261356B6C6C3253786B62597A4573574936356968514B42452F4F4C68576F374E6D5637616430715972786E67335A4B30647348546E6E586E47476E2B6E72702F724D3348322F73555677764348506F633174595A46776B7235354E6D6269375846364B38584D684D47567771667148784C63666D494E54324853342F586D4F6B5A6E7170486259356D334B2F39784378334A696176312F32587749552F376647574C6D34787349387372366C6373663750454F51773155587A5A554B6A526A5352346241794B516C475073527549716B5A4C6E58386B7735465A6C77706848506D72566E4964704C34544D794C62366F79416C6F6A593253506B4E7848436C496362374D457552775263482F6E5270666B326B546A794667452B46764D48534C4F456B4B624330697262376A32592F76392B5067586D484E78636A544263424945616C6C653365634656472B4C714375327159566F7A752F4C633251593938747665564D4F392B3237513952336A613051787872576362564573346E6B64504B373951735347735773734D734F5259447A373148664576364447505761776B353962336B3368634275524F3735554935317A652F44794367566251476D4D6F5152676E554C6D4758464E68533133763033617341723334762B59704E664848524977596C666662612B4855334D3734347A4B797043484A7070544459666D5943476353425352554561677442535945744E6174483333657A355A596C3531316D7954342B385137736E6A4751316930745958345359682F44363431774D32664A624F347172524A473230755432366A356D475741514F3053646F2B696665476F7656433477786D4B7031384B39582F435A314439663963736B653479533436352B35793448695854724445314F644D697A446B78396A375735722F327161756438397232305A2B51674F594A497879535A687353714247586D67497252526357714A615A624477446A50754B6C37524C78724A537A4B564D4A653343504C68716932614E7163325A574A676C635A4C657272416768714774624F36535A4B72684E706F6E6A4745334D61307A675A706C324E6F434B33556C4C716F3175533535376C583662484E736477307A71652B7A32715745724962376E6630744F5850336768674A7179636661766455534D615674724677595343316C58595A41706F6E444C44504A6C41365732347073464C533858316779524C7A5866484F485A7353704B635A57536B767163387A32365575554452726A45624F704F4A30787978336A396A436173654F4633637A63336A36324A6F6E7A48526E4D47417167644C696F4646674A51365843484F74494964325042583953365233586D364D655776576D46453549386B723338624344485848697A73702F793362615A347757774C43715349434A5556715A49475633464E7332524355676953646B6531324470346F79726B5A6464464A564E433439454B346F4775617A694B7757304759785A467850794651386E33686B614C7362537535703568627171364A6438756D734A72785A68317A696968624545526D79624F79764F4F3469484A48754964324C5A30746A78626C4B787935475777505154347046545132324E33786D70557A4B58746D43364B4669344B54386E715972346A794D4E54484450516C35397A585839342B4C65745A4B724448424765416F2B464C4C5078776D6A5847537337457A36322F4F344272504D54736934494A4C703878704F594A63775978764A51516B4D79577252525969542B304B534D676958395A6A352B307470497A766679544D6D47574C43573159447445656347674C574379354645524B775632415A7A4C6D64684C4E437A6B544C67534D4F4E4648662F6F6E5076355630593850584B33584E4A6738436345454755796F52654233477A43516F48743554763939706E565773695A584637336A48306F794E54766E71516E396F306F5434532F2B6443356E64675743757A6D495A6A71586F2F343975697A42464B3467332F47593144684263452F4F65642B6F6354346739722B756E5075713836356E33504F66666E316E766F53725374707134353136754471337443684E514A507334725A426459614B2B7A4A453569644D37325735664F654F78654F6A53413739773876614E654679647353694D49325533567836754243514452626C304334457A752B2F7A5737774B354C39567A4C5A2B664D7A4233504D3865656D58462F34707A377A64654D392F7045707451657A2B7A6A31394D672F2B79632B35707A37692B6C4238397168796A50496E2F4F754865506A387775734F6445594239505A2B614D6C566E797A6A5737526F443962544C2F783638652B442B2F7548713637787A6731574F7A6B2F33684D725A2F4F63666E67303247354F424F6B653772793078526E6A5654446338645433666C382B5744563372386848504F7A33704C665045632F5073502F747735397A74393032787537795651356C724B36437354754876464A59393072427A56386262504575575A4C77755A645448514574322F634D37396D6E504F7631536C526D4F4F45654155354270674C63486932484D4A7049535A2F44733348326F386E79584B4D782B446D75577A4E44347441757776647637744E6442505351666376523146636663493478384539694577513644436C34584D65432F36444A2B664D75612F6E484E664B4A67422B34767876334C4F2F63592B61646A58453053354C3139366877414539416A4D454B695A733252504C72366E50504B577A313837353337564F6664474745494557416A7171526D69724143524C69414167534545526F7479654D746C7869733155364A386764595335322B2B4F6E7A76396639535466424C7A332F7A756E63384A50696E4443494E77436B3838424D43454C424C594C516F7A35346C783547342B2B7A6F6E7A6E6E6676736862482F6B6E507664696A64626856312B777A6E33526275707359396C6950492B73635154434F784F594B516F68374E6B72566D70566E78793377527647656644313848767433544373665545454F56366468774A4151694D4A5442536C47652B4C45524B39552B646337386C626678716437336C366F2B6463313870504A626D4177676779674D674D775145494B4243594B516F722F68387341706B4F706C4C4146476579352F52495141424F5946526F727A434C466C4F6A5A5A4C455543556C776F58786B4C6761414B6A524A6C5A387446704E74643552486B75663061484141546B42456149387378586173704A30484A62416F6A79747148464D516873523243454B46743744477137494F4C514D7746456D51794241415257496442626C47652F556E4F564F47426E52774B49636B653464413042434B67533643334B7A4A4A567730566E4E5151513552707148414D42434D776730464F554C62785363775A54786A5247414645324668444D6751414562676E304647566D7953536543514B49736F6B775941514549434167304575554C623953553443464A6A7352514A52336969612B51474276417231456D5A6546374A303353336D484B4338564C6F7946774E4545656F6B794C7773354F7131734F59386F32346F48316B414141766345656F6779733251797A685142524E6C554F44414741684234494E42446C4A6B6C6B334B6D4343444B70734B424D524341774542525A705A4D75706B6A6743696243776B47515141434E7753305A38724D6B6B6B31637751515A584D6877534149514743414B444E4C4A73314D456B4355545959466F794141675151427A5A6B79733252537A435142524E6C6B5744414B4168446F4B4D724D6B6B6B76737751515A624F6877544149514341696F4456545A705A4D61706B6C6743696244513247515141434855535A57544A705A5A6F416F6D773650426748415167454244526D7973795353536E544242426C30384C2F4A6E30414141515953555242564F48424F416841514647552B52495536575365414B4A73506B515943414549764169307A4A532F35357837452F547A466C5168594A45416F6D77784B7467454151696B434C53494D724E6B636D6F4A416F6A79456D48435341684177446C584B387268357136506E48507651684D4356676B67796C596A673130516745424D6F456155762B4F636534646C61354A7046514B4938697152776B3449514B42476C466D324A6D2B57496F416F4C7855756A4958413051524B52546C637476362B632B37746F2B6E682F424945454F556C776F5352454942417854316C5A736D6B7A584945454F586C516F624245446957514D6C4D6D546433485A736D617A754F4B4B38645036794877456B45536B535A4E3365646C426B622B596F6F6278524D584948413567536B6F73776A554A736E7773377549636F3752786666494C415841616B6F637939357237676635513269664653346352594353784F5169484C344F6B313258433864376A4F4E523554506A4474655132424641684A525A706138596D53782B564D4369444C4A41414549724549674A3872683237763866655872417853722B496564454843494D6B6B41415169735169416E796A774774556F6B73664F57414B4A4D636B41414171735179496B796A304774456B6E73524A544A4151684159486B4354364C4D4C486E35384F4B414A38424D6D547941414152574966416B7973795356346B69646A3453514A524A454168415942554364364C4D4C486D5643474A6E6C6743696E45564541776841774169424F31466D6C6D776B514A6A5254674252626D644944784341774267434B56466D6C6A794750614D4D496F416F44774C4E4D42434151444F426C43677A53323747536765574343444B6C714B424C52434177424F42574A535A4A5A4D76327846416C4C634C4B513542594673437353677A53393432314F633668696966473373386838427142454A525A706138577653775630514155525A686F684545494743417743584B487A6E6E336E6E5A342F2F744C514F32595149455641676779696F59365151434542684149507743314455634E5777416549595952344345487365616B5341416754594373536A7A4A6167326E6878746B4143696244416F6D4151424343514A784B4A4D2F534A5274694E41556D385855687943774C5945516C476D646D306235724D64493748506A6A2F65517741434549434149514B497371466759416F4549414142434A784E4146452B4F2F3534447745495141414368676767796F614367536B5167414145494841324155543537506A6A505151674141454947434B414B42734B42715A4141414951674D445A4242446C732B4F503978434141415167594967416F6D776F474A67434151684141414A6E453043557A34342F336B4D414168434167434543694C4B685947414B424341414151696354514252506A762B6541384243454141416F5949494D7147676F457045494141424342774E6746452B657A34347A30454941414243426769674367624367616D5141414345494441325151513562506A6A2F63516741414549474349414B4A734B42695941674549514141435A784E416C4D2B4F503935444141495167494168416F69796F57426743675167414145496E453041555434372F6E67504151684141414B474343444B686F4B424B524341414151676344594252506E732B4F4D394243414141516759496F416F47776F47706B414141684341774E6B45454F577A34342F33454941414243426769414369624367596D41494243454141416D6354514A54506A6A2F65517741434549434149514B497371466759416F4549414142434A784E4146452B4F2F3534447745495141414368676767796F614367536B5167414145494841324155543537506A6A505151674141454947434C776630736A4F6D515966394A704141414141456C46546B5375516D434320, '28', '28', '技师三', '测试', '测测', '的', '2020-10-06 00:00:00', null, null, '1');
INSERT INTO `mbs_assessment_record` VALUES ('7', '4', 0x646174613A696D6167652F706E673B6261736536342C6956424F5277304B47676F414141414E53556845556741414165554141414436434159414141436678312B594141414E50556C45515652345875336476596F6B5A525147344C4F364A693475526F49474B6962695865676C474A6759475A695A657858656843416D346A33735A59676749686870494B69774B7573504254335144444E745458326E6139377165675A4578613676336E374F3658345A5A33663751666B69514941414151494549675165524B515167674142416751494543696C62416B4945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B647342416751494543415149714355517759684267454342416751554D703267414142416751496841676F355A42426945474141414543424A5379485342416741414241694543536A6C6B45474951494543414141476C6241634945434241674543496746494F4759515942416751494542414B64734241675149454341514971435551775968526F5441343672364E534B4A4541514937464A414B653979374A37304E59462F7175713231344C586948556851474131415738347131473755596A4173367036376B514A58342F35372B487849664846494544676B6757553869565064352F50376539443453375A37654D43507637752B5A57712B6E6D666E4A343141514A724369783534316F7A6E337352754533677A367036346641666C2B3778564D4A542B62355556552B7633656A6C7176706C38487A5449304341774A30456C72365A33656B6D486B7867687342556B4A316630336E5458383850484871567965746B414E476C42416A4D462F426D4D392F4B493838724D464C4B5639662B565658546437682F4E455656796B32516A694641594A36415570376E35464837464C677135656E6E31412F335365425A45794377706F4253586C50627662596D6346584B666758323169596E4C34474E43696A6C6A51354F374655456A6E38467474664B4B755275516D44664174356F396A312F7A2F36307750532F72616666307A783965613359466749457A6937676A656273784736776351472F3247766A41785366774A59456C504B57706958726651676F35667451643038434F785651796A7364764B6339573041707A3662795141494552675755387169673679396451436C662B6F513950774A42416B6F356142696952416F6F35636978434558674D675755386D584F316250714531444B665A5A4F496B44676677535573685568634670414B647351416752574531444B71314737305559466C504A47427963326753304B4B4F5574546B336D4E51575538707261376B566735774A4B6565634C344F6D66465069397168346448754731596C6B49454469376744656173784F37775159467671367139362F39305A70654B787363704D6745746962676A575A72453550336E4149336C664630762B2B723671317A33746A5A424167516D415355736A3359753844306F525054362B436D31344B50624E7A37646E6A2B42465957554D6F72673776647651693857465866567457724A7772344F4A67797670637875536B42416B725A446C79617750537A344B384F48376C346C2F3265696E6A362F4F54587175716E533050786641675132496241586436307476474D704E79377748637A667635373964756366717971312F634F35766B54494A416A6F4A527A5A69464A6E3842563655346E54762F38394F69334E76586478556B454342426F466C444B7A61434F493043414141454353775755386C49353178456751494141675759427064774D366A674342416751494C425551436B766C584D64415149454342426F466C444B7A61434F493043414141454353775755386C49353178456751494141675759427064774D366A674342416751494C425551436B766C584D64415149454342426F466C444B7A61434F493043414141454353775755386C493531393248775047663148584F2B302F332B613271767169715438353549326354494544675745417032346374436178567974644E6E68302B354F4C444C57484A536F44413967535538765A6D4A76463542543672716F2B72367645746E374838545657396339344954696441594B3843536E6D766B2F65383577703857565566564E584447793659507568694B7567663568376D635151494544676C6F4A54744234483541744E3379573966652F6A30326375665674586E38342F7853414945434E77736F4A5274426F466C416D3955315A4F7165764E772B587548663139326D7173494543427779382F4D774241674D462F676F3670367436716D762F7369514944416B4944766C496634584579414141454342506F456C484B66705A4D4945434241674D435167464965346E4D78415149454342446F4531444B665A5A4F496B43414141454351774A4B65596A5078515149454342416F4539414B66645A4F6F6B41415149454341774A4B4F556850686354494543414149452B416158635A2B6B6B41675149454341774A4B4355682F686354494141415149452B67535563702B6C6B77675149454341774A434155683769637A454241675149454F6754554D70396C6B34695149414141514A44416B7035694D2F4642416751494543675430417039316B36695141424167514944416B6F3553452B46784D6751494141675434427064786E36535143424167514944416B6F4A53482B46784D6741414241675436424A52796E36575443424167514944416B49425348754A7A4D5145434241675136424E51796E325754694A4167414142416B4D43536E6D497A38554543424167514B425051436E335754714A414145434241674D43536A6C4954345845794241674143425067476C334766704A414945434241674D4353676C496634584579414141454342506F456C484B66705A4D4945434241674D435167464965346E4D78415149454342446F4531444B665A5A4F496B43414141454351774A4B65596A5078515149454342416F4539414B66645A4F6F6B41415149454341774A4B4F556850686354494543414149452B416158635A2B6B6B41675149454341774A4B4355682F686354494141415149452B67535563702B6C6B77675149454341774A434155683769637A454241675149454F6754554D70396C6B34695149414141514A44416B7035694D2F4642416751494543675430417039316B36695141424167514944416B6F3553452B46784D6751494141675434427064786E36535143424167514944416B6F4A53482B46784D674141424167543642503444487A644A2B2F38684E346B41414141415355564F524B35435949493D20, '28', '28', '技师三', '显示', '想', '小常识', '2020-10-06 00:00:00', null, null, '-1');
|
/****** Object: StoredProcedure [dbo].[VerifyJobParameters] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE VerifyJobParameters
/****************************************************
**
** Desc:
** Check input parameters against the definition for the script
**
** Return values: 0: success, otherwise, error code
**
**
** Auth: grk
** Date: 10/06/2010 grk - Initial release
** 11/25/2010 mem - Now validating that the script exists in T_Scripts
** 12/10/2013 grk - problem inserting null values into #TPD
** 04/08/2016 mem - Clear @message if null
**
*****************************************************/
(
@ParamInput varchar(max),
@scriptName varchar(64),
@message varchar(512) output
)
AS
set nocount on
declare @myError int
declare @myRowCount int
set @myError = 0
set @myRowCount = 0
Set @message = IsNull(@message, '')
---------------------------------------------------
-- Get parameter definition
-- This is null for most scripts
---------------------------------------------------
DECLARE @ParamDefinition xml
--
SELECT @ParamDefinition = Parameters
FROM dbo.T_Scripts
WHERE Script = @scriptName
--
SELECT @myError = @@error, @myRowCount = @@rowcount
If @myRowCount= 0
Begin
SET @message = 'Script not found in T_Scripts: ' + IsNull(@scriptName, '??')
SET @myError = 50
Print @message
return @myError
End
---------------------------------------------------
-- Extract parameter definitions (if any) into temp table
---------------------------------------------------
CREATE TABLE #TPD (
[Section] Varchar(128),
[Name] Varchar(128),
[Value] Varchar(max) NULL,
[Reqd] Varchar(32) NULL
)
INSERT INTO #TPD ([Section], [Name], [Value], [Reqd])
SELECT
xmlNode.value('@Section', 'nvarchar(256)') Section,
xmlNode.value('@Name', 'nvarchar(256)') Name,
xmlNode.value('@Value', 'nvarchar(4000)') VALUE,
ISNULL(xmlNode.value('@Reqd', 'nvarchar(32)'), 'No') as Reqd
FROM
@ParamDefinition.nodes('//Param') AS R(xmlNode)
---------------------------------------------------
-- extract input parameters into temp table
---------------------------------------------------
--
CREATE TABLE #TJP (
[Section] Varchar(128),
[Name] Varchar(128),
[Value] Varchar(max)
)
DECLARE @ParamValue XML
SET @ParamValue = CONVERT(XML, @ParamInput)
INSERT INTO #TJP ([Section], [Name], [Value])
SELECT
xmlNode.value('@Section', 'nvarchar(256)') Section,
xmlNode.value('@Name', 'nvarchar(256)') Name,
xmlNode.value('@Value', 'nvarchar(4000)') Value
FROM
@ParamValue.nodes('//Param') AS R(xmlNode)
---------------------------------------------------
-- Cross check to make sure required parameters are defined in #TJP (populated using @ParamInput)
---------------------------------------------------
DECLARE @s VARCHAR(8000)
SET @s = ''
SELECT
@s = @s + #TPD.Section + '/' + #TPD.Name + ','
FROM
#TPD
LEFT OUTER JOIN #TJP ON #TPD.Name = #TJP.Name
AND #TPD.Section = #TJP.Section
WHERE
#TPD.Reqd = 'Yes'
AND ISNULL(#TJP.Value, '') = ''
IF @s <> ''
BEGIN
SET @message = 'Missing required parameters:' + @s
SET @myError = 52
Print @message
return @myError
END
return @myError
GO
GRANT VIEW DEFINITION ON [dbo].[VerifyJobParameters] TO [DDL_Viewer] AS [dbo]
GO
GRANT VIEW DEFINITION ON [dbo].[VerifyJobParameters] TO [Limited_Table_Write] AS [dbo]
GO
|
SELECT s_store_name
,s_company_id
,s_street_number
,s_street_name
,s_street_type
,s_suite_number
,s_city
,s_county
,s_state
,s_zip
,SUM(CASE
WHEN (sr_returned_date_sk - ss_sold_date_sk <= 30)
THEN 1
ELSE 0
END)
,SUM(CASE
WHEN (sr_returned_date_sk - ss_sold_date_sk > 30)
AND (sr_returned_date_sk - ss_sold_date_sk <= 60)
THEN 1
ELSE 0
END)
,SUM(CASE
WHEN (sr_returned_date_sk - ss_sold_date_sk > 60)
AND (sr_returned_date_sk - ss_sold_date_sk <= 90)
THEN 1
ELSE 0
END)
,SUM(CASE
WHEN (sr_returned_date_sk - ss_sold_date_sk > 90)
AND (sr_returned_date_sk - ss_sold_date_sk <= 120)
THEN 1
ELSE 0
END)
,SUM(CASE
WHEN (sr_returned_date_sk - ss_sold_date_sk > 120)
THEN 1
ELSE 0
END)
FROM store_sales
JOIN store_returns
JOIN store
JOIN date_dim d1
JOIN date_dim d2
WHERE d2.d_year = 2000
AND d2.d_moy = 8
AND ss_ticket_number = sr_ticket_number
AND ss_item_sk = sr_item_sk
AND ss_sold_date_sk = d1.d_date_sk
AND sr_returned_date_sk = d2.d_date_sk
AND ss_customer_sk = sr_customer_sk
AND ss_store_sk = s_store_sk
GROUP BY s_store_name
,s_company_id
,s_street_number
,s_street_name
,s_street_type
,s_suite_number
,s_city
,s_county
,s_state
,s_zip
ORDER BY s_store_name
,s_company_id
,s_street_number
,s_street_name
,s_street_type
,s_suite_number
,s_city
,s_county
,s_state
,s_zip;
|
<reponame>gaelrenoux/darwin<gh_stars>1-10
This is 1.2.3-RC1.sql
|
<reponame>chalice19/ClickHouse
-- -- Error cases
SELECT fromUnixTimestamp64Milli(); -- {serverError 42}
SELECT fromUnixTimestamp64Micro(); -- {serverError 42}
SELECT fromUnixTimestamp64Nano(); -- {serverError 42}
SELECT fromUnixTimestamp64Milli('abc'); -- {serverError 43}
SELECT fromUnixTimestamp64Micro('abc'); -- {serverError 43}
SELECT fromUnixTimestamp64Nano('abc'); -- {serverError 43}
SELECT fromUnixTimestamp64Milli('abc', 123); -- {serverError 43}
SELECT fromUnixTimestamp64Micro('abc', 123); -- {serverError 43}
SELECT fromUnixTimestamp64Nano('abc', 123); -- {serverError 43}
SELECT 'const column';
WITH
CAST(1234567891011 AS Int64) AS i64,
'UTC' AS tz
SELECT
tz,
i64,
fromUnixTimestamp64Milli(i64, tz),
fromUnixTimestamp64Micro(i64, tz),
fromUnixTimestamp64Nano(i64, tz) as dt64,
toTypeName(dt64);
WITH
CAST(1234567891011 AS Int64) AS i64,
'Asia/Makassar' AS tz
SELECT
tz,
i64,
fromUnixTimestamp64Milli(i64, tz),
fromUnixTimestamp64Micro(i64, tz),
fromUnixTimestamp64Nano(i64, tz) as dt64,
toTypeName(dt64);
SELECT 'non-const column';
WITH
CAST(1234567891011 AS Int64) AS i64,
'UTC' AS tz
SELECT
i64,
fromUnixTimestamp64Milli(i64, tz),
fromUnixTimestamp64Micro(i64, tz),
fromUnixTimestamp64Nano(i64, tz) as dt64;
SELECT 'upper range bound';
WITH
9904447342 AS timestamp,
CAST(9904447342123 AS Int64) AS milli,
CAST(9904447342123456 AS Int64) AS micro,
CAST(9904447342123456789 AS Int64) AS nano,
'UTC' AS tz
SELECT
timestamp,
fromUnixTimestamp64Milli(milli, tz),
fromUnixTimestamp64Micro(micro, tz),
fromUnixTimestamp64Nano(nano, tz);
SELECT 'lower range bound';
WITH
-1420066799 AS timestamp,
CAST(-1420066799123 AS Int64) AS milli,
CAST(-1420066799123456 AS Int64) AS micro,
CAST(-1420066799123456789 AS Int64) AS nano,
'UTC' AS tz
SELECT
timestamp,
fromUnixTimestamp64Milli(milli, tz),
fromUnixTimestamp64Micro(micro, tz),
fromUnixTimestamp64Nano(nano, tz);
|
IF EXISTS(SELECT * FROM sys.default_constraints WHERE name = 'LSPRTY_DESCRIPTION_DEF')
ALTER TABLE PIMS_LEASE_PURPOSE_TYPE DROP CONSTRAINT LSPRTY_DESCRIPTION_DEF
GO
|
<filename>app/src/androidTest/assets/database/wikipedia_v19.sql
BEGIN TRANSACTION;
CREATE TABLE recentsearches ( _id integer primary key, text string, timestamp integer );
INSERT INTO `recentsearches` VALUES (1,'obama',1624996954261);
INSERT INTO `recentsearches` VALUES (2,'trump',1624996822088);
INSERT INTO `recentsearches` VALUES (3,'biden',1624996827200);
INSERT INTO `recentsearches` VALUES (4,'user:Dmitry brant',1624996919410);
CREATE TABLE pageimages ( _id integer primary key, site string, title string, imageName string , namespace string, lang text, displayTitle string);
INSERT INTO `pageimages` VALUES (1,'en.wikipedia.org','Barack_Obama','https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/President_Barack_Obama.jpg/256px-President_Barack_Obama.jpg',NULL,'en','Barack Obama');
INSERT INTO `pageimages` VALUES (2,'en.wikipedia.org','Trump',NULL,NULL,NULL,'Trump');
INSERT INTO `pageimages` VALUES (3,'en.wikipedia.org','Joe_Biden','https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/Joe_Biden_presidential_portrait.jpg/256px-Joe_Biden_presidential_portrait.jpg',NULL,'en','Joe Biden');
INSERT INTO `pageimages` VALUES (4,'en.wikipedia.org','Donald_Trump','https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Donald_Trump_official_portrait.jpg/253px-Donald_Trump_official_portrait.jpg',NULL,'en','Donald Trump');
INSERT INTO `pageimages` VALUES (5,'en.wikipedia.org','User:Dmitry_Brant/sandbox',NULL,'User','en','User:Dmitry Brant/sandbox');
INSERT INTO `pageimages` VALUES (6,'ru.wikipedia.org','Обама,_Барак','https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/President_Barack_Obama.jpg/256px-President_Barack_Obama.jpg',NULL,'ru','Обама, Барак');
INSERT INTO `pageimages` VALUES (7,'he.wikipedia.org','ברק_אובמה','https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/President_Barack_Obama.jpg/256px-President_Barack_Obama.jpg',NULL,'he','ברק אובמה');
INSERT INTO `pageimages` VALUES (8,'en.wikipedia.org','User:Dmitry_Brant/sandbox',NULL,'User','en','User:<NAME>/sandbox');
CREATE TABLE localreadinglistpage ( _id integer primary key autoincrement, listId integer, site text not null, lang text, namespace integer not null, title text not null, mtime integer not null, atime integer not null, thumbnailUrl text, description text, revId integer, offline integer, status integer, sizeBytes integer, remoteId integer not null , apiTitle string);
INSERT INTO `localreadinglistpage` VALUES (1,1,'en.wikipedia.org','en',0,'<NAME>',1624996843593,1624996843593,'https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Donald_Trump_official_portrait.jpg/253px-Donald_Trump_official_portrait.jpg','45th president of the United States',0,1,1,15096687,42,'Donald_Trump');
INSERT INTO `localreadinglistpage` VALUES (3,2,'en.wikipedia.org','en',0,'<NAME>',1624996865365,1624996865365,null,null,0,1,1,6479128,43,null);
INSERT INTO `localreadinglistpage` VALUES (4,1,'en.wikipedia.org','en',0,'Barack Obama',1624996881107,1624996881107,'https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/President_Barack_Obama.jpg/256px-President_Barack_Obama.jpg','44th president of the United States',0,1,1,5695183,44,'Barack_Obama');
INSERT INTO `localreadinglistpage` VALUES (5,2,'en.wikipedia.org','en',0,'Barack Obama',1624996887497,1624996887497,'https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/President_Barack_Obama.jpg/256px-President_Barack_Obama.jpg','44th president of the United States',0,1,1,3355918,45,'Barack_Obama');
INSERT INTO `localreadinglistpage` VALUES (7,2,'ru.wikipedia.org','ru',0,'<NAME>',1624996966979,1624996966979,'https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/President_Barack_Obama.jpg/256px-President_Barack_Obama.jpg','американский политик, 44-й президент США (2009–2017)',0,1,1,2977845,46,'Обама,_Барак');
INSERT INTO `localreadinglistpage` VALUES (9,3,'he.wikipedia.org','he',0,'ברק אובמה',1624997002950,1624997002950,'https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/President_Barack_Obama.jpg/256px-President_Barack_Obama.jpg','נשיא ארצות הברית ה-44',0,1,1,6695428,47,'ברק_אובמה');
CREATE TABLE localreadinglist ( _id integer primary key autoincrement, readingListTitle text not null, readingListMtime integer not null, readingListAtime integer not null, readingListDescription text, readingListSizeBytes integer not null, readingListDirty integer not null, readingListRemoteId integer not null );
INSERT INTO `localreadinglist` VALUES (1,'Saved',1624995934302,1624995934302,'Default list for your saved articles',0,1,100);
INSERT INTO `localreadinglist` VALUES (2,'People',1624996865342,1624996865342,'',0,1,101);
INSERT INTO `localreadinglist` VALUES (3,'More people',1624997002935,1624997002935,'Example list description',0,1,102);
CREATE TABLE history ( _id integer primary key, site string, title string, timestamp integer, source integer , namespace string, lang text, timeSpent integer, displayTitle string);
INSERT INTO `history` VALUES (1,'en.wikipedia.org','Barack_Obama',1624996954234,1,NULL,'en',0,null);
INSERT INTO `history` VALUES (2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `history` VALUES (3,'en.wikipedia.org','Joe_Biden',1624996827168,1,NULL,NULL,0,'<NAME>');
INSERT INTO `history` VALUES (4,'en.wikipedia.org','Dmitry_Brant/sandbox',1624996919378,1,'User','en',0,'User:<NAME>/sandbox');
INSERT INTO `history` VALUES (5,'ru.wikipedia.org','Обама,_Барак',1624996960719,6,NULL,'ru',0,'Обама, Барак');
INSERT INTO `history` VALUES (6,'he.wikipedia.org','ברק_אובמה',1624996974763,6,NULL,'he',0,'ברק אובמה');
CREATE TABLE editsummaries ( _id integer primary key, summary string, lastUsed integer );
INSERT INTO `editsummaries` VALUES (1,'test1',1624996932893);
COMMIT;
|
CREATE EXTENSION pg_stat_statements;
CREATE EXTENSION pg_stat_kcache;
-- dummy query
SELECT 1 AS dummy;
SELECT count(*) FROM pg_stat_kcache WHERE datname = current_database();
SELECT count(*) FROM pg_stat_kcache_detail WHERE datname = current_database() AND (query = 'SELECT $1 AS dummy' OR query = 'SELECT ? AS dummy;');
SELECT reads, reads_blks, writes, writes_blks FROM pg_stat_kcache_detail WHERE datname = current_database() AND (query = 'SELECT $1 AS dummy' OR query = 'SELECT ? AS dummy;');
-- dummy table
CREATE TABLE test AS SELECT i FROM generate_series(1, 1000) i;
-- dummy query again
SELECT count(*) FROM test;
SELECT user_time + system_time > 0 AS cpu_time_ok FROM pg_stat_kcache_detail WHERE datname = current_database() AND query LIKE 'SELECT count(*) FROM test%';
|
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
CREATE RESOURCE QUEUE ck_sync1_resque1 ACTIVE THRESHOLD 2 COST THRESHOLD 2000.00;
CREATE RESOURCE QUEUE ck_sync1_resque2 ACTIVE THRESHOLD 2 COST THRESHOLD 2000.00;
CREATE RESOURCE QUEUE ck_sync1_resque3 ACTIVE THRESHOLD 2 COST THRESHOLD 2000.00;
CREATE RESOURCE QUEUE ck_sync1_resque4 ACTIVE THRESHOLD 2 COST THRESHOLD 2000.00;
CREATE RESOURCE QUEUE ck_sync1_resque5 ACTIVE THRESHOLD 2 COST THRESHOLD 2000.00;
CREATE RESOURCE QUEUE ck_sync1_resque6 ACTIVE THRESHOLD 2 COST THRESHOLD 2000.00;
CREATE RESOURCE QUEUE ck_sync1_resque7 ACTIVE THRESHOLD 2 COST THRESHOLD 2000.00;
DROP RESOURCE QUEUE sync1_resque2;
DROP RESOURCE QUEUE ck_sync1_resque1;
|
<filename>db/migrations/00_voice.sql
CREATE TABLE voice_channels (
id serial PRIMARY KEY,
owner_id text,
channel_id text
);
|
DROP TABLE IF EXISTS User;
CREATE TABLE IF NOT EXISTS User (id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT,intensity INTEGER, volume INTEGER);
INSERT INTO User (username,intensity,volume) VALUES ('Romain','3','3');
|
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_orgao_list', 'Organograma - Orgão', 'administrativo');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_orgao_create', 'Novo', 'urbem_administrativo_organograma_orgao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_orgao_edit', 'Editar', 'urbem_administrativo_organograma_orgao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_orgao_delete', 'Remover', 'urbem_administrativo_organograma_orgao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_orgao_show', 'Detalhes', 'urbem_administrativo_organograma_orgao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_transporte_escolar_list', 'Controle Escolar - Transporte Escolar', 'patrimonio_frota_controle_escolar_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_transporte_escolar_create', 'Novo', 'urbem_patrimonial_frota_transporte_escolar_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_transporte_escolar_edit', 'Editar', 'urbem_patrimonial_frota_transporte_escolar_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_transporte_escolar_delete', 'Apagar', 'urbem_patrimonial_frota_transporte_escolar_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_transporte_escolar_show', 'Detalhes', 'urbem_patrimonial_frota_transporte_escolar_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_list', 'Compras - Solicitação Compra', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_create', 'Novo', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_compras_solicitacao_perfil', 'Perfil', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_edit', 'Editar', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_delete', 'Apagar', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_show', 'Detalhes', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_anulacao_create', 'Anular', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_protocolo_processo_imprimir_etiqueta_create', 'Protocolo - Processo - Imprimir Etiqueta', 'administrativo');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_item_list', 'Almoxarifado - Requisição - Itens', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_item_create', 'Novo', 'urbem_patrimonial_almoxarifado_requisicao_item_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_item_edit', 'Editar', 'urbem_patrimonial_almoxarifado_requisicao_item_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_item_delete', 'Apagar', 'urbem_patrimonial_almoxarifado_requisicao_item_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_item_show', 'Detalhes', 'urbem_patrimonial_almoxarifado_requisicao_item_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_list', 'Almoxarifado - Requisição', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_create', 'Novo', 'urbem_patrimonial_almoxarifado_requisicao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_edit', 'Editar', 'urbem_patrimonial_almoxarifado_requisicao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_delete', 'Apagar', 'urbem_patrimonial_almoxarifado_requisicao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_requisicao_show', 'Detalhes', 'urbem_patrimonial_almoxarifado_requisicao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_almoxarifado_requisicao_perfil', 'Perfil', 'urbem_patrimonial_almoxarifado_requisicao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_catalogo_item_list', 'Item', 'patrimonio_almoxarifado_catalogo_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_catalogo_item_create', 'Novo', 'urbem_patrimonial_almoxarifado_catalogo_item_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_catalogo_item_edit', 'Editar', 'urbem_patrimonial_almoxarifado_catalogo_item_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_catalogo_item_delete', 'Apagar', 'urbem_patrimonial_almoxarifado_catalogo_item_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_catalogo_item_show', 'Detalhes', 'urbem_patrimonial_almoxarifado_catalogo_item_list');
-- Rotas de Administrativo > Organograma - Configurar Migração do Organograma
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_de_para_orgao_dto_create', 'Organograma - Configurar Migração do Organograma', 'administrativo');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_de_para_orgao_list', 'Organograma - Configurar Migração do Organograma', 'administrativo');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_organograma_de_para_orgao_edit', 'Editar', 'urbem_administrativo_organograma_de_para_orgao_list');
-- Rotas de Patrimonial > Licitação > Convenio
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_list', 'Convenio', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_create', 'Novo', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_edit', 'Editar', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_delete', 'Apagar', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_show', 'Detalhes', 'urbem_patrimonial_licitacao_convenio_list');
-- Rotas de Patrimonial > Licitação > Convenio > Participantes
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_participante_create', 'Participante - Novo', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_participante_edit', 'Participante - Editar', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_participante_delete', 'Participante - Apagar', 'urbem_patrimonial_licitacao_convenio_list');
-- Rotas de Patrimonial > Licitação > Convenio > Publicacoes
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_publicacao_create', 'Publicação - Novo', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_publicacao_edit', 'Publicação - Editar', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_publicacao_delete', 'Publicação - Apagar', 'urbem_patrimonial_licitacao_convenio_list');
-- Rotas de Patrimonial > Licitação > Convenio > Aditivos
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_aditivos_create', 'Aditivo - Novo', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_aditivos_edit', 'Aditivo - Editar', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_aditivos_delete', 'Aditivo - Apagar', 'urbem_patrimonial_licitacao_convenio_list');
-- Rotas de Patrimonial > Licitação > Convenio > Anulação
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_anulacao_create', 'Anular Convênio', 'urbem_patrimonial_licitacao_convenio_list');
-- Rotas de Patrimonial > Licitação > Convenio > Aditivo Convenio
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_aditivos_create', 'Aditivo - Novo', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_aditivos_edit', 'Aditivo - Editar', 'urbem_patrimonial_licitacao_convenio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_aditivos_delete', 'Aditivo - Apagar', 'urbem_patrimonial_licitacao_convenio_list');
-- Rotas de Patrimonial > Licitação > Convenio > Rescindir Convenio
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_convenio_aditivos_anulacao_create', 'Aditivo - Rescindir', 'urbem_patrimonial_licitacao_convenio_list');
-- Rotas de Recursos humanos > CalendarioCadastro
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_calendario_calendario_cadastro_list', 'Calendário', 'recursos_humanos');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_calendario_calendario_cadastro_create', 'Novo', 'urbem_recursos_humanos_calendario_calendario_cadastro_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_calendario_calendario_cadastro_edit', 'Editar', 'urbem_recursos_humanos_calendario_calendario_cadastro_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_calendario_calendario_cadastro_delete', 'Apagar', 'urbem_recursos_humanos_calendario_calendario_cadastro_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_calendario_calendario_cadastro_show', 'Detalhes', 'urbem_recursos_humanos_calendario_calendario_cadastro_list');
-- Rotas de Patrimonial > Compras > Solicitacao > Itens da Solicitacao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_item_list', 'Solicitação de Compra - Itens', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_item_create', 'Itens - Novo', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_item_edit', 'Editar', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_item_delete', 'Apagar', 'urbem_patrimonial_compras_solicitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacao_item_show', 'Detalhes', 'urbem_patrimonial_compras_solicitacao_list');
-- Rotas de Patrimonial > Compras > Solicitacao > Itens da Solicitacao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_list', 'Mapa de Compras', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_compras_mapa_perfil', 'Perfil', 'urbem_patrimonial_compras_mapa_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_create', 'Novo', 'urbem_patrimonial_compras_mapa_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_edit', 'Editar', 'urbem_patrimonial_compras_mapa_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_delete', 'Apagar', 'urbem_patrimonial_compras_mapa_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_show', 'Detalhes', 'urbem_patrimonial_compras_mapa_list');
-- Rotas de Patrimonial > Compras > Solicitacao > Itens da Solicitacao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_solicitacao_list', 'Mapa de Compras - Solicitação', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_solicitacao_create', 'Mapa de Compras - Solicitação - Novo', 'urbem_patrimonial_compras_mapa_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_solicitacao_edit', 'Mapa de Compras - Solicitação - Editar', 'urbem_patrimonial_compras_mapa_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_solicitacao_delete', 'Mapa de Compras - Solicitação - Apagar', 'urbem_patrimonial_compras_mapa_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_mapa_solicitacao_show', 'Mapa de Compras - Solicitação - Detalhes', 'urbem_patrimonial_compras_mapa_list');
-- Rotas de Almoxarifado > Pedido Transferência
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_list', 'Pedido de Transferência', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_create', 'Novo', 'urbem_patrimonial_almoxarifado_pedido_transferencia_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_edit', 'Editar', 'urbem_patrimonial_almoxarifado_pedido_transferencia_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_delete', 'Apagar', 'urbem_patrimonial_almoxarifado_pedido_transferencia_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_show', 'Detalhes', 'urbem_patrimonial_almoxarifado_pedido_transferencia_list');
-- Rotas de Almoxarifado > Pedido Transferência Item
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_item_create', 'Pedido de Transferência Item - Novo', 'urbem_patrimonial_almoxarifado_pedido_transferencia_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_item_edit', 'Pedido de Transferência Item - Editar', 'urbem_patrimonial_almoxarifado_pedido_transferencia_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_pedido_transferencia_item_delete', 'Pedido de Transferência Item - Apagar', 'urbem_patrimonial_almoxarifado_pedido_transferencia_list');
-- Rotas de Patrimonial > Licitação > Licitação > Incluir Processo Licitatório
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_licitacao_list', 'Licitação - Processo Licitatório', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_licitacao_create', 'Novo', 'urbem_patrimonial_licitacao_licitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_licitacao_licitacao_perfil', 'Perfil', 'urbem_patrimonial_licitacao_licitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_licitacao_edit', 'Editar', 'urbem_patrimonial_licitacao_licitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_licitacao_delete', 'Apagar', 'urbem_patrimonial_licitacao_licitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_licitacao_show', 'Detalhes', 'urbem_patrimonial_licitacao_licitacao_list');
-- Rotas de Patrimonial > Licitação > Licitação > Incluir Processo Licitatório - Membro Adicional
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_membro_adicional_list', 'Licitação - Membro Adicional', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_membro_adicional_create', 'Novo', 'urbem_patrimonial_licitacao_membro_adicional_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_membro_adicional_edit', 'Editar', 'urbem_patrimonial_licitacao_membro_adicional_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_membro_adicional_delete', 'Apagar', 'urbem_patrimonial_licitacao_membro_adicional_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_membro_adicional_show', 'Detalhes', 'urbem_patrimonial_licitacao_membro_adicional_list');
-- Rotas de Patrimonial > Licitação > Licitação > Incluir Processo Licitatório - Documentos Exigidos
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documento_list', 'Licitação - Documentos Exigidos', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documento_create', 'Novo', 'urbem_patrimonial_licitacao_documento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documento_edit', 'Editar', 'urbem_patrimonial_licitacao_documento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documento_delete', 'Apagar', 'urbem_patrimonial_licitacao_documento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documento_show', 'Detalhes', 'urbem_patrimonial_licitacao_documento_list');
-- Rotas de Patrimonial > Almoxarifado > Entrada > Devolução com Requisição
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonial_almoxarifado_entrada_home', 'Almoxarifado - Entrada', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_devolucao_requisicao_list', 'Devolução com Requisição', 'patrimonial_almoxarifado_entrada_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_devolucao_requisicao_edit', 'Registrar Devolução', 'urbem_patrimonial_almoxarifado_entrada_devolucao_requisicao_list');
-- Rotas de Patrimonial > Licitação > Licitação > Incluir Processo Licitatório - Licitação Documentos
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documentos_list', 'Licitação - Documentos da Licitação', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documentos_create', 'Novo', 'urbem_patrimonial_licitacao_documentos_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documentos_edit', 'Editar', 'urbem_patrimonial_licitacao_documentos_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documentos_delete', 'Apagar', 'urbem_patrimonial_licitacao_documentos_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_documentos_show', 'Detalhes', 'urbem_patrimonial_licitacao_documentos_list');
-- Rotas de Patrimonial > Licitação > Licitação > Incluir Processo Licitatório - Participante
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_list', 'Licitação - Participantes', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_create', 'Novo', 'urbem_patrimonial_licitacao_participante_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_edit', 'Editar', 'urbem_patrimonial_licitacao_participante_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_delete', 'Apagar', 'urbem_patrimonial_licitacao_participante_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_show', 'Detalhes', 'urbem_patrimonial_licitacao_participante_list');
-- Rotas de Patrimonial > Licitação > Licitação > Incluir Processo Licitatório - Participante Documento
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_documentos_list', 'Licitação - Participantes Documentos', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_documentos_create', 'Novo', 'urbem_patrimonial_licitacao_participante_documentos_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_documentos_edit', 'Editar', 'urbem_patrimonial_licitacao_participante_documentos_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_documentos_delete', 'Apagar', 'urbem_patrimonial_licitacao_participante_documentos_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_participante_documentos_show', 'Detalhes', 'urbem_patrimonial_licitacao_participante_documentos_list');
-- Rotas de Compras > Compra Direta > Manutencao Proposta
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_manutencao_proposta_list', 'Manutenção Proposta', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_manutencao_proposta_show', 'Detalhes', 'urbem_patrimonial_compras_manutencao_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_manutencao_proposta_edit', 'Editar', 'urbem_patrimonial_compras_manutencao_proposta_list');
-- Rotas de Compras > Compra Direta > Manutencao Proposta Item
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_cotacao_fornecedor_item_create', 'Fornecedor-Item - Novo', 'urbem_patrimonial_compras_manutencao_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_cotacao_fornecedor_item_edit', 'Fornecedor-Item - Editar', 'urbem_patrimonial_compras_manutencao_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_cotacao_fornecedor_item_delete', 'Fornecedor-Item - Apagar', 'urbem_patrimonial_compras_manutencao_proposta_list');
-- Rotas de Patrimonial > Licitação > Licitação > Incluir Processo Licitatório - Suspensão Edital
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_suspenso_list', 'Licitação - Suspensão Edital', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_suspenso_create', 'Novo', 'urbem_patrimonial_licitacao_edital_suspenso_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_suspenso_edit', 'Editar', 'urbem_patrimonial_licitacao_edital_suspenso_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_suspenso_delete', 'Apagar', 'urbem_patrimonial_licitacao_edital_suspenso_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_suspenso_show', 'Detalhes', 'urbem_patrimonial_licitacao_edital_suspenso_list');
-- Rotas de Patrimonial > Licitação > Licitação > Processo Licitatório - Edital Publicacao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_publicacao_edital_list', 'Licitação - Publicação Edital', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_publicacao_edital_create', 'Novo', 'urbem_patrimonial_licitacao_publicacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_publicacao_edital_edit', 'Editar', 'urbem_patrimonial_licitacao_publicacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_publicacao_edital_delete', 'Apagar', 'urbem_patrimonial_licitacao_publicacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_publicacao_edital_show', 'Detalhes', 'urbem_patrimonial_licitacao_publicacao_edital_list');
-- Rotas de Patrimonial > Licitação > Licitação > Processo Licitatório - Edital
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_list', 'Licitação - Edital', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_create', 'Novo', 'urbem_patrimonial_licitacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_licitacao_edital_perfil', 'Perfil', 'urbem_patrimonial_licitacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_edit', 'Editar', 'urbem_patrimonial_licitacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_delete', 'Apagar', 'urbem_patrimonial_licitacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_show', 'Detalhes', 'urbem_patrimonial_licitacao_edital_list');
-- Rotas de Patrimonial > Patrimonio > Inventario
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_inventario_list', 'Inventário', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_inventario_create', 'Novo', 'urbem_patrimonial_patrimonio_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_inventario_edit', 'Editar', 'urbem_patrimonial_patrimonio_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_inventario_delete', 'Apagar', 'urbem_patrimonial_patrimonio_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_inventario_show', 'Detalhes', 'urbem_patrimonial_patrimonio_inventario_list');
-- Rotas de Patrimonial > Patrimonio > Inventário - Alterar Item
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_inventario_historico_bem_create', 'Inventário - Alterar Item', 'urbem_patrimonial_patrimonio_inventario_list');
-- Rotas de Patrimonial > Licitação > Licitação > Processo Licitatório - Edital Impugnado
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_impugnado_list', 'Licitação - Edital Impugnado ', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_impugnado_create', 'Novo', 'urbem_patrimonial_licitacao_edital_impugnado_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_impugnado_edit', 'Editar', 'urbem_patrimonial_licitacao_edital_impugnado_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_impugnado_delete', 'Apagar', 'urbem_patrimonial_licitacao_edital_impugnado_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_impugnado_show', 'Detalhes', 'urbem_patrimonial_licitacao_edital_impugnado_list');
-- Rotas de Patrimonial > Almoxarifado > Inventario
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_list', 'Almoxarifado - Inventario', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_create', 'Novo', 'urbem_patrimonial_almoxarifado_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_edit', 'Editar', 'urbem_patrimonial_almoxarifado_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_delete', 'Anular', 'urbem_patrimonial_almoxarifado_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_show', 'Detalhes', 'urbem_patrimonial_almoxarifado_inventario_list');
-- Rotas de Patrimonial > Almoxarifado > Inventario Itens
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_item_create', 'Item - Novo', 'urbem_patrimonial_almoxarifado_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_item_edit', 'Item - Editar', 'urbem_patrimonial_almoxarifado_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_item_delete', 'Item - Excluir', 'urbem_patrimonial_almoxarifado_inventario_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_inventario_item_show', 'Item - Detalhe', 'urbem_patrimonial_almoxarifado_inventario_list');
-- Rotas de Patrimonial > Licitação > Licitação > Processo Licitatório - Anulacao Edital Impugnado
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_list', 'Licitação - Anulação da Impugnação do Edital ', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_create', 'Novo', 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_edit', 'Editar', 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_delete', 'Apagar', 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_show', 'Detalhes', 'urbem_patrimonial_licitacao_anulacao_impugnacao_edital_list');
-- Rotas de Patrimonial > Patrimonio > Inventário - Alterar Item
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_inventario_historico_bem_create', 'Inventário - Alterar Item', 'urbem_patrimonial_patrimonio_inventario_list');
-- Rotas de Patrimonial > Patrimonio > Licitação - Edital > Anulação
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_edital_anulado_create', 'Anulação', 'patrimonio_licitacao_edital_perfil');
-- Rotas de Patrimonial > Licitacao > Processo Licitatorio > Ata de Encerramento
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_processo_licitatorio_ata_encerramento_list', 'Atas de Encerramento', 'patrimonio_licitacao_processo_licitatorio_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_processo_licitatorio_ata_encerramento_create', 'Nova', 'urbem_patrimonial_licitacao_processo_licitatorio_ata_encerramento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_processo_licitatorio_ata_encerramento_edit', 'Editar', 'urbem_patrimonial_licitacao_processo_licitatorio_ata_encerramento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_processo_licitatorio_ata_encerramento_show', 'Detalhes', 'urbem_patrimonial_licitacao_processo_licitatorio_ata_encerramento_list');
-- Rotas de Patrimonial > Frota > Veículo > Manutenção de Utilização > Retornar Veículo
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_veiculo_retornar_veiculo_create', 'Retornar Veículo', 'urbem_patrimonial_frota_veiculo_retirar_veiculo_list');
-- Rotas de Patrimonial > Licitação > Convênio - Home
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_licitacao_convenios_home', 'Licitação - Convênio', 'patrimonial');
-- Rotas de Patrimonial > Frota > Manutenção
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_list', 'Frota - Manutenção', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_create', 'Novo', 'urbem_patrimonial_frota_manutencao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_edit', 'Editar', 'urbem_patrimonial_frota_manutencao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_delete', 'Apagar', 'urbem_patrimonial_frota_manutencao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_show', 'Detalhes', 'urbem_patrimonial_frota_manutencao_list');
-- Rotas de Patrimonial > Licitação > Adjudicação
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_adjudicacao_create', 'Adjudicação ', 'urbem_patrimonial_licitacao_licitacao_list');
-- Rotas de Patrimonial > Almoxarifado > Implantação - Processar Implantação
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_processar_implantacao_create', 'Almoxarifado - Implantação - Processar Implantação', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_almoxarifado_processar_importacao_perfil', 'Perecivel', 'urbem_patrimonial_almoxarifado_processar_implantacao_create');
-- Rotas de Patrimonial > Almoxarifado > Implantação - Processar Implantação > Perecivel > Adicionar
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_processar_implantacao_perecivel_create', 'Almoxarifado - Implantação - Processar Implantação - Perecível - Adicionar', 'patrimonial');
-- Rotas de Patrimonial > Licitação > Homologação
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_homologacao_create', 'Homologação ', 'urbem_patrimonial_licitacao_licitacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_item_create', 'Item - Novo', 'urbem_patrimonial_frota_manutencao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_item_edit', 'Item - Editar', 'urbem_patrimonial_frota_manutencao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_item_delete', 'Item - Apagar', 'urbem_patrimonial_frota_manutencao_list');
-- Rotas de Patrimonial > Licitação > Manutenção de Proposta
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_manutencao_proposta_list', 'Licitação - Manutenção Proposta ', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_manutencao_proposta_create', 'Novo', 'urbem_patrimonial_licitacao_manutencao_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_manutencao_proposta_edit', 'Editar', 'urbem_patrimonial_licitacao_manutencao_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_manutencao_proposta_delele', 'Apagar', 'urbem_patrimonial_licitacao_manutencao_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_manutencao_proposta_show', 'Detalhe', 'urbem_patrimonial_licitacao_manutencao_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_cotacao_fornecedor_item_edit', 'Editar', 'urbem_patrimonial_licitacao_manutencao_proposta_list');
-- Rotas de Patrimonial > Licitação > Adjudicação
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_frota_manutencao_anulacao_create', 'Anulação ', 'urbem_patrimonial_frota_manutencao_list');
-- Rotas de Patrimonial > Almoxarifado > Saida de Requisicao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_devolucao_requisicao_list', 'Saída de Requisição', 'patrimonial_almoxarifado_saida_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_devolucao_requisicao_edit', 'Registrar Saída', 'urbem_patrimonial_almoxarifado_saida_devolucao_requisicao_list');
-- Rotas de Patrimonial > Compras > Homologação de Proposta
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_homologacao_compra_direta_list', 'Compra Direta - Homologação de Proposta ', 'patrimonio_compras_compra_direta_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_homologacao_compra_direta_create', 'Novo', 'urbem_patrimonial_compras_homologacao_compra_direta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_homologacao_compra_direta_edit', 'Editar', 'urbem_patrimonial_compras_homologacao_compra_direta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_homologacao_compra_direta_delete', 'Apagar', 'urbem_patrimonial_compras_homologacao_compra_direta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_homologacao_compra_direta_show', 'Detalhe', 'urbem_patrimonial_compras_homologacao_compra_direta_list');
-- Rotas de Patrimonial > Compra Direta > Gestão Julgamento
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_compra_direta_gestao_julgamento_list', 'Compra direta - Excluir julgamento de proposta', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_compra_direta_gestao_julgamento_show', 'Detalhe', 'urbem_patrimonial_compras_compra_direta_gestao_julgamento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_compra_direta_gestao_julgamento_delete', 'Apagar julgamento de proposta', 'urbem_patrimonial_compras_compra_direta_gestao_julgamento_list');
-- Rotas de Patrimonial > Licitação > Gestão Julgamento
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_gestao_julgamento_list', 'Licitação - Excluir julgamento de processo', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_gestao_julgamento_show', 'Detalhe', 'urbem_patrimonial_licitacao_gestao_julgamento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_gestao_julgamento_delete', 'Apagar julgamento de proposta', 'urbem_patrimonial_licitacao_gestao_julgamento_list');
-- Rotas de Patrimonial > Licitação > Autorização de Empenho
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'),'urbem_patrimonial_licitacao_autorizacao_empenho_list',
'Licitação - Autorização de Empenho',
'patrimonial'
);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (
nextval('administracao.rota_cod_rota_seq'),
'urbem_patrimonial_licitacao_autorizacao_empenho_edit',
'Registrar Autorização',
'urbem_patrimonial_licitacao_autorizacao_empenho_list'
);
-- Rotas de Patrimonial > Compras > Autorização de Empenho
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_autorizacao_empenho_compra_direta_list', 'Compra Direta - Autorização de Empenho', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (
nextval('administracao.rota_cod_rota_seq'),
'urbem_patrimonial_compras_autorizacao_empenho_compra_direta_create',
'Registrar Autorização',
'urbem_patrimonial_compras_autorizacao_empenho_compra_direta_list'
);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_julgamento_proposta_list', 'Julgamento de Proposta', 'patrimonio_licitacao_processo_licitatorio_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_julgamento_proposta_show', 'Detalhe', 'urbem_patrimonial_licitacao_julgamento_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_julgamento_proposta_cotacao_show', 'Cotação', 'urbem_patrimonial_licitacao_julgamento_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_julgamento_proposta_cotacao_julgamento_create', 'Incluir', 'urbem_patrimonial_licitacao_julgamento_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_licitacao_julgamento_proposta_cotacao_julgamento_edit', 'Editar', 'urbem_patrimonial_licitacao_julgamento_proposta_list');
-- Rotas de Patrimonial > Almoxarifado > Entrada > Entrada por Doação
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_doacao_list', 'Entrada por Doação', 'patrimonial_almoxarifado_entrada_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_doacao_create', 'Incluir', 'urbem_patrimonial_almoxarifado_entrada_doacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_doacao_show', 'Detalhe', 'urbem_patrimonial_almoxarifado_entrada_doacao_list');
-- Rotas de Patrimonial > Almoxarifado > Entrada > Entrada por Ordem de Compras
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_entrada_compras_ordem_list', 'Entrada por Ordem de Compra', 'patrimonial_almoxarifado_entrada_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_entrada_compras_ordem_edit', 'Incluir', 'urbem_patrimonial_compras_entrada_compras_ordem_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_entrada_compras_ordem_show', 'Perfil', 'urbem_patrimonial_compras_entrada_compras_ordem_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_estoque_material_create', 'Almoxarifado Estoque - Incluir', 'patrimonial_almoxarifado_entrada_home');
-- Rotas de Patrimonial > Almoxarifado > Saidas > Saidas Diversos
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_diversas_create', 'Saidas Diversas', 'patrimonial_almoxarifado_saida_home');
-- Rotas de Patrimonial > Almoxarifado > Entrada > Entradas Diversas
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_diversos_create', 'Entradas Diversas', 'patrimonial_almoxarifado_entrada_home');
-- Rotas de Patrimonial > Almoxarifado > Saídas - Home
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonial_almoxarifado_saida_home', 'Almoxarifado - Saída', 'patrimonial');
-- Rotas de Patrimonial > Almoxarifado > Saida > Saida por Autorização de Abastecimento
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_autorizacao_abastecimento_list', 'Saída por Autorização de Abastecimento', 'patrimonial_almoxarifado_saida_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_autorizacao_abastecimento_edit', 'Incluir', 'urbem_patrimonial_almoxarifado_saida_autorizacao_abastecimento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_autorizacao_abastecimento_show', 'Detalhe', 'urbem_patrimonial_almoxarifado_saida_autorizacao_abastecimento_list');
-- Rotas de Patrimonial > Almoxarifado > Saidas > Saida por Transferencia
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_transferencia_list', 'Saída por Tranferência', 'patrimonial_almoxarifado_saida_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_transferencia_show', 'Detalhe', 'urbem_patrimonial_almoxarifado_saida_transferencia_list');
-- Rotas de Patrimonial > Almoxarifado > Saidas > Saida por Estorno de Entrada
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_estorno_list', 'Saída por Estorno de Entrada', 'patrimonial_almoxarifado_saida_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_estorno_show', 'Detalhe', 'urbem_patrimonial_almoxarifado_saida_estorno_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_saida_estorno_item_create', 'Estornar Item', 'urbem_patrimonial_almoxarifado_saida_estorno_list');
-- Rotas de Patrimonial > Almoxarifado > Saidas > Saida por Estorno de Entrada > Estornar Item
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_lancamento_material_create', 'Estornar Item', 'urbem_patrimonial_almoxarifado_saida_estorno_list');
-- Rotas de Patrimonial > Almoxarifado > Entradas > Entrada por Transferencia
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_transferencia_list', 'Entrada por Tranferência', 'patrimonial_almoxarifado_entrada_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_entrada_transferencia_show', 'Detalhe', 'urbem_patrimonial_almoxarifado_entrada_transferencia_list');
-- Rotas de Patrimonial > Frota > Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_frota_configuracao_home', 'Frota - Configuracao', 'patrimonial');
-- Rotas de Patrimonial > Compra Direta > Julgamento das Propostas
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_julgamento_list', 'Compra Direta :: Julgamento das Propostas', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_julgamento_edit', 'Julgamento das Propostas', 'urbem_patrimonial_compras_julgamento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_julgamento_proposta_list', 'Compra Direta :: Julgamento das Propostas', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_julgamento_proposta_show', 'Itens', 'urbem_patrimonial_compras_julgamento_proposta_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_julgamento_proposta_item_edit', 'Julgamento', 'urbem_patrimonial_compras_julgamento_proposta_list');
-- Rotas de Administrativo > Protocolo - Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_protocolo_configuracao', 'Protocolo - Configuração', 'administrativo');
-- Rotas de Patrimonial > Compras - Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_configuracao', 'Compras - Configuração', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_compras_compra_direta_home', 'Compra Direta', 'patrimonial');
-- Rotas de Patrimonial > Patrimonio - Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_configuracao', 'Patrimonio - Configuração', 'patrimonio_patrimonial_configuracao_home');
-- Rotas de RH > Pessoal - Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_rh_pessoal_configuracao', 'Pessoal - Configuração', 'recursos_humanos');
-- Rotas de Patrimonial > Almoxarifado - Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_configuracao', 'Almoxarifado - Configuração', 'patrimonial');
-- Rotas de Administrativo > Sistema - Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_administrativo_sistema_configuracao', 'Alterar Mensagem', 'administracao_sistema_home');
-- Rotas de Patrimonial > Almoxarifado > Centro de Custo
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_list', 'Centro de Custo - Almoxarifado', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_create', 'Novo', 'urbem_patrimonial_almoxarifado_centro_custo_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_edit', 'Editar', 'urbem_patrimonial_almoxarifado_centro_custo_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_delete', 'Apagar', 'urbem_patrimonial_almoxarifado_centro_custo_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_show', 'Detalhes', 'urbem_patrimonial_almoxarifado_centro_custo_list');
-- Rotas de Patrimonial > Almoxarifado > Centro de Custo > Dotacao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_list', 'Centro de Custo - Dotação', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_create', 'Novo', 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_edit', 'Editar', 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_delete', 'Apagar', 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_show', 'Detalhes', 'urbem_patrimonial_almoxarifado_centro_custo_dotacao_list');
-- Rotas de Patrimonial > Almoxarifado > Centro de Custo > Permissões
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_permissao_create', 'Permissões', 'urbem_patrimonial_almoxarifado_centro_custo_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_centro_custo_permissao_edit', 'Permissões', 'urbem_patrimonial_almoxarifado_centro_custo_list');
-- Rotas de Patrimonial > Almoxarifado > Processar Implantacao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_processar_implantacao_show', 'Almoxarifado - Implantação - Processar Implantação - Perecível - Detalhes', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_almoxarifado_perecivel_delete', 'Almoxarifado - Implantação - Processar Implantação - Perecível - Apagar', 'patrimonial');
-- Rotas de Patrimonial > Compras - Configuração
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_configuracao_list', 'Compras - Configuração', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_configuracao_show', 'Responsável', 'urbem_patrimonial_compras_configuracao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_configuracao_entidade_create', 'Responsavel - Novo', 'urbem_patrimonial_compras_configuracao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_configuracao_entidade_delete', 'Responsavel - Apagar', 'urbem_patrimonial_compras_configuracao_list');
-- Rotas de Patrimonial > Compras > Solicitacao > Itens de Outras Solicitações
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacoes_itens_create', 'Novo', 'urbem_patrimonial_compras_solicitacoes_itens_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacoes_itens_edit', 'Editar', 'urbem_patrimonial_compras_solicitacoes_itens_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_compras_solicitacoes_itens_delete', 'Apagar', 'urbem_patrimonial_compras_solicitacoes_itens_list');
-- Rotas de Patrimonial > Patrimonio > Agendamento > Incluir Agendamento
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_manutencao_list', 'Agendar', 'patrimonio_manutencao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_manutencao_create', 'Agendamento - Novo', 'urbem_patrimonial_patrimonio_manutencao_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_manutencao_edit', 'Agendamento - Editar', 'urbem_patrimonial_patrimonio_manutencao_list');
-- Recursos Humanos > Folha Pagamento - Configuração > Cálculo de Benefícios
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_configuracao_beneficio_list', 'Cálculo de Benefícios', 'folha_pagamento_configuracao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_configuracao_beneficio_create', 'Criar', 'urbem_recursos_humanos_folha_pagamento_configuracao_configuracao_beneficio_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_configuracao_beneficio_edit', 'Editar', 'urbem_recursos_humanos_folha_pagamento_configuracao_configuracao_beneficio_list');
-- Rotas de Patrimonial > Patrimonio > Manutencao > Incluir Manutencao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_manutencao_paga_list', 'Inserir Manutenção', 'patrimonio_manutencao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_manutencao_paga_create', 'Novo', 'urbem_patrimonial_patrimonio_manutencao_paga_list');
-- Rotas de Patrimonial > Patrimonio > Manutencao > Excluir Manutencao
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_excluir_manutencao_paga_list', 'Excluir Manutenção', 'patrimonio_manutencao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_excluir_manutencao_paga_delete', 'Apagar', 'urbem_patrimonial_patrimonio_excluir_manutencao_paga_list');
-- Rotas de RH > Gerenciamento de Cargo > Cargo
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior, relatorio) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_cargo_especialidade_create', 'Especialidade - Novo', 'urbem_recursos_humanos_pessoal_cargo_list', false);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior, relatorio) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_cargo_especialidade_edit', 'Especialidade - Editar', 'urbem_recursos_humanos_pessoal_cargo_list', false);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior, relatorio) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_cargo_especialidade_delete', 'Especialidade - Apagar', 'urbem_recursos_humanos_pessoal_cargo_list', false);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior, relatorio) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_cargo_padrao_create', 'Cargo Padrão - Novo', 'urbem_recursos_humanos_pessoal_cargo_list', false);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior, relatorio) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_cargo_padrao_edit', 'Cargo Padrão - Editar', 'urbem_recursos_humanos_pessoal_cargo_list', false);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior, relatorio) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_cargo_padrao_delete', 'Cargo Padrão - Apagar', 'urbem_recursos_humanos_pessoal_cargo_list', false);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configurar_ferias_create', 'Configurar Férias', 'folha_pagamento_configuracao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configurar_ferias_edit', 'Configurar Férias', 'folha_pagamento_configuracao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_create', 'Alterar Configuração', 'folha_pagamento_configuracao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_create', 'Alterar Configuração', 'folha_pagamento_configuracao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_list', 'Configuração Contracheque', 'folha_pagamento_configuracao_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_create', 'Novo', 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_edit', 'Editar', 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_delete', 'Remover', 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_show', 'Detalhes', 'urbem_recursos_humanos_folha_pagamento_configuracao_contracheque_list');
-- Rotas de Recursos HumanosFolha Pagamento - ConfiguraçãoConfigurar Cálculo de 13º Salário
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_excluir_manutencao_paga_list', 'Configurar Cálculo de 13º Salário', 'folha_pagamento_configuracao_home', false);
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_evento_list', 'Folha de Pagamento - Evento', 'recursos_humanos');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_evento_create', 'Novo', 'urbem_recursos_humanos_folha_pagamento_evento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_evento_edit', 'Editar', 'urbem_recursos_humanos_folha_pagamento_evento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_evento_show', 'Detalhes', 'urbem_recursos_humanos_folha_pagamento_evento_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list', 'Tabela de IRRF', 'folha_pagamento_irrf_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_create', 'Novo', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_edit', 'Editar', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_show', 'Detalhes', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_delete', 'Remover', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
-- Rotas de Recursos Humanos > Folhas > Fechar/Reabrir Folha de Salário
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_folha_situacao_create', 'Fechar/Reabrir Folha de Salário', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_cid_list', 'CIDs Isentas de IRRF', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_cid_create', 'CIDs Isentas de IRRF - Novo', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_cid_edit', 'CIDs Isentas de IRRF - Editar', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_cid_show', 'CIDs Isentas de IRRF - Detalhes', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_cid_delete', 'CIDs Isentas de IRRF - Remover', 'urbem_recursos_humanos_folha_pagamento_tabela_irrf_list');
-- Rotas de Recursos Humanos > Folhas > Folha Salário > Registrar Evento por Contrato
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_contrato_servidor_periodo_list', 'Folha Salário - Registrar Evento por Contrato', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_contrato_servidor_periodo_create', 'Novo', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_contrato_servidor_periodo_edit', 'Editar', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_contrato_servidor_periodo_show', 'Detalhes', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_contrato_servidor_periodo_delete', 'Apagar', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_registro_evento_create', 'Evento - Novo', 'urbem_recursos_humanos_folha_pagamento_contrato_servidor_periodo_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_registro_evento_delete', 'Evento - Apagar', 'urbem_recursos_humanos_folha_pagamento_contrato_servidor_periodo_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'patrimonio_inventario_home', 'Inventário', 'patrimonial');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_exportacao_arquivo_coletora_list', 'Exportar Arquivo Coletora', 'patrimonio_inventario_home');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_contrato_servidor_create', 'Contrato - Novo', 'urbem_recursos_humanos_pessoal_servidor_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_contrato_servidor_edit', 'Contrato - Editar', 'urbem_recursos_humanos_pessoal_servidor_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_servidor_ctps_create', 'Ctps - Novo', 'urbem_recursos_humanos_pessoal_servidor_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_servidor_ctps_edit', 'Ctps - Editar', 'urbem_recursos_humanos_pessoal_servidor_list');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_pessoal_servidor_ctps_delete', 'Ctps - Apagar', 'urbem_recursos_humanos_pessoal_servidor_list');
-- Rotas de Recursos Humanos > Folhas > Folha Salário > Calcular Salario
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_folhas_calculo_salario_list', 'Folha Salário - Calcular Salário', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_folhas_calculo_salario_batch', 'Folha Salário - Calcular Salário', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_patrimonial_patrimonio_exportacao_arquivo_coletora_create', 'Importar Arquivo Coletora', 'patrimonio_inventario_home');
-- Rotas de Recursos Humanos > Folhas > Folha Salário > Consultar Ficha Financeira
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_consulta_ficha_financeira_list', 'Folha Salário - Consultar Ficha Financeira', 'folha_pagamento_folhas_index');
INSERT INTO administracao.rota (cod_rota, descricao_rota, traducao_rota, rota_superior) VALUES (nextval('administracao.rota_cod_rota_seq'), 'urbem_recursos_humanos_folha_pagamento_consulta_ficha_financeira_show', 'Folha Salário - Consultar Ficha Financeira', 'folha_pagamento_folhas_index');
|
create table IF NOT EXISTS persistent_logins (
username varchar(64) not null,
series varchar(64) primary key,
token varchar(64) not null,
last_used timestamp not null
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
<filename>maintable.sql<gh_stars>0
-- MySQL dump 10.14 Distrib 5.5.60-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: avd2225
-- ------------------------------------------------------
-- Server version 5.5.60-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `people`
--
DROP TABLE IF EXISTS `people`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `people` (
`PersonID` mediumint(10) NOT NULL AUTO_INCREMENT,
`LastName` varchar(20) DEFAULT NULL,
`FirstName` varchar(20) DEFAULT NULL,
`NickName` varchar(20) DEFAULT NULL,
PRIMARY KEY (`PersonID`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `people`
--
LOCK TABLES `people` WRITE;
/*!40000 ALTER TABLE `people` DISABLE KEYS */;
INSERT INTO `people` VALUES (1,'smith','John','Johnny'),(2,'Joy','Smith','Joyous'),(3,'Jane','Doe',NULL),(4,'Parker','Bob','Bobby'),(5,'Namath','Joe','Broadway Joe'),(6,'Namath','Joe','Broadway Joe'),(7,'Namath','Joe','Broadway Joe'),(8,'Namath','Joe','Broadway Joe'),(9,'Namath','Joe','Broadway Joe'),(10,'Namath','Joe','Broadway Joe'),(11,'Namath','Joe','Broadway Joe'),(12,'Namath','Joe','Broadway Joe'),(13,'Namath','Joe','Broadway Joe'),(14,'Namath','Joe','Broadway Joe'),(15,'Namath','Joe','Broadway Joe'),(16,'Namath','Joe','Broadway Joe'),(17,'Namath','Joe','Broadway Joe'),(18,'Namath','Joe','Broadway Joe'),(19,'Namath','Joe','Broadway Joe'),(20,'Namath','Joe','Broadway Joe'),(21,'Namath','Joe','Broadway Joe'),(22,'Namath','Joe','Broadway Joe'),(23,'Namath','Joe','Broadway Joe'),(24,'Namath','Joe','Broadway Joe'),(25,'Namath','Joe','Broadway Joe'),(26,'Namath','Joe','Broadway Joe'),(27,'Namath','Joe','Broadway Joe'),(28,'Namath','Joe','Broadway Joe'),(29,'Namath','Joe','Broadway Joe'),(30,'Namath','Joe','Broadway Joe'),(31,'Namath','Joe','Broadway Joe');
/*!40000 ALTER TABLE `people` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_league`
--
DROP TABLE IF EXISTS `server_league`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_league` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_league`
--
LOCK TABLES `server_league` WRITE;
/*!40000 ALTER TABLE `server_league` DISABLE KEYS */;
INSERT INTO `server_league` VALUES (1,'Soccer NY League');
/*!40000 ALTER TABLE `server_league` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_player`
--
DROP TABLE IF EXISTS `server_player`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_player` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(50) NOT NULL,
`lastname` varchar(50) NOT NULL,
`dateofbirth` date NOT NULL,
`jerseynumber` varchar(45) NOT NULL,
`team` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `teamFK_idx` (`team`),
KEY `playPosFK_idx` (`id`),
CONSTRAINT `teamFK` FOREIGN KEY (`team`) REFERENCES `server_team` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_player`
--
LOCK TABLES `server_player` WRITE;
/*!40000 ALTER TABLE `server_player` DISABLE KEYS */;
INSERT INTO `server_player` VALUES (1,'Tony','Cap','1997-11-12','11',1),(2,'Bob','Parker','1998-09-22','12',1),(3,'Jim','Pappy','1994-04-10','10',1),(4,'Jake','Pep','1999-06-05','4',1),(5,'Tomeo','Rev','1998-07-10','9',1),(6,'Kyle','lyle','1997-01-20','17',1),(7,'Jam','Tono','1997-10-12','19',1),(8,'Africa','Toto','1997-12-12','29',1),(9,'Impala','Hans','1997-03-20','30',1),(10,'Bibi','Khalm','1998-10-12','49',1),(11,'Nguyen','Sony','1996-10-13','47',2),(12,'Jesus','Christ','1998-06-13','10',2),(13,'Wilkes','Lincoln','1996-10-17','20',2),(14,'George','Jefferson','1995-04-04','3',2),(15,'Bobby','Hill','1995-08-13','7',2),(16,'Bart','Simpsons','1996-06-20','13',2),(17,'Kun','King','1999-09-28','30',2),(18,'Locked','Loaded','1996-10-13','2',2),(19,'Shin','Suh','1996-10-11','1',2),(20,'Destiny','Final','1996-10-03','5',2);
/*!40000 ALTER TABLE `server_player` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_playerpos`
--
DROP TABLE IF EXISTS `server_playerpos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_playerpos` (
`player` int(11) NOT NULL DEFAULT '0',
`position` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`player`,`position`),
KEY `ppPlayerFK_idx` (`player`),
KEY `posFK_idx` (`position`),
CONSTRAINT `posFK` FOREIGN KEY (`position`) REFERENCES `server_position` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `posPlayerFK` FOREIGN KEY (`player`) REFERENCES `server_player` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_playerpos`
--
LOCK TABLES `server_playerpos` WRITE;
/*!40000 ALTER TABLE `server_playerpos` DISABLE KEYS */;
INSERT INTO `server_playerpos` VALUES (1,1),(2,1),(3,2),(4,2),(5,3),(6,3),(7,4),(8,5),(9,5),(10,5),(11,1),(12,1),(13,2),(14,2),(15,3),(16,3),(17,4),(18,5),(19,5),(20,5);
/*!40000 ALTER TABLE `server_playerpos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_position`
--
DROP TABLE IF EXISTS `server_position`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_position` (
`name` varchar(50) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_position`
--
LOCK TABLES `server_position` WRITE;
/*!40000 ALTER TABLE `server_position` DISABLE KEYS */;
INSERT INTO `server_position` VALUES ('Forward',1),('Defender',2),('Midfielder',3),('Goalie',4),('Sweeper',5);
/*!40000 ALTER TABLE `server_position` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_roles`
--
DROP TABLE IF EXISTS `server_roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_roles`
--
LOCK TABLES `server_roles` WRITE;
/*!40000 ALTER TABLE `server_roles` DISABLE KEYS */;
INSERT INTO `server_roles` VALUES (1,'Admin'),(2,'League Manager'),(3,'Team Manager'),(4,'Coach'),(5,'Parent');
/*!40000 ALTER TABLE `server_roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_schedule`
--
DROP TABLE IF EXISTS `server_schedule`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_schedule` (
`sport` int(11) NOT NULL,
`league` int(11) NOT NULL,
`season` int(11) NOT NULL,
`hometeam` int(11) NOT NULL,
`awayteam` int(11) NOT NULL,
`homescore` int(11) NOT NULL DEFAULT '0',
`awayscore` int(11) NOT NULL DEFAULT '0',
`scheduled` datetime NOT NULL,
`completed` bit(1) NOT NULL DEFAULT b'0',
KEY `sportleagueseasonFK_idx` (`sport`,`league`,`season`),
KEY `hometeamFK_idx` (`hometeam`),
KEY `awayteamFK_idx` (`awayteam`),
CONSTRAINT `awayteamFK` FOREIGN KEY (`awayteam`) REFERENCES `server_team` (`id`),
CONSTRAINT `hometeamFK` FOREIGN KEY (`hometeam`) REFERENCES `server_team` (`id`),
CONSTRAINT `schslseasonFK` FOREIGN KEY (`sport`, `league`, `season`) REFERENCES `server_slseason` (`sport`, `league`, `season`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_schedule`
--
LOCK TABLES `server_schedule` WRITE;
/*!40000 ALTER TABLE `server_schedule` DISABLE KEYS */;
INSERT INTO `server_schedule` VALUES (1,1,1,1,2,3,6,'2018-09-20 04:00:00',''),(1,1,1,2,1,4,5,'2018-10-01 04:00:00',''),(1,1,1,1,2,2,3,'2018-10-10 04:00:00',''),(1,1,1,2,1,5,6,'2018-10-20 04:00:00',''),(1,1,1,1,2,0,0,'2018-10-25 04:00:00','\0'),(1,1,1,2,1,0,0,'2018-10-30 04:00:00','\0'),(1,1,1,1,2,0,0,'2018-11-05 04:00:00','\0'),(1,1,1,2,1,0,0,'2018-11-10 04:00:00','\0');
/*!40000 ALTER TABLE `server_schedule` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_season`
--
DROP TABLE IF EXISTS `server_season`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_season` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`year` char(4) NOT NULL,
`description` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_season`
--
LOCK TABLES `server_season` WRITE;
/*!40000 ALTER TABLE `server_season` DISABLE KEYS */;
INSERT INTO `server_season` VALUES (1,'2018','Season 1 - Soccer'),(4,'2019','Season 2 - Soccer');
/*!40000 ALTER TABLE `server_season` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_slseason`
--
DROP TABLE IF EXISTS `server_slseason`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_slseason` (
`sport` int(11) NOT NULL,
`league` int(11) NOT NULL,
`season` int(11) NOT NULL,
PRIMARY KEY (`sport`,`league`,`season`),
KEY `ssksseasonFK_idx` (`season`),
KEY `sslsleagueFK_idx` (`league`),
KEY `sslssportFK_idx` (`sport`),
CONSTRAINT `sslsleaguetFK` FOREIGN KEY (`league`) REFERENCES `server_league` (`id`),
CONSTRAINT `sslsseasonFK` FOREIGN KEY (`season`) REFERENCES `server_season` (`id`),
CONSTRAINT `sslssportFK` FOREIGN KEY (`sport`) REFERENCES `server_sport` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_slseason`
--
LOCK TABLES `server_slseason` WRITE;
/*!40000 ALTER TABLE `server_slseason` DISABLE KEYS */;
INSERT INTO `server_slseason` VALUES (1,1,1);
/*!40000 ALTER TABLE `server_slseason` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_sport`
--
DROP TABLE IF EXISTS `server_sport`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_sport` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_sport`
--
LOCK TABLES `server_sport` WRITE;
/*!40000 ALTER TABLE `server_sport` DISABLE KEYS */;
INSERT INTO `server_sport` VALUES (1,'Soccer'),(2,'Football');
/*!40000 ALTER TABLE `server_sport` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_team`
--
DROP TABLE IF EXISTS `server_team`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`mascot` varchar(50) DEFAULT NULL,
`sport` int(11) NOT NULL,
`league` int(11) NOT NULL,
`season` int(11) NOT NULL,
`picture` varchar(50) DEFAULT NULL,
`homecolor` varchar(25) NOT NULL DEFAULT 'white',
`awaycolor` varchar(25) NOT NULL,
`maxplayers` varchar(45) NOT NULL DEFAULT '15',
PRIMARY KEY (`id`),
KEY `sls_idx` (`sport`,`league`,`season`),
KEY `sls_sport_idx` (`sport`),
KEY `sls_league_idx` (`league`),
KEY `sls_season_idx` (`season`),
CONSTRAINT `slsFK` FOREIGN KEY (`sport`, `league`, `season`) REFERENCES `server_slseason` (`sport`, `league`, `season`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_team`
--
LOCK TABLES `server_team` WRITE;
/*!40000 ALTER TABLE `server_team` DISABLE KEYS */;
INSERT INTO `server_team` VALUES (1,'Rochester Rhinos','Rhino',1,1,1,'rhino.jpg','blue','red','10'),(2,'Albany Alligators','Alligator',1,1,1,'alligator.jpg','green','yellow','10'),(3,'Newark Beavers','Beaver',1,1,1,'beaver.jpg','purple','navy','10'),(4,'Buffalo Bisons','Bison',1,1,1,'bison.jpg','brown','black','10');
/*!40000 ALTER TABLE `server_team` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `server_user`
--
DROP TABLE IF EXISTS `server_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `server_user` (
`username` varchar(25) NOT NULL,
`role` int(11) NOT NULL,
`password` char(64) NOT NULL,
`team` int(11) DEFAULT NULL,
`league` int(11) DEFAULT NULL,
PRIMARY KEY (`username`),
KEY `roleFK_idx` (`role`),
KEY `teamUserFK_idx` (`team`),
KEY `leagueUserFK_idx` (`league`),
CONSTRAINT `leagueUserFK` FOREIGN KEY (`league`) REFERENCES `server_league` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `roleFK` FOREIGN KEY (`role`) REFERENCES `server_roles` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `teamUserFK` FOREIGN KEY (`team`) REFERENCES `server_team` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `server_user`
--
LOCK TABLES `server_user` WRITE;
/*!40000 ALTER TABLE `server_user` DISABLE KEYS */;
INSERT INTO `server_user` VALUES ('adminUser',1,'<KEY>',NULL,NULL),('coachUser',4,'<KEY>',1,1),('leagueUser',2,'<KEY>',NULL,1),('parentUser',5,'<KEY>',1,1),('teamUser2',1,'<KEY>',1,1);
/*!40000 ALTER TABLE `server_user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-28 23:18:16
|
<gh_stars>1-10
CREATE TABLE IF NOT EXISTS `prefix_bans` (
`ban_id` int(11) NOT NULL AUTO_INCREMENT,
`ban_ip` varchar(46) COLLATE utf8_czech_ci NOT NULL COMMENT 'Banned IP',
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Banned User',
`ban_time` int(10) NOT NULL,
`ban_time_end` int(10) NOT NULL,
`ban_reason` text COLLATE utf8_czech_ci NOT NULL,
`ban_user_id` int(11) NOT NULL COMMENT 'Ban by Admin',
PRIMARY KEY (`ban_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_comments` (
`comment_id` int(11) NOT NULL AUTO_INCREMENT,
`comment` text COLLATE utf8_czech_ci NOT NULL,
`comment_timestamp` int(10) NOT NULL,
`comment_timestamp_edit` int(10) NOT NULL DEFAULT '0',
`post_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`comment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_crons` (
`cron_id` int(11) NOT NULL AUTO_INCREMENT,
`cron_name` varchar(32) COLLATE utf8_czech_ci NOT NULL,
`cron_path` text COLLATE utf8_czech_ci NOT NULL,
`cron_timer` int(10) NOT NULL,
`cron_time` int(10) NOT NULL,
PRIMARY KEY (`cron_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_devices` (
`device_id` int(11) NOT NULL AUTO_INCREMENT,
`device_ip` varchar(50) COLLATE utf8_czech_ci NOT NULL,
`device_agent` text COLLATE utf8_czech_ci NOT NULL,
`session_id` varchar(32) COLLATE utf8_czech_ci NOT NULL,
`device_auth_key` varchar(32) COLLATE utf8_czech_ci NOT NULL,
`device_login_key` varchar(64) COLLATE utf8_czech_ci DEFAULT NULL,
`device_timestamp_register` int(10) NOT NULL,
`device_timestamp_active` int(10) NOT NULL,
`user_id` int(11) NOT NULL,
`device_status` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_keys` (
`key_id` int(11) NOT NULL AUTO_INCREMENT,
`key` text COLLATE utf8_czech_ci NOT NULL,
`key_time` int(10) NOT NULL,
`key_type` varchar(30) COLLATE utf8_czech_ci NOT NULL,
`user_id` int(11) NOT NULL DEFAULT '0',
`key_data` text COLLATE utf8_czech_ci,
PRIMARY KEY (`key_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_log` (
`log_id` int(11) NOT NULL AUTO_INCREMENT,
`log_level` int(2) NOT NULL,
`log_time` int(10) NOT NULL,
`log_text` text COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_menu` (
`menu_id` int(11) NOT NULL AUTO_INCREMENT,
`menu_name` varchar(100) COLLATE utf8_czech_ci NOT NULL,
`menu_link` text COLLATE utf8_czech_ci NOT NULL,
`menu_dropdown` varchar(11) COLLATE utf8_czech_ci DEFAULT NULL,
`menu_sid` int(5) NOT NULL,
`menu_order` int(11) NOT NULL,
PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_menus` (
`menu_id` int(11) NOT NULL AUTO_INCREMENT,
`menu_name` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`menu_pos` int(3) NOT NULL,
`menu_sid` int(11) NOT NULL,
PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_messages` (
`message_id` int(11) NOT NULL AUTO_INCREMENT,
`message_subject` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`message_text` text COLLATE utf8_czech_ci NOT NULL,
`message_type` int(1) NOT NULL DEFAULT '0',
`user_id_s` int(11) NOT NULL COMMENT 'send',
`user_id_r` int(11) NOT NULL COMMENT 'read',
`message_timestamp_send` int(10) NOT NULL,
`message_timestamp_showed` int(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_newsCategories` (
`newsCategory_id` int(11) NOT NULL AUTO_INCREMENT,
`newsCategory` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`newsCategory_desc` text COLLATE utf8_czech_ci,
`newsCategory_url` varchar(64) COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`newsCategory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_plugins` (
`plugin_id` int(11) NOT NULL AUTO_INCREMENT,
`plugin_name` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`plugin_url` text COLLATE utf8_czech_ci NOT NULL,
`plugin_dir` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`plugin_desc` text COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`plugin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_posts` (
`post_id` int(11) NOT NULL AUTO_INCREMENT,
`post_title` varchar(100) COLLATE utf8_czech_ci NOT NULL,
`post_content` text COLLATE utf8_czech_ci NOT NULL,
`post_type` varchar(10) COLLATE utf8_czech_ci NOT NULL,
`user_id` int(11) NOT NULL,
`post_timestamp_add` int(10) NOT NULL,
`edit_user_id` int(11) NOT NULL,
`post_timestamp_edit` int(10) NOT NULL,
`post_comments` int(1) NOT NULL,
`post_visibility` int(1) NOT NULL,
`post_url` text COLLATE utf8_czech_ci NOT NULL,
`newsCategory_id` int(11) NOT NULL DEFAULT '0',
`post_tags` text COLLATE utf8_czech_ci NOT NULL,
`post_description` text COLLATE utf8_czech_ci NOT NULL,
`post_keywords` text COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_reports` (
`report_id` int(11) NOT NULL AUTO_INCREMENT,
`report_type` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`report_content` text COLLATE utf8_czech_ci NOT NULL,
`report_timestamp` int(10) NOT NULL,
`report_timestamp_show` int(10) DEFAULT '0',
`report_admin` int(11) DEFAULT '0',
`report_reported` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`message_id` int(11) DEFAULT '0',
`report_timestamp_solved` int(10) DEFAULT '0',
PRIMARY KEY (`report_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_settings` (
`settings_id` int(11) NOT NULL AUTO_INCREMENT,
`settings_name` varchar(50) COLLATE utf8_czech_ci NOT NULL,
`settings_value` text COLLATE utf8_czech_ci,
PRIMARY KEY (`settings_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_sidebars` (
`sidebar_id` int(11) NOT NULL AUTO_INCREMENT,
`sidebar_name` varchar(32) COLLATE utf8_czech_ci NOT NULL,
`sidebar_title` varchar(100) COLLATE utf8_czech_ci NOT NULL,
`sidebar_content_type` varchar(10) COLLATE utf8_czech_ci NOT NULL,
`sidebar_content` text COLLATE utf8_czech_ci NOT NULL,
`sidebar_pos` varchar(10) COLLATE utf8_czech_ci NOT NULL,
`sidebar_visibility` int(1) NOT NULL,
`sidebar_class` varchar(32) COLLATE utf8_czech_ci NOT NULL,
`sidebar_order` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`sidebar_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_userGroups` (
`usergroup_id` int(11) NOT NULL AUTO_INCREMENT,
`usergroup_name` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`usergroup_desc` text COLLATE utf8_czech_ci NOT NULL,
`usergroup_label` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`usergroup_color_bg` varchar(6) COLLATE utf8_czech_ci NOT NULL,
`usergroup_color_text` varchar(6) COLLATE utf8_czech_ci NOT NULL,
`usergroup_link` varchar(64) COLLATE utf8_czech_ci NOT NULL,
`usergroup_rights` text COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`usergroup_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_users` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(32) COLLATE utf8_czech_ci NOT NULL,
`user_pass` text COLLATE utf8_czech_ci NOT NULL,
`user_salt` text COLLATE utf8_czech_ci NOT NULL,
`user_display_name` varchar(50) COLLATE utf8_czech_ci NOT NULL,
`user_email` varchar(256) COLLATE utf8_czech_ci NOT NULL,
`user_timestamp_register` int(10) NOT NULL,
`user_timestamp_login` int(10) NOT NULL,
`user_timestamp_active` int(10) NOT NULL,
`user_groups` text COLLATE utf8_czech_ci NOT NULL,
`user_rights` int(11) NOT NULL,
`user_rights_detail` text COLLATE utf8_czech_ci NOT NULL,
`user_login_type` varchar(64) COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `prefix_userSettings` (
`userSettings_id` int(11) NOT NULL AUTO_INCREMENT,
`userSettings_name` varchar(32) COLLATE utf8_czech_ci NOT NULL,
`userSettings_value` text COLLATE utf8_czech_ci NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`userSettings_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
|
/*
Navicat Premium Data Transfer
Source Server : 交易所
Source Server Type : MySQL
Source Server Version : 50723
Source Host : 172.16.17.32:3306
Source Schema : solian
Target Server Type : MySQL
Target Server Version : 50723
File Encoding : 65001
Date: 07/09/2018 11:18:52
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for exchange
-- ----------------------------
DROP TABLE IF EXISTS `exchange`;
CREATE TABLE `exchange` (
`exchange_id` int(11) NOT NULL,
`exchange_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`exchange_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`exchange_apiurl` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '交易所api的url',
`exchange_logourl` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`create_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0),
`coin_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '币种名称(即指挖矿名称)',
`base_coin` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基础币 格式:(USDT_BTC_ETH)',
`change_amount` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '变化量',
`trading_num` int(11) NULL DEFAULT NULL COMMENT '交易对数量',
`online_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '交易所上线时间',
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '现货/币币交易/等等的类型',
`status` int(2) NULL DEFAULT NULL COMMENT '是否可用',
PRIMARY KEY (`exchange_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
|
<filename>lotteria_laravel.sql<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 19, 2019 at 08:05 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `lotteria_laravel`
--
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Set', NULL, NULL),
(2, 'Hamburger', NULL, NULL),
(3, 'Chicken', NULL, NULL),
(4, 'Rice', NULL, NULL),
(5, 'Appetizer', NULL, NULL),
(6, 'Dessert', NULL, NULL),
(7, 'Drinks', NULL, NULL),
(8, 'Coffee', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `items`
--
CREATE TABLE `items` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`photo` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`category_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `items`
--
INSERT INTO `items` (`id`, `name`, `price`, `photo`, `description`, `category_id`, `created_at`, `updated_at`) VALUES
(1, 'Hot Crispy Chicken (Set)', '5300', '/storage/item/1549876841.png', 'Hot Crispy Chicken, Potato, Pepsi', 1, NULL, NULL),
(2, 'Bulgogi (Set)', '4800', '/storage/item/1549876970.png', 'Bulgogi Burger, Potato, Pepsi', 1, NULL, NULL),
(3, 'Wild Shrimp (Set)', '5700', '/storage/item/1549877032.png', 'Wild Shrimp Burger, Potato, Pepsi', 1, NULL, NULL),
(4, 'Rib Sand (Set)', '4800', '/storage/item/1549877177.png', 'Rib Sand Burger, Potato, Pepsi', 1, NULL, NULL),
(5, 'Giant Double (Set)', '4500', '/storage/item/1549877238.png', 'Giant Double Burger, Potato, Pepsi', 1, NULL, NULL),
(6, 'Crazy Hot Single (Set)', '4800', '/storage/item/1549877239.jpg', 'Crazy Hot Single Burger, Potato, Pepsi', 1, NULL, NULL),
(7, 'Crazy Hot Double (Set)', '6100', '/storage/item/1549877240.jpg', 'Crazy Hot Double Burger, Potato, Pepsi', 1, NULL, NULL),
(8, 'Chicken Burger (Set)', '4600', '/storage/item/1549877241.png', 'Chicken Burger, Potato, Pepsi', 1, NULL, NULL),
(9, 'Cheese (Set)', '4900', '/storage/item/1549877242.png', 'Cheese Burger, Potato, Pepsi', 1, NULL, NULL),
(10, 'Teri (Set)', '4600', '/storage/item/1549877243.png', 'Teri Burger, Potato, Pepsi', 1, NULL, NULL),
(11, 'Hamburger (Set)', '4000', '/storage/item/1549877244.jpg', 'Burger, Potato, Pepsi', 1, NULL, NULL),
(12, 'Hot Crispy Chicken', '3800', '/storage/item/1549877245.png', '', 2, NULL, NULL),
(13, 'Bulgogi', '3900', '/storage/item/1549877246.png', '', 2, NULL, NULL),
(14, 'Wild Shrimp', '4300', '/storage/item/1549877247.jpg', '', 2, NULL, NULL),
(15, 'Rib Sand', '3300', '/storage/item/1549877248.png', '', 2, NULL, NULL),
(16, 'Crazy Hot Single', '3300', '/storage/item/1549877249.jpg', '', 2, NULL, NULL),
(17, 'Crazy Hot Double', '4700', '/storage/item/1549877250.jpg', '', 2, NULL, NULL),
(18, 'Giant Double', '4400', '/storage/item/1549877251.png', '', 2, NULL, NULL),
(19, 'Chicken Burger', '4700', '/storage/item/1549877252.png', '', 2, NULL, NULL),
(20, 'Cheese', '3400', '/storage/item/1549877253.png', '', 2, NULL, NULL),
(21, 'Teri', '3100', '/storage/item/1549877254.png', '', 2, NULL, NULL),
(22, 'Hamburger', '2600', '/storage/item/1549877255.png', '', 2, NULL, NULL),
(23, 'Chicken (original)', '1600', '/storage/item/1549877256.png', '', 3, NULL, NULL),
(24, 'Chicken (spicy)', '1600', '/storage/item/1549877257.png', '', 3, NULL, NULL),
(25, 'Chicken Half Pack (Original)', '6400', '/storage/item/1549877258.jpg', '', 3, NULL, NULL),
(26, 'Chicken Half Pack (Spicy)', '6400', '/storage/item/1549877259.jpg', '', 3, NULL, NULL),
(27, 'Chicken Full Pack (Original)', '14000', '/storage/item/1549877260.png', '', 3, NULL, NULL),
(28, 'Chicken Full Pack (Spicy)', '14000', '/storage/item/1549877261.png', '', 3, NULL, NULL),
(29, 'Korea Chicken(Half)', '2900', '/storage/item/1549877262.jpg', '', 3, NULL, NULL),
(30, 'Korea Chicken(Full)', '5100', '/storage/item/1549877263.jpg', '', 3, NULL, NULL),
(31, 'Cheesy Chicken(Half)', '2400', '/storage/item/1549877264.jpeg', '', 3, NULL, NULL),
(32, 'Cheesy Chicken(Full)', '4700', '/storage/item/1549877265.jpeg', '', 3, NULL, NULL),
(33, 'Korea Chicken Rice', '3100', '/storage/item/1549877266.jpg', '', 4, NULL, NULL),
(34, 'Chicken Rice (Original)', '2900', '/storage/item/1549877267.jpg', '', 4, NULL, NULL),
(35, 'Chicken Rice (Spicy)', '2900', '/storage/item/1549877268.jpg', '', 4, NULL, NULL),
(36, 'Sambal Chicken Rice (Original)', '3400', '/storage/item/1549877269.jpg', '', 4, NULL, NULL),
(37, 'Sambal Chicken Rice (Spicy)', '3400', '/storage/item/1549877270.jpg', '', 4, NULL, NULL),
(38, 'Potato', '1100', '/storage/item/1549877271.png', '', 5, NULL, NULL),
(39, 'Seasoning Potato (Chilli) ', '1500', '/storage/item/1549877272.png', '', 5, NULL, NULL),
(40, 'Seasoning Potato (Onion) ', '1500', '/storage/item/1549877272.png', '', 5, NULL, NULL),
(41, 'Seasoning Potato (Onion) ', '1500', '/storage/item/1549877272.png', '', 5, NULL, NULL),
(42, 'Shake Shake (Chilli) ', '2600', '/storage/item/1549877273.png', '', 5, NULL, NULL),
(43, 'Shake Shake (Onion) ', '2600', '/storage/item/1549877273.png', '', 5, NULL, NULL),
(44, 'Cheese Stick', '1500', '/storage/item/1549877274.png', '', 5, NULL, NULL),
(45, 'Crunch Shrimp', '1600', '/storage/item/1549877275.jpg', '', 5, NULL, NULL),
(46, 'Squid Ring', '1600', '/storage/item/1549877276.png', '', 5, NULL, NULL),
(47, 'Hash Brown', '1500', '/storage/item/1549877277.png', '', 5, NULL, NULL),
(48, 'Chicken Nugget( 5 pcs )', '1800', '/storage/item/1549877278.jpg', '', 5, NULL, NULL),
(49, 'Chicken Nugget( 9 pcs )', '3300', '/storage/item/1549877278.jpg', '', 5, NULL, NULL),
(50, 'Fish Finger', '1300', '/storage/item/1549877279.jpg', '', 5, NULL, NULL),
(51, 'Cheesy Potato', '1300', '/storage/item/1549877280.jpeg', '', 5, NULL, NULL),
(52, 'Soft Cone', '800', '/storage/item/1549877281.png', '', 6, NULL, NULL),
(53, 'Marble Soft Cone', '1200', '/storage/item/1549877282.png', '', 6, NULL, NULL),
(54, 'Tornado Choco Cookie', '1800', '/storage/item/1549877283.jpg', '', 6, NULL, NULL),
(55, 'Magicpop', '1800', '/storage/item/1549877284.jpg', '', 6, NULL, NULL),
(56, 'Green Tea', '1800', '/storage/item/1549877285.jpeg', '', 6, NULL, NULL),
(57, 'Red Bean Ice Flake', '3500', '/storage/item/1549877286.jpeg', '', 6, NULL, NULL),
(58, 'Fruits Ice Flake', '3500', '/storage/item/1549877287.jpg', '', 6, NULL, NULL),
(59, 'Pepsi', '900', '/storage/item/1549877288.jpg', '', 7, NULL, NULL),
(60, '7 Up', '900', '/storage/item/1549877289.jpg', '', 7, NULL, NULL),
(61, 'Orange Juice', '1000', '/storage/item/1549877290.png', '', 7, NULL, NULL),
(62, 'Milo', '1300', '/storage/item/1549877291.png', '', 7, NULL, NULL),
(63, 'Ice Lemon Tea', '1300', '/storage/item/1549877292.jpg', '', 7, NULL, NULL),
(64, 'Fresh Lime Juice', '1300', '/storage/item/1549877293.jpg', '', 7, NULL, NULL),
(65, 'Thai Milk Tea', '1300', '/storage/item/1549877294.jpg', '', 7, NULL, NULL),
(66, 'Ice Americano', '1300', '/storage/item/1549877295.jpg', '', 8, NULL, NULL),
(67, 'Americano', '1300', '/storage/item/1549877297.jpg', '', 8, NULL, NULL),
(68, 'Caffe Latte', '1700', '/storage/item/1549877296.jpg', '', 8, NULL, NULL),
(69, 'Cappunccino', '1700', '/storage/item/1549877298.jpg', '', 8, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(63, '2014_10_12_000000_create_users_table', 1),
(64, '2014_10_12_100000_create_password_resets_table', 1),
(65, '2019_08_19_000000_create_failed_jobs_table', 1),
(66, '2019_11_14_134803_create_categories_table', 1),
(67, '2019_11_14_134920_create_items_table', 1),
(68, '2019_11_14_134956_create_orders_table', 1),
(69, '2019_11_14_135017_create_orderdetails_table', 1),
(70, '2019_11_18_135514_create_permission_tables', 1);
-- --------------------------------------------------------
--
-- Table structure for table `model_has_permissions`
--
CREATE TABLE `model_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `model_has_roles`
--
CREATE TABLE `model_has_roles` (
`role_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `model_has_roles`
--
INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\User', 1),
(2, 'App\\User', 2),
(2, 'App\\User', 3);
-- --------------------------------------------------------
--
-- Table structure for table `orderdetails`
--
CREATE TABLE `orderdetails` (
`id` bigint(20) UNSIGNED NOT NULL,
`vocherno` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`qty` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`item_id` bigint(20) UNSIGNED NOT NULL,
`order_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `orderdetails`
--
INSERT INTO `orderdetails` (`id`, `vocherno`, `qty`, `item_id`, `order_id`, `created_at`, `updated_at`) VALUES
(1, '1574184289957', '1', 33, 1, '2019-11-19 10:54:52', '2019-11-19 10:54:52'),
(2, '1574184321616', '2', 38, 2, '2019-11-19 10:55:23', '2019-11-19 10:55:23'),
(3, '1574184321616', '1', 36, 2, '2019-11-19 10:55:23', '2019-11-19 10:55:23'),
(4, '1574184321616', '1', 12, 2, '2019-11-19 10:55:23', '2019-11-19 10:55:23'),
(5, '1574184376926', '1', 1, 3, '2019-11-19 10:56:18', '2019-11-19 10:56:18'),
(6, '1574184376926', '1', 59, 3, '2019-11-19 10:56:18', '2019-11-19 10:56:18'),
(7, '1574184376926', '1', 67, 3, '2019-11-19 10:56:18', '2019-11-19 10:56:18'),
(8, '1574184393798', '3', 52, 4, '2019-11-19 10:56:35', '2019-11-19 10:56:35'),
(9, '1574184393798', '1', 55, 4, '2019-11-19 10:56:35', '2019-11-19 10:56:35'),
(10, '1574184393798', '1', 33, 4, '2019-11-19 10:56:35', '2019-11-19 10:56:35'),
(11, '1574184411365', '1', 30, 5, '2019-11-19 10:56:53', '2019-11-19 10:56:53'),
(12, '1574184411365', '1', 32, 5, '2019-11-19 10:56:53', '2019-11-19 10:56:53'),
(13, '1574184430105', '1', 58, 6, '2019-11-19 10:57:11', '2019-11-19 10:57:11'),
(14, '1574184430105', '1', 26, 6, '2019-11-19 10:57:11', '2019-11-19 10:57:11');
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` bigint(20) UNSIGNED NOT NULL,
`orderdate` date NOT NULL,
`vocherno` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`total` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `orderdate`, `vocherno`, `total`, `user_id`, `created_at`, `updated_at`) VALUES
(1, '2019-11-19', '1574184289957', '3100', 2, '2019-11-19 10:54:52', '2019-11-19 10:54:52'),
(2, '2019-11-19', '1574184321616', '9400', 2, '2019-11-19 10:55:23', '2019-11-19 10:55:23'),
(3, '2019-11-19', '1574184376926', '7500', 3, '2019-11-19 10:56:18', '2019-11-19 10:56:18'),
(4, '2019-11-19', '1574184393798', '7300', 3, '2019-11-19 10:56:35', '2019-11-19 10:56:35'),
(5, '2019-11-19', '1574184411365', '9800', 3, '2019-11-19 10:56:53', '2019-11-19 10:56:53'),
(6, '2019-11-19', '1574184430105', '9900', 3, '2019-11-19 10:57:11', '2019-11-19 10:57:11');
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `permissions`
--
CREATE TABLE `permissions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `roles`
--
INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'web', '2019-11-19 10:08:44', '2019-11-19 10:08:44'),
(2, 'staff', 'web', '2019-11-19 10:08:44', '2019-11-19 10:08:44');
-- --------------------------------------------------------
--
-- Table structure for table `role_has_permissions`
--
CREATE TABLE `role_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `photo`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Boss', '/storage/user/boss.png', '<EMAIL>', NULL, '$2y$10$q3PBeEoYd8zf5rDakR740eEXzwEwYLlWCwUN5WF7/mDUmgcZYj6/i', NULL, '2019-11-19 10:09:04', '2019-11-19 10:09:04'),
(2, 'Staff One', '/storage/user/57302.png', '<EMAIL>', NULL, '$2y$10$omoWE639n1/VEZ9P8n3J/ev1RO5QVZkfviFnhzdPVH8bUnKeHOaCq', NULL, '2019-11-19 10:54:14', '2019-11-19 10:54:14'),
(3, 'Staff Two', '/storage/user/74329.png', '<EMAIL>', NULL, '$2y$10$vehDVvqWcU52Cl4COoCyN.Zw4gFa1s0WQ1TLsi4g0GovnzkOd22H6', NULL, '2019-11-19 10:54:32', '2019-11-19 10:54:32');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `items`
--
ALTER TABLE `items`
ADD PRIMARY KEY (`id`),
ADD KEY `items_category_id_foreign` (`category_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indexes for table `orderdetails`
--
ALTER TABLE `orderdetails`
ADD PRIMARY KEY (`id`),
ADD KEY `orderdetails_item_id_foreign` (`item_id`),
ADD KEY `orderdetails_order_id_foreign` (`order_id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`),
ADD KEY `orders_user_id_foreign` (`user_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD PRIMARY KEY (`permission_id`,`role_id`),
ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `items`
--
ALTER TABLE `items`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;
--
-- AUTO_INCREMENT for table `orderdetails`
--
ALTER TABLE `orderdetails`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `items`
--
ALTER TABLE `items`
ADD CONSTRAINT `items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`);
--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `orderdetails`
--
ALTER TABLE `orderdetails`
ADD CONSTRAINT `orderdetails_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
ADD CONSTRAINT `orderdetails_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`);
--
-- Constraints for table `orders`
--
ALTER TABLE `orders`
ADD CONSTRAINT `orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- colname.test
--
-- db eval {
-- CREATE TABLE "t3893"("x");
-- INSERT INTO t3893 VALUES(123);
-- SELECT "y"."x" FROM (SELECT "x" FROM "t3893") AS "y";
-- }
CREATE TABLE "t3893"("x");
INSERT INTO t3893 VALUES(123);
SELECT "y"."x" FROM (SELECT "x" FROM "t3893") AS "y";
|
<filename>samples/AspNetCoreSample_MSBuild/db/migrations/R__Create_views.sql
CREATE VIEW view_5 AS
SELECT if FROM table_5;
|
/*
Warnings:
- You are about to drop the column `description` on the `Video` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Video" DROP COLUMN "description";
|
--==============================================================================
-- GPI - <NAME>
-- Desc: check init.ora parameter
-- Date: 01.September 2012
--
--==============================================================================
set verify off
set linesize 130 pagesize 4000
prompt
prompt Parameter 1 = DB Parameter => '&1'
prompt
define PARA_NAME = '&1'
ttitle left "init.ora parameter" skip 2
column inst_id format 99 heading "In|Id"
column name format a32 heading "Parameter"
column value format a25 heading "Value"
column isdefault format a2 heading "De"
column isses_modifiable format a2 heading "Se"
column issys_modifiable format a2 heading "Sy"
column ismodified format a2 heading "Mo"
column isadjusted format a2 heading "Ad"
column isdeprecated format a2 heading "Dp"
column isbasic format a2 heading "Ba"
column isinstance_modifiable format a1 heading "Im"
column description format a30 heading "Description"
select inst_id
, name
, value
, decode(isdefault,'TRUE','Y','FALSE','-',isdefault) as isdefault
, decode(isses_modifiable,'TRUE','Y','FALSE','-',isses_modifiable) as isses_modifiable
, decode(issys_modifiable,'TRUE','Y','IMMEDIATE','I','DEFERRED','D','FALSE','-',issys_modifiable) as issys_modifiable
, decode(isinstance_modifiable,'TRUE','Y','FALSE','-',isinstance_modifiable) as isinstance_modifiable
, decode(ismodified,'TRUE','Y','MODIFIED','M','SYSTEM_MOD','S','FALSE','-',ismodified) as ismodified
, decode(isadjusted,'TRUE','Y','FALSE','-',isadjusted) as isadjusted
, decode(isdeprecated,'TRUE','Y','FALSE','-',isdeprecated) as isdeprecated
, decode(isbasic,'TRUE','Y','FALSE','-',isbasic) as isbasic
, DESCRIPTION
from gv$parameter
where name like lower('%&&PARA_NAME.%')
order by 1
/
prompt ....
prompt .... column "De" = is default
prompt .... column "Se" = can be changed with alter session
prompt .... column "Sy" = can be changed with alter system => I = change will work immediately | D = only new sessions
prompt .... column "Im" = can be changed for one instance in a cluster
prompt .... column "Mo" = has been modified after instance startup => M = alter session | S=alter system
prompt .... column "Ad" = is adjusted internaly by oracle
prompt .... column "Dp" = is deprecated
prompt .... column "Ba" = is basic parameter
prompt ....
prompt .... to adjust : alter system set <parameter>=<value> scope=both|memory|spfile sid='*'
prompt ....
ttitle left "init.ora parameter Hidden Values" skip 2
column value format a20 heading "Instance|Value"
column value_session format a20 heading "Session|Value"
column name format a40 heading "Parameter"
select a.ksppinm as name
, b.ksppstvl as value_session
, b.addr
, c.ksppstvl as value
, decode(b.ksppstdf,'TRUE','Y','FALSE','-',b.ksppstdf) as isdefault
, decode(bitand(a.ksppiflg/256,3),1, 'Y', '-') as isses_modifiable
--, decode(bitand(a.ksppiflg/65536,3),1,'IMMEDIATE',2,'DEFERRED',3,'IMMEDIATE','FALSE') as issys_modifiable
, ksppdesc as description
from sys.x$ksppi a
, sys.x$ksppcv b
, sys.x$ksppsv c
where a.indx = b.indx
and a.indx = c.indx
--and substr(ksppinm,1,1)='_'
and lower(a.ksppinm) like lower('%&&PARA_NAME.%')
order by a.ksppinm
/
ttitle off
|
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspGetEntityAuditHistoryByEntityIdent')
AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE uspGetEntityAuditHistoryByEntityIdent
GO
/* uspGetEntityAuditHistoryByEntityIdent
*
*
*
*/
CREATE PROCEDURE uspGetEntityAuditHistoryByEntityIdent
@bntEntityIdent BIGINT,
@bntASUserIdent BIGINT
AS
SET NOCOUNT ON
DECLARE @intActivityTypeEditProfileIdent BIGINT
DECLARE @intActivityTypeAddProfileIdent BIGINT
SET @intActivityTypeEditProfileIdent = dbo.ufnActivityTypeEditProfile()
SET @intActivityTypeAddProfileIdent = dbo.ufnActivityTypeAddProfile()
CREATE TABLE #tmpActivityTypeRecordIdents (
RecordIdent BIGINT,
TableName NVARCHAR(1000)
)
INSERT INTO #tmpActivityTypeRecordIdents (
RecordIdent ,
TableName
)
SELECT
@bntEntityIdent,
'Entity'
UNION ALL
SELECT
Ident,
'EntityDegreeXRef'
FROM
EntityDegreeXRef tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityEmail'
FROM
EntityEmail tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityLanguage1XRef'
FROM
EntityLanguage1XRef tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityLicense'
FROM
EntityLicense tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityOtherID'
FROM
EntityOtherID tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityPayorXRef'
FROM
EntityPayorXRef tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityProject'
FROM
EntityProject tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityServices1XRef'
FROM
EntityServices1XRef tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntitySpecialityXRef'
FROM
EntitySpecialityXRef tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntitySystem'
FROM
EntitySystem tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
UNION ALL
SELECT
Ident,
'EntityTaxonomyXRef'
FROM
EntityTaxonomyXRef tbl WITH (NOLOCK)
WHERE
tbl.EntityIdent = @bntEntityIdent
SELECT
AUA.Ident,
AUA.ASUserIdent,
U.FullName as [Author],
AUA.ActivityTypeIdent,
AUA.ActivityDateTime,
AUA.ActivityDescription,
AUA.ClientIPAddress,
AUA.RecordIdent,
AT.Name1,
AT.Desc1,
AT.TableName,
AT.EventType,
AT.ShowToCustomer,
COALESCE(AUAD.Ident, 0) as [ASUserActivityDetail],
COALESCE(AUAD.ASUserActivityIdent, 0) as [ASUserActivityIdent],
COALESCE(AUAD.FieldName, '') as [FieldName],
COALESCE(AUAD.OldValue,'') as [OldValue],
COALESCE(AUAD.NewValue, '') as [NewValue]
FROM
ASUserActivity AUA WITH (NOLOCK)
INNER JOIN
ActivityType AT WITH (NOLOCK)
ON AUA.ActivityTypeIdent = AT.Ident
INNER JOIN
ASUser U WITH (NOLOCK)
ON U.Ident = AUA.ASUserIdent
INNER JOIN
#tmpActivityTypeRecordIdents tAR WITH (NOLOCK)
ON tAR.TableName = AT.TableName
LEFT OUTER JOIN
ASUserActivityDetail AUAD WITH (NOLOCK)
ON AUA.Ident = AUAD.ASUserActivityIdent
WHERE
AT.ShowToCustomer = 1
AND (COALESCE(AUAD.OldValue,'') <> COALESCE(AUAD.NewValue, '') OR COALESCE(AUAD.OldValue,'') = '')
AND AUA.UpdatedEntityIdent = @bntEntityIdent -- only bring back records where the edited entity is the entity we are searching for
ORDER BY
AUA.Ident DESC
DROP TABLE #tmpActivityTypeRecordIdents
GO
-- uspGetEntityAuditHistoryByEntityIdent 306486, 2
|
<reponame>askmohanty/metasfresh
-- 2021-11-02T12:38:58.745Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsExcludeFromZoomTargets,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsShowFilterIncrementButtons,IsShowFilterInline,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,578128,580105,0,30,540420,541926,'PickFrom_Warehouse_ID',TO_TIMESTAMP('2021-11-02 14:38:58','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.handlingunits',0,10,'Y','N','Y','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N',0,'Pick From Warehouse',0,0,TO_TIMESTAMP('2021-11-02 14:38:58','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2021-11-02T12:38:58.767Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Column_ID=578128 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2021-11-02T12:38:58.879Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_Column_Translation_From_AD_Element(580105)
;
-- 2021-11-02T12:39:02.499Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('M_Picking_Job_HUAlternative','ALTER TABLE public.M_Picking_Job_HUAlternative ADD COLUMN PickFrom_Warehouse_ID NUMERIC(10)')
;
-- 2021-11-02T12:39:02.572Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE M_Picking_Job_HUAlternative ADD CONSTRAINT PickFromWarehouse_MPickingJobHUAlternative FOREIGN KEY (PickFrom_Warehouse_ID) REFERENCES public.M_Warehouse DEFERRABLE INITIALLY DEFERRED
;
-- 2021-11-02T12:47:55.982Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2021-11-02 14:47:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=578128
;
-- 2021-11-02T12:47:56.972Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('m_picking_job_hualternative','PickFrom_Warehouse_ID','NUMERIC(10)',null,null)
;
-- 2021-11-02T12:47:56.980Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('m_picking_job_hualternative','PickFrom_Warehouse_ID',null,'NOT NULL',null)
;
-- 2021-11-02T12:49:53.599Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsExcludeFromZoomTargets,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsShowFilterIncrementButtons,IsShowFilterInline,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,578129,580106,0,30,191,541926,'PickFrom_Locator_ID',TO_TIMESTAMP('2021-11-02 14:49:53','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.handlingunits',0,10,'Y','N','Y','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N',0,'Pick From Locator',0,0,TO_TIMESTAMP('2021-11-02 14:49:53','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2021-11-02T12:49:53.605Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Column_ID=578129 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2021-11-02T12:49:53.624Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_Column_Translation_From_AD_Element(580106)
;
-- 2021-11-02T12:49:54.688Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('M_Picking_Job_HUAlternative','ALTER TABLE public.M_Picking_Job_HUAlternative ADD COLUMN PickFrom_Locator_ID NUMERIC(10) NOT NULL')
;
-- 2021-11-02T12:49:54.724Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE M_Picking_Job_HUAlternative ADD CONSTRAINT PickFromLocator_MPickingJobHUAlternative FOREIGN KEY (PickFrom_Locator_ID) REFERENCES public.M_Locator DEFERRABLE INITIALLY DEFERRED
;
|
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('7',0,0,0,540795,'N',TO_TIMESTAMP('2016-10-27 17:36:39','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','N','Y','N','Y','Y','N','N','N',0,'Dashboard','L','WEBUI_Dashboard',TO_TIMESTAMP('2016-10-27 17:36:39','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=540795 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
CREATE SEQUENCE WEBUI_DASHBOARD_SEQ INCREMENT 1 MINVALUE 0 MAXVALUE 2147483647 START 1000000
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,554376,TO_TIMESTAMP('2016-10-27 17:36:40','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table WEBUI_Dashboard',1,'Y','N','Y','Y','WEBUI_Dashboard','N',1000000,TO_TIMESTAMP('2016-10-27 17:36:40','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555303,102,0,19,540795,'AD_Client_ID',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','de.metas.ui.web',10,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','N','N','N','N','Y','N','N','Y','N','N','Mandant',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555303 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555304,113,0,19,540795,'AD_Org_ID',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','de.metas.ui.web',10,'Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','N','N','N','Y','N','N','Y','N','N','Sektion',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555304 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555305,245,0,16,540795,'Created',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag erstellt wurde','de.metas.ui.web',29,'Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','Y','N','N','Y','N','N','Erstellt',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555305 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555306,246,0,18,110,540795,'CreatedBy',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag erstellt hat','de.metas.ui.web',10,'Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','Y','N','N','Y','N','N','Erstellt durch',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555306 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555307,348,0,20,540795,'IsActive',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv','de.metas.ui.web',1,'Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','N','N','N','N','Y','N','N','Y','N','Y','Aktiv',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555307 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555308,607,0,16,540795,'Updated',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde','de.metas.ui.web',29,'Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555308 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555309,608,0,18,110,540795,'UpdatedBy',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag aktualisiert hat','de.metas.ui.web',10,'Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert durch',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555309 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543217,0,'WEBUI_Dashboard_ID',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y','Dashboard','Dashboard',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543217 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555310,543217,0,13,540795,'WEBUI_Dashboard_ID',TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web',10,'Y','N','N','N','Y','Y','N','N','Y','N','N','Dashboard',0,TO_TIMESTAMP('2016-10-27 17:36:48','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:36 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555310 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:37 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555311,469,0,10,540795,'N','Name',TO_TIMESTAMP('2016-10-27 17:37:11','YYYY-MM-DD HH24:MI:SS'),100,'N','Alphanumeric identifier of the entity','de.metas.ui.web',40,'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Y','N','Y','N','N','N','N','N','N','N','Y','N','N','Y','N','Y','N','N','N','Y','N','Name',1,TO_TIMESTAMP('2016-10-27 17:37:11','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:37 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555311 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555312,1103,0,20,540795,'N','IsDefault',TO_TIMESTAMP('2016-10-27 17:39:22','YYYY-MM-DD HH24:MI:SS'),100,'N','N','Default value','de.metas.ui.web',1,'The Default Checkbox indicates if this record will be used as a default value.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','Y','N','Standard',0,TO_TIMESTAMP('2016-10-27 17:39:22','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555312 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('7',0,0,0,540796,'N',TO_TIMESTAMP('2016-10-27 17:39:49','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','N','Y','N','Y','Y','N','N','N',0,'Dashboard item','L','WEBUI_DashboardItem',TO_TIMESTAMP('2016-10-27 17:39:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=540796 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
CREATE SEQUENCE WEBUI_DASHBOARDITEM_SEQ INCREMENT 1 MINVALUE 0 MAXVALUE 2147483647 START 1000000
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,554377,TO_TIMESTAMP('2016-10-27 17:39:49','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table WEBUI_DashboardItem',1,'Y','N','Y','Y','WEBUI_DashboardItem','N',1000000,TO_TIMESTAMP('2016-10-27 17:39:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555313,102,0,19,540796,'AD_Client_ID',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','de.metas.ui.web',10,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','N','N','N','N','Y','N','N','Y','N','N','Mandant',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555313 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555314,113,0,19,540796,'AD_Org_ID',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','de.metas.ui.web',10,'Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','N','N','N','Y','N','N','Y','N','N','Sektion',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555314 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555315,245,0,16,540796,'Created',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag erstellt wurde','de.metas.ui.web',29,'Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','Y','N','N','Y','N','N','Erstellt',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555315 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555316,246,0,18,110,540796,'CreatedBy',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag erstellt hat','de.metas.ui.web',10,'Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','Y','N','N','Y','N','N','Erstellt durch',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555316 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555317,348,0,20,540796,'IsActive',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv','de.metas.ui.web',1,'Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','N','N','N','N','Y','N','N','Y','N','Y','Aktiv',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555317 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555318,607,0,16,540796,'Updated',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde','de.metas.ui.web',29,'Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555318 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555319,608,0,18,110,540796,'UpdatedBy',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag aktualisiert hat','de.metas.ui.web',10,'Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert durch',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555319 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543218,0,'WEBUI_DashboardItem_ID',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y','Dashboard item','Dashboard item',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543218 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555320,543218,0,13,540796,'WEBUI_DashboardItem_ID',TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web',10,'Y','N','N','N','Y','Y','N','N','Y','N','N','Dashboard item',0,TO_TIMESTAMP('2016-10-27 17:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:39 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555320 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:43 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555321,543217,0,30,540796,'N','WEBUI_Dashboard_ID',TO_TIMESTAMP('2016-10-27 17:43:51','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.ui.web',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','Y','Y','N','N','N','N','N','N','Dashboard',0,TO_TIMESTAMP('2016-10-27 17:43:51','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:43 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555321 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:44 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555322,469,0,10,540796,'N','Name',TO_TIMESTAMP('2016-10-27 17:44:03','YYYY-MM-DD HH24:MI:SS'),100,'N','Alphanumeric identifier of the entity','de.metas.ui.web',255,'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Y','N','Y','N','N','N','N','N','N','N','Y','N','N','Y','N','Y','N','N','N','Y','N','Name',1,TO_TIMESTAMP('2016-10-27 17:44:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:44 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555322 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:44 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,555323,983,0,40,540796,'N','URL',TO_TIMESTAMP('2016-10-27 17:44:28','YYYY-MM-DD HH24:MI:SS'),100,'N','Full URL address - e.g. http://www.adempiere.org','de.metas.ui.web',2000,'The URL defines an fully qualified web address like http://www.adempiere.org','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','URL',0,TO_TIMESTAMP('2016-10-27 17:44:28','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Oct 27, 2016 5:44 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555323 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:45 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,ValueMin,Version) VALUES (0,555324,53709,0,11,540796,'N','ColumnNo',TO_TIMESTAMP('2016-10-27 17:45:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Dashboard content column number','de.metas.ui.web',14,'Dashboard content column number, not used by the swing client at the moment.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','Y','N','Column No',0,TO_TIMESTAMP('2016-10-27 17:45:14','YYYY-MM-DD HH24:MI:SS'),100,'0',0)
;
-- Oct 27, 2016 5:45 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555324 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:46 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Element_ID=633, ColumnName='X', Description='X-Dimension, z.B. Gang', FieldLength=10, Help='Die X-Dimension zeigt den Gang an, in dem sich ein Produkt befindet.', Name='Gang (X)',Updated=TO_TIMESTAMP('2016-10-27 17:46:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=555324
;
-- Oct 27, 2016 5:46 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=555324
;
-- Oct 27, 2016 5:46 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Gang (X)', Description='X-Dimension, z.B. Gang', Help='Die X-Dimension zeigt den Gang an, in dem sich ein Produkt befindet.' WHERE AD_Column_ID=555324 AND IsCentrallyMaintained='Y'
;
-- Oct 27, 2016 5:46 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,ValueMin,Version) VALUES (0,555325,635,0,11,540796,'N','Y',TO_TIMESTAMP('2016-10-27 17:46:25','YYYY-MM-DD HH24:MI:SS'),100,'N','Y-Dimension, z.B. Fach','de.metas.ui.web',10,'Die Y-Dimension zeigt das Fach an, in dem sich ein Produkt befindet.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','Y','N','Fach (Y)',0,TO_TIMESTAMP('2016-10-27 17:46:25','YYYY-MM-DD HH24:MI:SS'),100,'0',0)
;
-- Oct 27, 2016 5:46 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=555325 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 27, 2016 5:48 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window (AD_Client_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDefault,IsOneInstanceOnly,IsSOTrx,Name,Processing,Updated,UpdatedBy,WindowType,WinHeight,WinWidth) VALUES (0,0,540317,TO_TIMESTAMP('2016-10-27 17:48:19','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y','N','N','N','Y','User Dashboard (WebUI)','N',TO_TIMESTAMP('2016-10-27 17:48:19','YYYY-MM-DD HH24:MI:SS'),100,'M',0,0)
;
-- Oct 27, 2016 5:48 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Window_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=540317 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsCheckParentsChanged,IsGenericZoomTarget,IsGridModeOnly,IsInfoTab,IsInsertRecord,IsQueryOnLoad,IsReadOnly,IsRefreshAllOnActivate,IsSearchActive,IsSearchCollapsed,IsSingleRow,IsSortTab,IsTranslationTab,MaxQueryRecords,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,540768,540795,540317,TO_TIMESTAMP('2016-10-27 17:51:02','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','N','N','Y','N','Y','N','N','N','Y','Y','N','N','Y','Y','N','N','N',0,'Dashboard','N',10,0,TO_TIMESTAMP('2016-10-27 17:51:02','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=540768 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555303,557371,0,540768,TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.',10,'de.metas.ui.web','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','Y','N','N','N','N','N','Mandant',TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557371 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555304,557372,0,540768,TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten',10,'de.metas.ui.web','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','Y','Y','N','N','N','N','N','Sektion',TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557372 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555307,557373,0,540768,TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv',1,'de.metas.ui.web','Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','Y','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557373 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555310,557374,0,540768,TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.ui.web','Y','Y','N','N','N','N','N','N','N','Dashboard',TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557374 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555311,557375,0,540768,TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100,'Alphanumeric identifier of the entity',40,'de.metas.ui.web','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Y','Y','Y','N','N','N','N','N','Name',TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557375 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555312,557376,0,540768,TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100,'Default value',1,'de.metas.ui.web','The Default Checkbox indicates if this record will be used as a default value.','Y','Y','Y','N','N','N','N','N','Standard',TO_TIMESTAMP('2016-10-27 17:51:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557376 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2016-10-27 17:51:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557371
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-10-27 17:51:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557372
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2016-10-27 17:51:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557375
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-10-27 17:51:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557373
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2016-10-27 17:51:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557376
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2016-10-27 17:51:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557371
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2016-10-27 17:51:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557372
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2016-10-27 17:51:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557373
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-10-27 17:51:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557374
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2016-10-27 17:51:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557375
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2016-10-27 17:51:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557376
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2016-10-27 17:51:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557372
;
-- Oct 27, 2016 5:51 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2016-10-27 17:51:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557371
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsCheckParentsChanged,IsGenericZoomTarget,IsGridModeOnly,IsInfoTab,IsInsertRecord,IsQueryOnLoad,IsReadOnly,IsRefreshAllOnActivate,IsSearchActive,IsSearchCollapsed,IsSingleRow,IsSortTab,IsTranslationTab,MaxQueryRecords,Name,Parent_Column_ID,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,555321,0,540769,540796,540317,TO_TIMESTAMP('2016-10-27 17:53:00','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','N','N','Y','N','Y','N','N','N','Y','Y','N','N','Y','Y','N','N','N',0,'Item',555310,'N',20,1,TO_TIMESTAMP('2016-10-27 17:53:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=540769 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555313,557377,0,540769,TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.',10,'de.metas.ui.web','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','Y','N','N','N','N','N','Mandant',TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557377 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555314,557378,0,540769,TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten',10,'de.metas.ui.web','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','Y','Y','N','N','N','N','N','Sektion',TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557378 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555317,557379,0,540769,TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv',1,'de.metas.ui.web','Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','Y','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557379 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555320,557380,0,540769,TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.ui.web','Y','Y','N','N','N','N','N','N','N','Dashboard item',TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557380 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555321,557381,0,540769,TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.ui.web','Y','Y','Y','N','N','N','N','N','Dashboard',TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557381 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555322,557382,0,540769,TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100,'Alphanumeric identifier of the entity',255,'de.metas.ui.web','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Y','Y','Y','N','N','N','N','N','Name',TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557382 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555323,557383,0,540769,TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100,'Full URL address - e.g. http://www.adempiere.org',2000,'de.metas.ui.web','The URL defines an fully qualified web address like http://www.adempi<EMAIL>','Y','Y','Y','N','N','N','N','N','URL',TO_TIMESTAMP('2016-10-27 17:53:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557383 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555324,557384,0,540769,TO_TIMESTAMP('2016-10-27 17:53:08','YYYY-MM-DD HH24:MI:SS'),100,'X-Dimension, z.B. Gang',10,'de.metas.ui.web','Die X-Dimension zeigt den Gang an, in dem sich ein Produkt befindet.','Y','Y','Y','N','N','N','N','N','Gang (X)',TO_TIMESTAMP('2016-10-27 17:53:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557384 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,555325,557385,0,540769,TO_TIMESTAMP('2016-10-27 17:53:08','YYYY-MM-DD HH24:MI:SS'),100,'Y-Dimension, z.B. Fach',10,'de.metas.ui.web','Die Y-Dimension zeigt das Fach an, in dem sich ein Produkt befindet.','Y','Y','Y','N','N','N','N','N','Fach (Y)',TO_TIMESTAMP('2016-10-27 17:53:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557385 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557377
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557378
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557381
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557382
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557383
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557384
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557385
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2016-10-27 17:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557379
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557377
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557378
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557379
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557380
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557381
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557382
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557383
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557384
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2016-10-27 17:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557385
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLength=40,Updated=TO_TIMESTAMP('2016-10-27 17:53:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557382
;
-- Oct 27, 2016 5:53 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLength=40,Updated=TO_TIMESTAMP('2016-10-27 17:53:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557383
;
-- Oct 27, 2016 5:54 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2016-10-27 17:54:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557385
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('W',0,540735,0,540317,TO_TIMESTAMP('2016-10-27 17:58:55','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','WEBUI_Dashboard','Y','N','N','N','N','User Dashboard (WebUI)',TO_TIMESTAMP('2016-10-27 17:58:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=540735 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 540735, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=540735)
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=269 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=137 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=257 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=264 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=513 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=136 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=134 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:58 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=272, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540735 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=53203 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=586 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=53251 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=138 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=139 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=249 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=141 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=53455 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=216 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=589 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=140 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=300 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=142 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=295 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=53012 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=143 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=201 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=176 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=53086 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=239 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=517 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=499 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=53221 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=53222 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=53089 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=53090 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=53267 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=53568 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=540037 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=540492 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=50001 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=53266 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=540735 AND AD_Tree_ID=10
;
-- Oct 27, 2016 5:59 PM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=540575 AND AD_Tree_ID=10
;
-- Oct 28, 2016 11:41 AM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60,Updated=TO_TIMESTAMP('2016-10-28 11:41:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557374
;
-- Oct 28, 2016 11:41 AM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Included_Tab_ID=540769,Updated=TO_TIMESTAMP('2016-10-28 11:41:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557374
;
-- Oct 28, 2016 11:42 AM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsGridModeOnly='Y', IsSearchActive='N',Updated=TO_TIMESTAMP('2016-10-28 11:42:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540768
;
-- Oct 28, 2016 11:43 AM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsGridModeOnly='N', IsSearchActive='Y',Updated=TO_TIMESTAMP('2016-10-28 11:43:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540768
;
-- Oct 28, 2016 11:43 AM
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsGridModeOnly='Y', IsSearchActive='N',Updated=TO_TIMESTAMP('2016-10-28 11:43:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540769
;
|
-- ALTER TABLE users ADD COLUMN password VARCHAR(255) NOT NULL DEFAULT 'password';
-- ALTER TABLE users ADD COLUMN role INT REFERENCES roles DEFAULT 3;
CREATE TABLE roles (
id SERIAL PRIMARY KEY,
role_name VARCHAR(255)
);
INSERT INTO roles (role_name) VALUES ('Administrator');
INSERT INTO roles (role_name) VALUES ('Anonymous');
INSERT INTO roles (role_name) VALUES ('Moderator');
INSERT INTO roles (role_name) VALUES ('User');
-- ALTER TABLE roles RENAME COLUMN name TO role_name;
ALTER TABLE users ADD CONSTRAINT users_role_fkey FOREIGN KEY (role) REFERENCES roles;
ALTER TABLE users DROP CONSTRAINT users_role_fkey;
UPDATE users SET password = 1 WHERE id = 5;
UPDATE users SET password = 2 WHERE id = 8;
UPDATE users SET password = 1 WHERE id = 18;
UPDATE users SET password = 3 WHERE id = 19;
SELECT * FROM roles ORDER BY role_name;
INSERT INTO users (name, login, email, comments, password, role) VALUES ('Vit', 'rav', '<EMAIL>', 'foobar', 'pass', 1);
SELECT u.id,u.name,u.login,u.email,u.createdate,u.comments,u.password,r.role_name FROM users u
LEFT OUTER JOIN roles r ON u.role = r.id
WHERE u.id = 28
ORDER BY u.id;
create table users_new (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
login VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
country VARCHAR(255) NOT NULL,
city VARCHAR(255) NOT NULL,
createDate TIMESTAMP WITHOUT TIME ZONE DEFAULT now(),
comments VARCHAR(1000) NOT NULL,
password VARCHAR(255) NOT NULL,
role INT NOT NULL REFERENCES roles
);
INSERT INTO users_new (name, login, email, country, city, comments, password, role)
VALUES ('Vit', 'ad', '<EMAIL>', 'Russian Federation', 'Moscow', 'comments', 'ad', 1);
ALTER TABLE users_new RENAME TO users;
SELECT u.id,u.name,u.login,u.email,u.country,u.city,u.createdate,u.comments,u.password,r.role_name FROM users u
LEFT OUTER JOIN roles r ON u.role = r.id
|
<filename>Android-ServiceAPI-Database-PHP/Database/loghistory.sql
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 09, 2018 at 02:18 PM
-- Server version: 10.1.22-MariaDB
-- PHP Version: 5.2.17
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `u702024024_demo`
--
-- --------------------------------------------------------
--
-- Table structure for table `loghistory`
--
CREATE TABLE IF NOT EXISTS `loghistory` (
`name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`log` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `loghistory`
--
INSERT INTO `loghistory` (`name`, `log`) VALUES
('To Bach Tung Hiep', 'Toa do: (10.7895719,106.7024624) - Method: QRCode - Time: Wed Apr 04 16:59:05 GMT+07:00 2018$Toa do: (10.7895644,106.7024484) - Method: Quiz - Time: Wed Apr 04 18:48:50 GMT+07:00 2018$Diem danh: Nguyen Duc Vy - Toa do: (10.7895408,106.7024788) - Method: Check List - Time: Wed Apr 04 19:17:51 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7894696,106.7025362) - Method: Check List - Time: Wed Apr 04 19:18:03 GMT+07:00 2018$Diem danh: Le Quang Tien - Toa do: (10.789417,106.7024676) - Method: Check List - Time: Wed Apr 04 19:18:07 GMT+07:00 2018$Diem danh: Dang Dinh Quoc Trung - Toa do: (10.789417,106.7024676) - Method: Check List - Time: Wed Apr 04 19:18:08 GMT+07:00 2018$Diem danh: Le Van Tam - Toa do: (10.789417,106.7024676) - Method: Check List - Time: Wed Apr 04 19:18:12 GMT+07:00 2018$Toa do: (10.7896455,106.7024372) - Method: QRCode - Time: Thu Apr 05 22:30:57 GMT+07:00 2018$Toa do: (10.7894285,106.7024873) - Method: Quiz - Time: Thu Apr 05 22:32:44 GMT+07:00 2018$Toa do: (10.7624665,106.6820483) - Method: QRCode - Time: Fri Apr 06 08:10:23 GMT+07:00 2018$'),
('<NAME>', 'Diem danh: To Bach Tung Hiep - Toa do: (10.7891943,106.7026637) - Method: Face Detection - Time: Mon Apr 02 21:43:57 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7892488,106.7026373) - Method: Face Detection - Time: Mon Apr 02 21:44:47 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7894951,106.7024969) - Method: Face Detection - Time: Mon Apr 02 21:44:56 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7894951,106.7024969) - Method: Face Detection - Time: Mon Apr 02 22:02:37 GMT+07:00 2018$Diem danh: Le Van Tam - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 13:37:12 GMT+07:00 2018$Diem danh: Le Van Tam - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 13:37:27 GMT+07:00 2018$Diem danh: Le Van Tam - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 13:38:20 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 14:21:17 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 14:21:27 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 14:21:34 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7896455,106.7024372) - Method: Face Detection - Time: Tue Apr 03 19:57:50 GMT+07:00 2018$Diem danh: Le Van Tam - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 20:04:05 GMT+07:00 2018$Diem danh: Le Van Tam - Toa do: (Error,Error) - Method: Face Detection - Time: Tue Apr 03 20:04:50 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7893873,106.7025177) - Method: Face Detection - Time: Tue Apr 03 21:06:04 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7893873,106.7025177) - Method: Face Detection - Time: Tue Apr 03 21:11:04 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7893873,106.7025177) - Method: Face Detection - Time: Tue Apr 03 21:14:21 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7895437,106.7024186) - Method: Face Detection - Time: Tue Apr 03 21:16:35 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7896215,106.7024325) - Method: Face Detection - Time: Tue Apr 03 21:23:38 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7896455,106.7024372) - Method: Face Detection - Time: Tue Apr 03 21:29:21 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7896455,106.7024372) - Method: Face Detection - Time: Tue Apr 03 21:29:35 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7896455,106.7024372) - Method: Face Detection - Time: Tue Apr 03 21:39:22 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.789081,106.7030663) - Method: Face Detection - Time: Tue Apr 03 21:39:37 GMT+07:00 2018$Diem danh: Dang Dinh Quoc Trung - Toa do: (10.7896455,106.7024372) - Method: Check List - Time: Tue Apr 03 22:13:38 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7896335,106.7022943) - Method: Face Detection - Time: Thu Apr 05 14:27:08 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7624814,106.6820162) - Method: Face Detection - Time: Thu Apr 05 14:36:31 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7624814,106.6820162) - Method: Face Detection - Time: Thu Apr 05 14:36:50 GMT+07:00 2018$Diem danh: Le Quang Tien - Toa do: (10.7624814,106.6820162) - Method: Check List - Time: Thu Apr 05 14:38:09 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7624744,106.6820169) - Method: Face Detection - Time: Thu Apr 05 22:28:28 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7894693,106.7025056) - Method: Face Detection - Time: Thu Apr 05 22:29:37 GMT+07:00 2018$Diem danh: Dang Dinh Quoc Trung - Toa do: (10.7895419,106.7025147) - Method: Check List - Time: Thu Apr 05 22:29:57 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7893667,106.7025714) - Method: Face Detection - Time: Thu Apr 05 22:35:33 GMT+07:00 2018$Diem danh: To Bach Tung Hiep - Toa do: (10.7624774,106.682046) - Method: Face Detection - Time: Fri Apr 06 08:05:14 GMT+07:00 2018$Diem danh: Bui Nhat Khoi - Toa do: (10.7624614,106.6820569) - Method: Face Detection - Time: Fri Apr 06 08:06:01 GMT+07:00 2018$'),
('<NAME>', ''),
('<NAME>', ''),
('<NAME>', ''),
('Dao <NAME>', ''),
('<NAME>', ''),
('Ho Nhat Hoai', ''),
('<NAME>', ''),
('Che Vu Gia Hy', ''),
('Do Tri Khai', ''),
('Dam Tuan Khoi', ''),
('Bui Nhat Khoi', ''),
('Tran <NAME>h', ''),
('Pham <NAME>', ''),
('<NAME>', ''),
('<NAME>', ''),
('<NAME>', ''),
('<NAME>', ''),
('<NAME>', ''),
('<NAME>', ''),
('<NAME>', ''),
('<NAME>', '');
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/* Designing tests here based on data in taxform.sql. We may want to split
this out into another data script. --CT
*/
BEGIN;
\i Base.sql
-- Basic setup
INSERT INTO account_heading(id, accno ) VALUES (-255, '-billion');
INSERT INTO account (id, accno, category, heading ) VALUES (-255, '-billion', 'L', -255);
INSERT INTO account (id, accno, category, heading ) VALUES (-256, '-billiontest', 'L', -255);
INSERT INTO country_tax_form (country_id, form_name, id) VALUES (232, 'Testing Form', -511);
INSERT INTO parts (id, partnumber, description) values (-255, '-test1', 'test 1');
INSERT INTO parts (id, partnumber, description) values (-256, '-test2', 'test 2');
-- Set up an ECAs, for AP.
INSERT INTO entity_credit_account (id, entity_id, entity_class, meta_number, taxform_id, ar_ap_account_id) VALUES (-255, -100, 1, 'Test account 1', -511, -255);
INSERT INTO company (id, entity_id, legal_name) VALUES (-1024, -100, 'Testing Tax Form');
INSERT INTO entity_credit_account (id, entity_id, entity_class, meta_number, taxform_id, ar_ap_account_id) VALUES (-256, -101, 1, 'Test account 2', -511, -255);
INSERT INTO company (id, entity_id, legal_name) VALUES (-1025, -101, 'Testing Tax Form');
CREATE OR REPLACE FUNCTION date1() RETURNS date AS
$$
SELECT (extract('YEAR' from now())|| '-12-01')::date;
$$ language sql;
CREATE OR REPLACE FUNCTION date2() RETURNS date AS
$$
SELECT ((extract('YEAR' from now())|| '-12-01')::date
+ '1 year'::interval)::date;
$$ language sql;
INSERT INTO account_link (account_id, description)
values (-1000, 'AP');
UPDATE account SET category = 'L' WHERE id = -1000;
INSERT INTO account_link (account_id, description)
values (-1001, 'AP_amount');
UPDATE account SET category = 'E' WHERE id = -1001;
INSERT INTO account_link (account_id, description)
values (-1002, 'AP_paid');
UPDATE account SET category = 'A' WHERE id = -1002;
--AP transactions.
--1) AP transaction: Reportable amount 1000, non-reportable amount $10, paid
-- in full in current year. id -1024
INSERT INTO ap (id, transdate, amount, netamount, curr, entity_credit_account,
approved)
values(-1024, date1(), 1010, 1010, 'USD', -255, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1024, -1000, date1(), 1010, true, -111);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1024, -1001, date1(), -1000, true, -112);
INSERT INTO ac_tax_form(entry_id, reportable) values (-112, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1024, -1001, date1(), -10, true, -113);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1024, -1002, date1(), 1010, true, -114);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1024, -1000, date1(), -1010, true, -115);
INSERT INTO test_result(test_name, success)
SELECT '-1024, cash impact 1 across all dates', sum(portion) = 1
FROM cash_impact
WHERE id = -1024;
INSERT INTO test_result(test_name, success)
SELECT '-1024, one cash impact row', count(*) = 1
FROM cash_impact
WHERE id = -1024;
-- 2) AP transaction: Reportable amount $1000, non-reportable amount $10,
-- partially paid ($500) in current year -1025
INSERT INTO ap (id, transdate, amount, netamount, curr, entity_credit_account,
approved)
values(-1025, date1(), 1010, 1010, 'USD', -255, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1025, -1000, date1(), 1010, true, -121);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1025, -1001, date1(), -1000, true, -122);
INSERT INTO ac_tax_form(entry_id, reportable) values (-122, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1025, -1001, date1(), -10, true, -123);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1025, -1002, date1(), 505, true, -124);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1025, -1000, date1(), -505, true, -125);
INSERT INTO test_result(test_name, success)
SELECT '-1025, cash impact 0.5 across all dates', sum(portion) = 0.5
FROM cash_impact
WHERE id = -1025;
INSERT INTO test_result(test_name, success)
SELECT '-1025, one cash impact row', count(*) = 1
FROM cash_impact
WHERE id = -1025;
-- 3)_AP Transaction: Reportable amount $1000, non-reportable amount $10,
-- paid $500 currnet year, $500 in future year -1026
INSERT INTO ap (id, transdate, amount, netamount, curr, entity_credit_account,
approved)
values(-1026, date1(), 1010, 1010, 'USD', -255, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1026, -1000, date1(), 1010, true, -131);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1026, -1001, date1(), -1000, true, -132);
INSERT INTO ac_tax_form(entry_id, reportable) values (-132, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1026, -1001, date1(), -10, true, -133);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1026, -1002, date1(), 505, true, -134);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1026, -1000, date1(), -505, true, -135);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1026, -1002, date2(), 505, true, -136);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1026, -1000, date2(), -505, true, -137);
INSERT INTO test_result(test_name, success)
SELECT '-1026, cash impact 1 across all dates', sum(portion) = 1
FROM cash_impact
WHERE id = -1026;
INSERT INTO test_result(test_name, success)
SELECT '-1026, two cash impact rows', count(*) = 2
FROM cash_impact
WHERE id = -1026;
INSERT INTO test_result(test_name, success)
SELECT '-1026, cash impact 0.5 on date 1', portion=0.5
FROM cash_impact
WHERE id = -1026 and transdate = date1();
INSERT INTO test_result(test_name, success)
SELECT '-1026, cash impact 0.5 on date 2', portion=0.5
FROM cash_impact
WHERE id = -1026 and transdate = date2();
-- 4) AP transaction: Reportable amount 1000, non-reportable amount $10, paid
-- $500 currnet year, $500 in future year -1027, to second vendor
-- Vendor Invoices.
INSERT INTO ap (id, transdate, amount, netamount, curr, entity_credit_account,
approved)
values(-1027, date1(), 1010, 1010, 'USD', -256, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1027, -1000, date1(), 1010, true, -141);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1027, -1001, date1(), -1000, true, -142);
INSERT INTO ac_tax_form(entry_id, reportable) values (-142, true);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1027, -1001, date1(), -10, true, -143);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1027, -1002, date1(), 1010, true, -144);
INSERT INTO acc_trans(trans_id, chart_id, transdate, amount, approved, entry_id)
VALUES (-1027, -1000, date1(), -1010, true, -145);
INSERT INTO test_result(test_name, success)
SELECT '-1027, cash impact 1 across all dates', sum(portion) = 1
FROM cash_impact
WHERE id = -1027;
INSERT INTO test_result(test_name, success)
SELECT '-1027, one cash impact row', count(*) = 1
FROM cash_impact
WHERE id = -1027;
INSERT INTO test_result(test_name, success)
SELECT 'Account -1001 shows up in accrual income statement', count(*) = 1
FROM pnl__income_statement_accrual(date1(), date2() - 1, 'none', ARRAY[]::int[], null)
WHERE account_id = -1001;
INSERT INTO test_result(test_name, success)
SELECT 'Account -1001 accrual total -4040', amount = -4040
FROM pnl__income_statement_accrual(date1(), date2() - 1, 'none', ARRAY[]::int[], null)
WHERE account_id = -1001;
INSERT INTO test_result(test_name, success)
SELECT 'Account -1001 does not show up in future accrual pnl', count(*) = 0
FROM pnl__income_statement_accrual(date2(), date2() + 365, 'none', ARRAY[]::int[], null)
WHERE account_id = -1001;
INSERT INTO test_result(test_name, success)
SELECT 'Account -1001 shows up in cash income statement', count(*) = 1
FROM pnl__income_statement_cash(date1(), date2() - 1, 'none', ARRAY[]::int[], null)
WHERE account_id = -1001;
INSERT INTO test_result(test_name, success)
SELECT 'Account -1001 cash total -3030', amount = -3030
FROM pnl__income_statement_cash(date1(), date2() - 1, 'none', ARRAY[]::int[], null)
WHERE account_id = -1001;
SELECT * FROM pnl__income_statement_cash(date1(), date2() - 1, 'none', ARRAY[]::int[], null);
INSERT INTO test_result(test_name, success)
SELECT 'Account -1001 shows up in future cash pnl', count(*) = 1
FROM pnl__income_statement_cash(date2() - 5, date2() + 20, 'none', ARRAY[]::int[], null)
WHERE account_id = -1001;
INSERT INTO test_result(test_name, success)
SELECT 'Account -1001 future cash total -505', sum(amount) = -505
FROM pnl__income_statement_cash(date2() - 5, date2() + 20, 'none', ARRAY[]::int[], null)
WHERE account_id = -1001;
SELECT * FROM test_result;
SELECT (select count(*) from test_result where success is true)
|| ' tests passed and '
|| (select count(*) from test_result where success is not true)
|| ' failed' as message;
ROLLBACK;
|
load-display pandagl
win-size 1366 768
fullscreen 1
particles-enabled #t
audio-volume 0.0
audio-mute #f
|
<reponame>wei-ding/Platform
CREATE TABLE IF NOT EXISTS `searchparameters` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`jobId` int(11) NOT NULL,
`key` varchar(200) NOT NULL,
`value` varchar(20000) DEFAULT NULL,
`groupId` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
CONSTRAINT `fk_searchrepository_id` FOREIGN KEY (`jobId`) REFERENCES `searchrepository` (`id`)
) DEFAULT CHARSET=utf8;
|
CREATE TABLE [dbo].[CategoryValueTranslation](
[CategoryValueId] [int] NOT NULL,
[IsoLanguageId] [int] NOT NULL,
[Value] [nvarchar](50) NOT NULL,
)
GO
ALTER TABLE [dbo].[CategoryValueTranslation] WITH NOCHECK ADD CONSTRAINT [FK.CategoryValueTranslation_app.CategoryValue_CategoryValueId] FOREIGN KEY([CategoryValueId])
REFERENCES [dbo].[CategoryValue] ([Id])
GO
ALTER TABLE [dbo].[CategoryValueTranslation] CHECK CONSTRAINT [FK.CategoryValueTranslation_app.CategoryValue_CategoryValueId]
GO
ALTER TABLE [dbo].[CategoryValueTranslation] WITH NOCHECK ADD CONSTRAINT [FK.CategoryValueTranslation_app.IsoLanguage_IsoLanguageId] FOREIGN KEY([IsoLanguageId])
REFERENCES [dbo].[IsoLanguage] ([Id])
GO
ALTER TABLE [dbo].[CategoryValueTranslation] CHECK CONSTRAINT [FK.CategoryValueTranslation_app.IsoLanguage_IsoLanguageId]
GO
|
USE commontable;
DELETE sc_database FROM sc_database;
INSERT INTO `sc_database` VALUES ('1', 'com', 'commontable', '通用库', 1, 1, 1);
INSERT INTO `sc_database` VALUES ('12', 'activemq', 'activemq', '消息数据库', 1, 1, 12);
INSERT INTO `sc_database` VALUES ('2', 'wf', 'activiti', '工作流', 1, 1, 2);
INSERT INTO `sc_database` VALUES ('3', 'shiro', 'shirotable', '权限库', 1, 1, 3);
INSERT INTO `sc_database` VALUES ('4', 'rest', 'restaurant', '餐厅库', 1, 0, 4);
INSERT INTO `sc_database` VALUES ('5', 'qz', 'quartz', '计划调度', 1, 1, 5);
INSERT INTO `sc_database` VALUES ('6', 'kylin', 'kylin', '报表库', 0, 0, 6);
|
<filename>rpm/src/main/migrations/005_varchar_size_fix_2.sql
-- Target version: v2.2.0
-- SHOULD be executed when upgrading to SlipStream v2.2.1
alter table MODULEPARAMETER alter column VALUE varchar(65536);
alter table NODEPARAMETER alter column VALUE varchar(65536);
alter table RUNPARAMETER alter column VALUE varchar(65536);
alter table RUNTIMEPARAMETER alter column VALUE varchar(65536);
alter table SERVICECATALOGPARAMETER alter column VALUE varchar(65536);
alter table SERVICECONFIGURATIONPARAMETER alter column VALUE varchar(65536);
alter table USERPARAMETER alter column VALUE varchar(65536);
|
<reponame>adrianmahjour/db2-samples
--
-- V8 Replication Migration backup script VERSION 1.51,
-- generated "May 5 2003" "10:45:31" by CPP for "DB2 UDB V8" server:
--
-- DO NOT DELETE ANY SQL STATEMENTS FROM THIS SCRIPT.
--
-- Users must either create the tablespaces BACKUPTS, UOWTS, and OTHERTS
-- before running this script, or change these tablespace names to
-- existing ones.
--
-- For example, to change all tablespace names to userspace1
-- with vi editor:
--
-- enter: :%s/in [A-Z]*TS/in userspace1/
--
-- At the end of migration, when it is clear that fallback is not
-- required, the BACKUP schema (and its tables) should be dropped to
-- clean up.
--
-- All Replication control tables and the CD tables will be
-- backed up to tablespace BACKUPTS.
--
-- Tablespace UOWTS and OTHERTS are the tablespaces where
-- BACKUP.IBMSNV8 tables need to be created by this script.
-- Migration will create the new (migrated) DPROPR V8 control tables
-- in these tablespaces also.
--
-- Backup tablespaces must exist before backup tables can be created.
--
-- See "CREATE TABLESPACE" in your SQL Reference.
--
-- Choose parameters to optimize backup security rather than performance.
--
-- To estimate BACKUPTS tablespace size required, run a script
-- similar to this:
--
--
-- db2 connect to $1 user $2 using $3
--
-- db2 'drop table asn.ibmsnap_temp'
--
-- db2 "create table asn.ibmsnap_temp \
-- ( tabschema varchar( 30 ), tabname varchar( 128 ) )"
--
-- db2 "insert into asn.ibmsnap_temp \
-- select rtrim( tabschema ), rtrim( tabname ) \
-- from syscat.tables where tabschema = 'ASN'"
--
-- db2 "insert into asn.ibmsnap_temp \
-- select rtrim( tabschema ), rtrim( tabname ) \
-- from syscat.tables \
-- where type = 'T' \
-- and char( rtrim( tabschema ) || ',' || tabname ) \
-- in ( select rtrim( cd_owner ) || ',' || cd_table \
-- from asn.ibmsnap_register )"
--
-- db2 'commit'
--
-- db2 "select 'runstats on table ' || tabschema || '.' || tabname || ' ;' \
-- from asn.ibmsnap_temp" | \
-- perl -e "while(<>) { s/ *$// ; print if /^runstats / ; }" > temp.clp
--
-- db2 -tf temp.clp
--
-- # Round tablespace estimate up to next multiple of 100, times 3:
--
-- db2 "select 'create tablespace TS managed by database using ( file ''FILE'' ' \
-- || rtrim( char( ( sum( abs ( fpages ) ) / 100 + 10 ) * 300 ) ) \
-- || ' ) extentsize 2' \
-- from syscat.tables where ( tabschema, tabname ) \
-- in ( select tabschema, tabname from asn.ibmsnap_temp ) "
--
-- db2 'drop table asn.ibmsnap_temp'
--
------------------------------------------------------------------------
-- The DB2 V8 Replication tables and indices:
------------------------------------------------------------------------
CREATE TABLE BACKUP.IBMSNV8_CAPSCHEMAS (
CAP_SCHEMA_NAME VARCHAR(030) )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_CAPSCHEMAX
ON BACKUP.IBMSNV8_CAPSCHEMAS (
CAP_SCHEMA_NAME ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_RESTART (
MAX_COMMITSEQ CHAR(010) FOR BIT DATA NOT NULL ,
MAX_COMMIT_TIME TIMESTAMP NOT NULL ,
MIN_INFLIGHTSEQ CHAR(010) FOR BIT DATA NOT NULL ,
CURR_COMMIT_TIME TIMESTAMP NOT NULL ,
CAPTURE_FIRST_SEQ CHAR(010) FOR BIT DATA NOT NULL )
in OTHERTS ;
CREATE TABLE BACKUP.IBMSNV8_REGISTER (
SOURCE_OWNER VARCHAR(030) NOT NULL ,
SOURCE_TABLE VARCHAR(128) NOT NULL ,
SOURCE_VIEW_QUAL SMALLINT NOT NULL ,
GLOBAL_RECORD CHAR(001) NOT NULL ,
SOURCE_STRUCTURE SMALLINT NOT NULL ,
SOURCE_CONDENSED CHAR(001) NOT NULL ,
SOURCE_COMPLETE CHAR(001) NOT NULL ,
CD_OWNER VARCHAR(030) ,
CD_TABLE VARCHAR(128) ,
PHYS_CHANGE_OWNER VARCHAR(030) ,
PHYS_CHANGE_TABLE VARCHAR(128) ,
CD_OLD_SYNCHPOINT CHAR(010) FOR BIT DATA ,
CD_NEW_SYNCHPOINT CHAR(010) FOR BIT DATA ,
DISABLE_REFRESH SMALLINT NOT NULL ,
CCD_OWNER VARCHAR(030) ,
CCD_TABLE VARCHAR(128) ,
CCD_OLD_SYNCHPOINT CHAR(010) FOR BIT DATA ,
SYNCHPOINT CHAR(010) FOR BIT DATA ,
SYNCHTIME TIMESTAMP ,
CCD_CONDENSED CHAR(001) ,
CCD_COMPLETE CHAR(001) ,
ARCH_LEVEL CHAR(004) NOT NULL ,
DESCRIPTION CHAR(254) ,
BEFORE_IMG_PREFIX VARCHAR(004) ,
CONFLICT_LEVEL CHAR(001) ,
CHG_UPD_TO_DEL_INS CHAR(001) ,
CHGONLY CHAR(001) ,
RECAPTURE CHAR(001) ,
OPTION_FLAGS CHAR(004) NOT NULL ,
STOP_ON_ERROR CHAR(001) ,
STATE CHAR(001) ,
STATE_INFO CHAR(008) )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_REGISTERX
ON BACKUP.IBMSNV8_REGISTER (
SOURCE_OWNER ASC ,
SOURCE_TABLE ASC ,
SOURCE_VIEW_QUAL ASC ) ;
CREATE INDEX BACKUP.IBMSNAP_REGISTERX1
ON BACKUP.IBMSNV8_REGISTER (
PHYS_CHANGE_OWNER ASC ,
PHYS_CHANGE_TABLE ASC ) ;
CREATE INDEX BACKUP.IBMSNAP_REGISTERX2
ON BACKUP.IBMSNV8_REGISTER (
GLOBAL_RECORD ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_PRUNCNTL (
TARGET_SERVER CHAR(018) NOT NULL ,
TARGET_OWNER VARCHAR(030) NOT NULL ,
TARGET_TABLE VARCHAR(128) NOT NULL ,
SYNCHTIME TIMESTAMP ,
SYNCHPOINT CHAR(010) FOR BIT DATA ,
SOURCE_OWNER VARCHAR(030) NOT NULL ,
SOURCE_TABLE VARCHAR(128) NOT NULL ,
SOURCE_VIEW_QUAL SMALLINT NOT NULL ,
APPLY_QUAL CHAR(018) NOT NULL ,
SET_NAME CHAR(018) NOT NULL ,
CNTL_SERVER CHAR(018) NOT NULL ,
TARGET_STRUCTURE SMALLINT NOT NULL ,
CNTL_ALIAS CHAR(008) ,
PHYS_CHANGE_OWNER VARCHAR(030) ,
PHYS_CHANGE_TABLE VARCHAR(128) ,
MAP_ID VARCHAR(010) NOT NULL )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_PRUNCNTLX
ON BACKUP.IBMSNV8_PRUNCNTL (
SOURCE_OWNER ASC ,
SOURCE_TABLE ASC ,
SOURCE_VIEW_QUAL ASC ,
APPLY_QUAL ASC ,
SET_NAME ASC ,
TARGET_SERVER ASC ,
TARGET_TABLE ASC ,
TARGET_OWNER ASC ) ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_PRUNCNTLX1
ON BACKUP.IBMSNV8_PRUNCNTL (
MAP_ID ASC ) ;
CREATE INDEX BACKUP.IBMSNAP_PRUNCNTLX2
ON BACKUP.IBMSNV8_PRUNCNTL (
PHYS_CHANGE_OWNER ASC ,
PHYS_CHANGE_TABLE ASC ) ;
CREATE INDEX BACKUP.IBMSNAP_PRUNCNTLX3
ON BACKUP.IBMSNV8_PRUNCNTL (
APPLY_QUAL ASC ,
SET_NAME ASC ,
TARGET_SERVER ASC
) ;
CREATE TABLE BACKUP.IBMSNV8_PRUNE_SET (
TARGET_SERVER CHAR(018) NOT NULL ,
APPLY_QUAL CHAR(018) NOT NULL ,
SET_NAME CHAR(018) NOT NULL ,
SYNCHTIME TIMESTAMP ,
SYNCHPOINT CHAR(010) FOR BIT DATA NOT NULL )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_PRUNE_SETX
ON BACKUP.IBMSNV8_PRUNE_SET (
TARGET_SERVER ASC ,
APPLY_QUAL ASC ,
SET_NAME ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_CAPTRACE (
OPERATION CHAR(008) NOT NULL ,
TRACE_TIME TIMESTAMP NOT NULL ,
DESCRIPTION VARCHAR(1024) NOT NULL )
in OTHERTS ;
CREATE INDEX BACKUP.IBMSNAP_CAPTRACEX
ON BACKUP.IBMSNV8_CAPTRACE (
TRACE_TIME ASC
) ;
CREATE TABLE BACKUP.IBMSNV8_CAPPARMS (
RETENTION_LIMIT INT ,
LAG_LIMIT INT ,
COMMIT_INTERVAL INT ,
PRUNE_INTERVAL INT ,
TRACE_LIMIT INT ,
MONITOR_LIMIT INT ,
MONITOR_INTERVAL INT ,
MEMORY_LIMIT SMALLINT ,
REMOTE_SRC_SERVER CHAR(018) ,
AUTOPRUNE CHAR(001) ,
TERM CHAR(001) ,
AUTOSTOP CHAR(001) ,
LOGREUSE CHAR(001) ,
LOGSTDOUT CHAR(001) ,
SLEEP_INTERVAL SMALLINT ,
CAPTURE_PATH VARCHAR(1040) ,
STARTMODE VARCHAR(010) )
in OTHERTS ;
CREATE TABLE BACKUP.IBMSNV8_UOW (
IBMSNAP_UOWID CHAR(010) FOR BIT DATA NOT NULL ,
IBMSNAP_COMMITSEQ CHAR(010) FOR BIT DATA NOT NULL ,
IBMSNAP_LOGMARKER TIMESTAMP NOT NULL ,
IBMSNAP_AUTHTKN VARCHAR(030) NOT NULL ,
IBMSNAP_AUTHID VARCHAR(030) NOT NULL ,
IBMSNAP_REJ_CODE CHAR(001) NOT NULL WITH DEFAULT ,
IBMSNAP_APPLY_QUAL CHAR(018) NOT NULL WITH DEFAULT )
in UOWTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_UOWX
ON BACKUP.IBMSNV8_UOW (
IBMSNAP_COMMITSEQ ASC ,
IBMSNAP_LOGMARKER ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_CAPENQ (
LOCKNAME CHAR(009) )
in OTHERTS ;
CREATE TABLE BACKUP.IBMSNV8_SIGNAL (
SIGNAL_TIME TIMESTAMP NOT NULL WITH DEFAULT ,
SIGNAL_TYPE VARCHAR(030) NOT NULL ,
SIGNAL_SUBTYPE VARCHAR(030) ,
SIGNAL_INPUT_IN VARCHAR(500) ,
SIGNAL_STATE CHAR(001) NOT NULL ,
SIGNAL_LSN CHAR(010) FOR BIT DATA )
in OTHERTS DATA CAPTURE CHANGES ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_SIGNALX
ON BACKUP.IBMSNV8_SIGNAL (
SIGNAL_TIME ASC
) ;
CREATE TABLE BACKUP.IBMSNV8_CAPMON (
MONITOR_TIME TIMESTAMP NOT NULL ,
RESTART_TIME TIMESTAMP NOT NULL ,
CURRENT_MEMORY INT NOT NULL ,
CD_ROWS_INSERTED INT NOT NULL ,
RECAP_ROWS_SKIPPED INT NOT NULL ,
TRIGR_ROWS_SKIPPED INT NOT NULL ,
CHG_ROWS_SKIPPED INT NOT NULL ,
TRANS_PROCESSED INT NOT NULL ,
TRANS_SPILLED INT NOT NULL ,
MAX_TRANS_SIZE INT NOT NULL ,
LOCKING_RETRIES INT NOT NULL ,
JRN_LIB CHAR(010) ,
JRN_NAME CHAR(010) ,
LOGREADLIMIT INT NOT NULL ,
CAPTURE_IDLE INT NOT NULL ,
SYNCHTIME TIMESTAMP NOT NULL )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_CAPMONX
ON BACKUP.IBMSNV8_CAPMON (
MONITOR_TIME ASC
) ;
CREATE TABLE BACKUP.IBMSNV8_PRUNE_LOCK (
DUMMY CHAR(001) )
in OTHERTS ;
CREATE TABLE BACKUP.IBMSNV8_APPENQ (
APPLY_QUAL CHAR(018) )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_APPENQX
ON BACKUP.IBMSNV8_APPENQ (
APPLY_QUAL ASC
) ;
CREATE TABLE BACKUP.IBMSNV8_SUBS_SET (
APPLY_QUAL CHAR(018) NOT NULL ,
SET_NAME CHAR(018) NOT NULL ,
SET_TYPE CHAR(001) NOT NULL ,
WHOS_ON_FIRST CHAR(001) NOT NULL ,
ACTIVATE SMALLINT NOT NULL ,
SOURCE_SERVER CHAR(018) NOT NULL ,
SOURCE_ALIAS CHAR(008) ,
TARGET_SERVER CHAR(018) NOT NULL ,
TARGET_ALIAS CHAR(008) ,
STATUS SMALLINT NOT NULL ,
LASTRUN TIMESTAMP NOT NULL ,
REFRESH_TYPE CHAR(001) NOT NULL ,
SLEEP_MINUTES INT ,
EVENT_NAME CHAR(018) ,
LASTSUCCESS TIMESTAMP ,
SYNCHPOINT CHAR(010) FOR BIT DATA ,
SYNCHTIME TIMESTAMP ,
CAPTURE_SCHEMA VARCHAR(030) NOT NULL ,
TGT_CAPTURE_SCHEMA VARCHAR(030) ,
FEDERATED_SRC_SRVR VARCHAR(018) ,
FEDERATED_TGT_SRVR VARCHAR(018) ,
JRN_LIB CHAR(010) ,
JRN_NAME CHAR(010) ,
OPTION_FLAGS CHAR(004) NOT NULL ,
COMMIT_COUNT SMALLINT ,
MAX_SYNCH_MINUTES SMALLINT ,
AUX_STMTS SMALLINT NOT NULL ,
ARCH_LEVEL CHAR(004) NOT NULL )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_SUBS_SETX
ON BACKUP.IBMSNV8_SUBS_SET (
APPLY_QUAL ASC ,
SET_NAME ASC ,
WHOS_ON_FIRST ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_SUBS_MEMBR (
APPLY_QUAL CHAR(018) NOT NULL ,
SET_NAME CHAR(018) NOT NULL ,
WHOS_ON_FIRST CHAR(001) NOT NULL ,
SOURCE_OWNER VARCHAR(030) NOT NULL ,
SOURCE_TABLE VARCHAR(128) NOT NULL ,
SOURCE_VIEW_QUAL SMALLINT NOT NULL ,
TARGET_OWNER VARCHAR(030) NOT NULL ,
TARGET_TABLE VARCHAR(128) NOT NULL ,
TARGET_CONDENSED CHAR(001) NOT NULL ,
TARGET_COMPLETE CHAR(001) NOT NULL ,
TARGET_STRUCTURE SMALLINT NOT NULL ,
PREDICATES VARCHAR(1024) ,
MEMBER_STATE CHAR(001) ,
TARGET_KEY_CHG CHAR(001) NOT NULL ,
UOW_CD_PREDICATES VARCHAR(1024) ,
JOIN_UOW_CD CHAR(001) ,
LOADX_TYPE SMALLINT ,
LOADX_SRC_N_OWNER VARCHAR(030) ,
LOADX_SRC_N_TABLE VARCHAR(128) )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_SUBS_MEMBX
ON BACKUP.IBMSNV8_SUBS_MEMBR (
APPLY_QUAL ASC ,
SET_NAME ASC ,
WHOS_ON_FIRST ASC ,
SOURCE_OWNER ASC ,
SOURCE_TABLE ASC ,
SOURCE_VIEW_QUAL ASC ,
TARGET_OWNER ASC ,
TARGET_TABLE ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_SUBS_COLS (
APPLY_QUAL CHAR(018) NOT NULL ,
SET_NAME CHAR(018) NOT NULL ,
WHOS_ON_FIRST CHAR(001) NOT NULL ,
TARGET_OWNER VARCHAR(030) NOT NULL ,
TARGET_TABLE VARCHAR(128) NOT NULL ,
COL_TYPE CHAR(001) NOT NULL ,
TARGET_NAME VARCHAR(030) NOT NULL ,
IS_KEY CHAR(001) NOT NULL ,
COLNO SMALLINT NOT NULL ,
EXPRESSION VARCHAR(254) NOT NULL )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_SUBS_COLSX
ON BACKUP.IBMSNV8_SUBS_COLS (
APPLY_QUAL ASC ,
SET_NAME ASC ,
WHOS_ON_FIRST ASC ,
TARGET_OWNER ASC ,
TARGET_TABLE ASC ,
TARGET_NAME ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_SUBS_STMTS (
APPLY_QUAL CHAR(018) NOT NULL ,
SET_NAME CHAR(018) NOT NULL ,
WHOS_ON_FIRST CHAR(001) NOT NULL ,
BEFORE_OR_AFTER CHAR(001) NOT NULL ,
STMT_NUMBER SMALLINT NOT NULL ,
EI_OR_CALL CHAR(001) NOT NULL ,
SQL_STMT VARCHAR(1024) ,
ACCEPT_SQLSTATES VARCHAR(050) )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_SUBS_STMTX
ON BACKUP.IBMSNV8_SUBS_STMTS (
APPLY_QUAL ASC ,
SET_NAME ASC ,
WHOS_ON_FIRST ASC ,
BEFORE_OR_AFTER ASC ,
STMT_NUMBER ASC )
;
CREATE TABLE BACKUP.IBMSNV8_SUBS_EVENT (
EVENT_NAME CHAR(018) NOT NULL ,
EVENT_TIME TIMESTAMP NOT NULL ,
END_SYNCHPOINT CHAR(010) FOR BIT DATA ,
END_OF_PERIOD TIMESTAMP )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_SUBS_EVENX
ON BACKUP.IBMSNV8_SUBS_EVENT (
EVENT_NAME ASC ,
EVENT_TIME ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_APPLYTRAIL (
APPLY_QUAL CHAR(018) NOT NULL ,
SET_NAME CHAR(018) NOT NULL ,
SET_TYPE CHAR(001) NOT NULL ,
WHOS_ON_FIRST CHAR(001) NOT NULL ,
ASNLOAD CHAR(001) ,
FULL_REFRESH CHAR(001) ,
EFFECTIVE_MEMBERS INT ,
SET_INSERTED INT NOT NULL ,
SET_DELETED INT NOT NULL ,
SET_UPDATED INT NOT NULL ,
SET_REWORKED INT NOT NULL ,
SET_REJECTED_TRXS INT NOT NULL ,
STATUS SMALLINT NOT NULL ,
LASTRUN TIMESTAMP NOT NULL ,
LASTSUCCESS TIMESTAMP ,
SYNCHPOINT CHAR(010) FOR BIT DATA ,
SYNCHTIME TIMESTAMP ,
SOURCE_SERVER CHAR(018) NOT NULL ,
SOURCE_ALIAS CHAR(008) ,
SOURCE_OWNER VARCHAR(030) ,
SOURCE_TABLE VARCHAR(128) ,
SOURCE_VIEW_QUAL SMALLINT ,
TARGET_SERVER CHAR(018) NOT NULL ,
TARGET_ALIAS CHAR(008) ,
TARGET_OWNER VARCHAR(030) NOT NULL ,
TARGET_TABLE VARCHAR(128) NOT NULL ,
CAPTURE_SCHEMA VARCHAR(030) NOT NULL ,
TGT_CAPTURE_SCHEMA VARCHAR(030) ,
FEDERATED_SRC_SRVR VARCHAR(018) ,
FEDERATED_TGT_SRVR VARCHAR(018) ,
JRN_LIB CHAR(010) ,
JRN_NAME CHAR(010) ,
COMMIT_COUNT SMALLINT ,
OPTION_FLAGS CHAR(004) NOT NULL ,
EVENT_NAME CHAR(018) ,
ENDTIME TIMESTAMP NOT NULL WITH DEFAULT ,
SOURCE_CONN_TIME TIMESTAMP ,
SQLSTATE CHAR(005) ,
SQLCODE INT ,
SQLERRP CHAR(008) ,
SQLERRM VARCHAR(070) ,
APPERRM VARCHAR(760) )
in OTHERTS ;
CREATE INDEX BACKUP.IBMSNAP_APPLYTRLX
ON BACKUP.IBMSNV8_APPLYTRAIL (
LASTRUN DESC ,
APPLY_QUAL ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_COMPENSATE (
APPLY_QUAL CHAR(018) NOT NULL ,
MEMBER SMALLINT NOT NULL ,
INTENTSEQ CHAR(010) FOR BIT DATA NOT NULL ,
OPERATION CHAR(001) NOT NULL )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_COMPENSATX
ON BACKUP.IBMSNV8_COMPENSATE (
APPLY_QUAL ASC ,
MEMBER ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_APPLYTRACE (
APPLY_QUAL CHAR(018) NOT NULL ,
TRACE_TIME TIMESTAMP NOT NULL ,
OPERATION CHAR(008) NOT NULL ,
DESCRIPTION VARCHAR(1024) NOT NULL )
in OTHERTS ;
CREATE INDEX BACKUP.IBMSNAP_APPLYTRACX
ON BACKUP.IBMSNV8_APPLYTRACE (
APPLY_QUAL ,
TRACE_TIME ASC ) ;
CREATE TABLE BACKUP.IBMSNV8_APPPARMS (
APPLY_QUAL CHAR(018) NOT NULL ,
APPLY_PATH VARCHAR(1040) ,
COPYONCE CHAR(001) ,
DELAY INT ,
ERRWAIT INT ,
INAMSG CHAR(001) ,
LOADXIT CHAR(001) ,
LOGREUSE CHAR(001) ,
LOGSTDOUT CHAR(001) ,
NOTIFY CHAR(001) ,
OPT4ONE CHAR(001) ,
SLEEP CHAR(001) ,
SQLERRCONTINUE CHAR(001) ,
SPILLFILE VARCHAR(010) ,
TERM CHAR(001) ,
TRLREUSE CHAR(001) )
in OTHERTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_APPPARMSX
ON BACKUP.IBMSNV8_APPPARMS (
APPLY_QUAL ASC ) ;
------------------------------------------------------------------------
-- System-independent backups of key parts of system catalogs:
------------------------------------------------------------------------
CREATE TABLE BACKUP.IBMSNAP_MIGRATION (
KIND CHAR(7),
STATE INTEGER,
WHAT8 CHAR(5),
WHAT4C CHAR(5),
WHAT1 CHAR(5),
TIME TIMESTAMP,
TABLE_SPACE VARCHAR(100)
)
in BACKUPTS ;
-- Insert 'CONTROL' row first to begin step 1.
INSERT INTO BACKUP.IBMSNAP_MIGRATION VALUES (
'CONTROL', 1, '-', '-', '1.51', CURRENT TIMESTAMP,
'in BACKUPTS'
) ;
--
-- A subset of the COLUMNS system catalog to restore pre-V8 Replication:
--
CREATE TABLE BACKUP.IBMSNAP_COLUMNS (
tabschema VARCHAR(30),
tabname VARCHAR(128),
colname VARCHAR(128),
colno SMALLINT,
typename VARCHAR(018),
length INTEGER,
default VARCHAR(254),
nulls CHARACTER(001)
)
in BACKUPTS ;
INSERT INTO BACKUP.IBMSNAP_COLUMNS SELECT
tabschema,
tabname,
COLNAME,
COLNO,
TYPENAME,
LENGTH,
DEFAULT,
NULLS
FROM SYSCAT.COLUMNS
WHERE tabschema = 'ASN' OR tabschema = UCASE( 'BACKUP' )
OR CHAR( RTRIM( tabschema ) CONCAT ',' CONCAT TABNAME ) IN (
SELECT CHAR( RTRIM( CD_OWNER ) CONCAT ',' CONCAT CD_TABLE )
FROM ASN.IBMSNAP_REGISTER
) ;
--
-- A subset of the TABLES system catalog to restore pre-V8 Replication:
--
CREATE TABLE BACKUP.IBMSNAP_TABLES (
tabschema VARCHAR(30),
tabname VARCHAR(128),
cd_alias VARCHAR(7),
type CHARACTER(001),
colcount SMALLINT,
datacapture CHARACTER(001),
tbspace VARCHAR(100),
implicit CHARACTER(1)
)
in BACKUPTS ;
-- insert names of ASN.*, backup.* tables,
-- and CD tables (except Federated):
INSERT INTO BACKUP.IBMSNAP_TABLES
SELECT
T.TABSCHEMA,
T.TABNAME,
'',
T.TYPE,
T.COLCOUNT,
DATACAPTURE D,
T.tbspace,
'-' I
FROM SYSCAT.TABLES T
WHERE T.TABSCHEMA = 'ASN'
OR T.TABSCHEMA = UCASE( 'BACKUP' )
;
INSERT INTO BACKUP.IBMSNAP_TABLES
SELECT
T.TABSCHEMA,
T.TABNAME,
'B',
T.TYPE,
T.COLCOUNT,
DATACAPTURE D,
T.tbspace,
'-' I
FROM SYSCAT.TABLES T
WHERE
CHAR( RTRIM( T.TABSCHEMA ) CONCAT ',' CONCAT T.TABNAME ) IN (
SELECT CHAR( RTRIM( CD_OWNER ) CONCAT ',' CONCAT CD_TABLE )
FROM ASN.IBMSNAP_REGISTER
) ;
--
-- Save those view definitions dependent on Replication tables:
--
CREATE TABLE BACKUP.IBMSNAP_VIEWS (
viewschema VARCHAR(30),
viewname VARCHAR(128),
tabschema VARCHAR(30),
tabname VARCHAR(128),
seqno INTEGER,
text VARCHAR(3600)
)
in BACKUPTS ;
INSERT INTO BACKUP.IBMSNAP_VIEWS
SELECT
VS.VIEWSCHEMA,
VS.VIEWNAME,
DP.BSCHEMA,
DP.BNAME,
VS.SEQNO,
VS.TEXT
FROM SYSCAT.VIEWS AS VS JOIN SYSCAT.VIEWDEP AS DP
ON VS.VIEWSCHEMA = DP.viewschema AND VS.VIEWNAME = DP.viewname
WHERE DP.BSCHEMA = 'ASN'
OR CHAR( RTRIM( DP.BSCHEMA ) CONCAT ',' CONCAT DP.BNAME ) IN (
SELECT CHAR( RTRIM( CD_OWNER ) CONCAT ',' CONCAT CD_TABLE )
FROM ASN.IBMSNAP_REGISTER
)
;
INSERT INTO BACKUP.IBMSNAP_COLUMNS SELECT
tabschema,
tabname,
COLNAME,
COLNO,
TYPENAME,
LENGTH,
DEFAULT,
NULLS
FROM SYSCAT.COLUMNS
WHERE CHAR( RTRIM( tabschema ) CONCAT ',' CONCAT TABNAME ) IN (
SELECT CHAR( RTRIM( viewschema ) CONCAT ',' CONCAT viewname )
FROM BACKUP.IBMSNAP_VIEWS
) ;
--
-- indexes dependent upon replication tables
--
CREATE TABLE BACKUP.IBMSNAP_INDEXES (
ischema VARCHAR(30),
iname VARCHAR(128),
itschema VARCHAR(30),
itname VARCHAR(128),
colnames VARCHAR(640),
iunique CHARACTER(001),
icolcount SMALLINT
)
in BACKUPTS ;
CREATE TABLE BACKUP.UDB_INDEXES LIKE SYSCAT.INDEXES
in BACKUPTS ;
INSERT INTO BACKUP.UDB_INDEXES
SELECT *
FROM SYSCAT.INDEXES
WHERE TABSCHEMA = 'ASN' OR TABSCHEMA = UCASE( 'BACKUP' )
OR CHAR( RTRIM( TABSCHEMA ) CONCAT ',' CONCAT TABNAME )
IN ( SELECT CHAR( RTRIM( CD_OWNER ) CONCAT ',' CONCAT CD_TABLE )
FROM ASN.IBMSNAP_REGISTER ) ;
CREATE TABLE BACKUP.UDB_TABAUTH LIKE SYSCAT.TABAUTH
in BACKUPTS ;
INSERT INTO BACKUP.UDB_TABAUTH
SELECT *
FROM SYSCAT.TABAUTH
WHERE TABSCHEMA = 'ASN'
OR CHAR( RTRIM( TABSCHEMA ) CONCAT ',' CONCAT TABNAME )
IN ( SELECT CHAR( RTRIM( CD_OWNER ) CONCAT ',' CONCAT CD_TABLE )
FROM ASN.IBMSNAP_REGISTER ) ;
CREATE TABLE BACKUP.GRANTS( GRANT VARCHAR( 500 ) )
in BACKUPTS ;
INSERT INTO BACKUP.GRANTS
select
'GRANT ALTER ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' ;'
from BACKUP.UDB_TABAUTH
where ALTERAUTH = 'Y' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT ALTER ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' WITH GRANT OPTION ;'
from BACKUP.UDB_TABAUTH
where ALTERAUTH = 'G' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT DELETE ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' ;'
from BACKUP.UDB_TABAUTH
where DELETEAUTH = 'Y' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT DELETE ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' WITH GRANT OPTION ;'
from BACKUP.UDB_TABAUTH
where DELETEAUTH = 'G' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT INDEX ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' ;'
from BACKUP.UDB_TABAUTH
where INDEXAUTH = 'Y' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT INDEX ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' WITH GRANT OPTION ;'
from BACKUP.UDB_TABAUTH
where INDEXAUTH = 'G' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT INSERT ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' ;'
from BACKUP.UDB_TABAUTH
where INSERTAUTH = 'Y' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT INSERT ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' WITH GRANT OPTION ;'
from BACKUP.UDB_TABAUTH
where INSERTAUTH = 'G' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT SELECT ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' ;'
from BACKUP.UDB_TABAUTH
where SELECTAUTH = 'Y' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT SELECT ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' WITH GRANT OPTION ;'
from BACKUP.UDB_TABAUTH
where SELECTAUTH = 'G' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT REFERENCES ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' ;'
from BACKUP.UDB_TABAUTH
where REFAUTH = 'Y' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT REFERENCES ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' WITH GRANT OPTION ;'
from BACKUP.UDB_TABAUTH
where REFAUTH = 'G' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT UPDATE ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' ;'
from BACKUP.UDB_TABAUTH
where UPDATEAUTH = 'Y' ;
INSERT INTO BACKUP.GRANTS
select
'GRANT UPDATE ON "' ||
rtrim( TABSCHEMA ) || '"."' || TABNAME || '" ' ||
case when length( rtrim(TABSCHEMA)||TABNAME ) >= 30 then ''
else substr( ' ', 1,
30 - length( rtrim(TABSCHEMA)||TABNAME ) )
end || ' TO ' || GRANTEE || ' WITH GRANT OPTION ;'
from BACKUP.UDB_TABAUTH
where UPDATEAUTH = 'G' ;
CREATE INDEX BACKUP.IBMSNAP_INDEXES_X ON BACKUP.IBMSNAP_INDEXES (
itschema,
itname
) ;
INSERT INTO BACKUP.IBMSNAP_INDEXES SELECT
indschema,
indname,
tabschema,
tabname,
colnames,
uniquerule,
colcount
FROM SYSCAT.INDEXES
WHERE tabschema = 'ASN' OR tabschema = UCASE( 'BACKUP' )
OR CHAR( RTRIM( tabschema ) CONCAT ',' CONCAT tabname )
IN ( SELECT CHAR( RTRIM( CD_OWNER ) CONCAT ',' CONCAT CD_TABLE )
FROM ASN.IBMSNAP_REGISTER ) ;
CREATE TABLE BACKUP.IBMSNAP_KEYS (
kschema VARCHAR(30),
kname VARCHAR(128),
kcolname VARCHAR(018),
kcolseq SMALLINT NOT NULL,
kordering CHAR(1) NOT NULL
)
in BACKUPTS ;
--
-- For connected AS/400's with JRN_LIB and JRN_NAME data,
-- create IBMSNAP_AS400.
--
-- Notes:
-- 1. For each subs_set key, choose any one (1) of the corresp. rows in
-- subs_membr to get source_owner, source_table, source_view_qual.
-- 2. The jrn_lib and jrn_name cols are the same for all elements
-- sharing apply_qual, set_name, whos_on_first.
--
--
--
CREATE TABLE BACKUP.IBMSNAP_AS400 (
apply_qual CHAR(18) NOT NULL,
set_name CHAR(18) NOT NULL,
whos_on_first CHAR(01) NOT NULL,
source_owner VARCHAR(30),
source_table VARCHAR(128),
source_view_qual SMALLINT,
source_alias CHAR(18),
jrn_lib CHAR(10),
jrn_name CHAR(10)
)
in BACKUPTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_AS400_X
ON BACKUP.IBMSNAP_AS400 (
apply_qual,
set_name,
whos_on_first ) ;
INSERT INTO BACKUP.IBMSNAP_AS400
SELECT DISTINCT
apply_qual,
set_name,
whos_on_first,
nullif('',''),
nullif('',''),
-1,
coalesce( source_alias, source_server ),
nullif('',''),
nullif('','')
FROM ASN.IBMSNAP_SUBS_SET ;
UPDATE BACKUP.IBMSNAP_AS400 A
SET source_owner =
( SELECT MIN( source_owner ) FROM ASN.IBMSNAP_SUBS_MEMBR
WHERE apply_qual = a.apply_qual AND
set_name = a.set_name AND
whos_on_first = a.whos_on_first
) ;
UPDATE BACKUP.IBMSNAP_AS400 A
SET source_table =
( SELECT MIN( source_table ) FROM ASN.IBMSNAP_SUBS_MEMBR
WHERE apply_qual = a.apply_qual AND
set_name = a.set_name AND
whos_on_first = a.whos_on_first AND
source_owner = a.source_owner
) ;
UPDATE BACKUP.IBMSNAP_AS400 A
SET source_view_qual =
( SELECT MIN( source_view_qual ) FROM ASN.IBMSNAP_SUBS_MEMBR
WHERE apply_qual = a.apply_qual AND
set_name = a.set_name AND
whos_on_first = a.whos_on_first AND
source_owner = a.source_owner AND
source_table = a.source_table
) ;
DELETE FROM BACKUP.IBMSNAP_AS400
WHERE source_owner is null
OR source_table is null
OR source_view_qual is null
;
-- end IBMSNAP_AS400
--
-- For heterogeneous IBMSNAP_SUBS_SET migration:
--
CREATE TABLE BACKUP.IBMSNAP_SRVR (
apply_qual CHAR(18) NOT NULL,
set_name CHAR(18) NOT NULL,
whos_on_first CHAR(01) NOT NULL,
source_alias CHAR(18),
source_owner VARCHAR(030),
source_table VARCHAR(128),
federated_src_srvr VARCHAR(18),
federated_src_type VARCHAR(30),
target_alias CHAR(08),
target_owner VARCHAR(030),
target_table VARCHAR(128),
federated_tgt_srvr VARCHAR(18),
federated_tgt_type VARCHAR(30)
)
in BACKUPTS ;
CREATE UNIQUE INDEX BACKUP.IBMSNAP_SRVR_X
ON BACKUP.IBMSNAP_SRVR (
apply_qual,
set_name,
whos_on_first ) ;
INSERT INTO BACKUP.IBMSNAP_SRVR
SELECT DISTINCT
apply_qual,
set_name,
whos_on_first,
coalesce( source_alias, source_server ),
nullif('',''),
nullif('',''),
nullif('',''),
nullif('',''),
coalesce( target_alias, target_server ),
nullif('',''),
nullif('',''),
nullif('',''),
nullif('','')
FROM ASN.IBMSNAP_SUBS_SET ;
UPDATE BACKUP.IBMSNAP_SRVR A
SET source_owner =
( SELECT MIN( source_owner ) FROM ASN.IBMSNAP_SUBS_MEMBR
WHERE apply_qual = a.apply_qual AND
set_name = a.set_name AND
whos_on_first = a.whos_on_first
) ;
UPDATE BACKUP.IBMSNAP_SRVR A
SET source_table =
( SELECT MIN( source_table ) FROM ASN.IBMSNAP_SUBS_MEMBR
WHERE apply_qual = a.apply_qual AND
set_name = a.set_name AND
whos_on_first = a.whos_on_first AND
source_owner = a.source_owner
) ;
UPDATE BACKUP.IBMSNAP_SRVR A
SET target_owner =
( SELECT MIN( target_owner ) FROM ASN.IBMSNAP_SUBS_MEMBR
WHERE apply_qual = a.apply_qual AND
set_name = a.set_name AND
whos_on_first = a.whos_on_first
) ;
UPDATE BACKUP.IBMSNAP_SRVR A
SET target_table =
( SELECT MIN( target_table ) FROM ASN.IBMSNAP_SUBS_MEMBR
WHERE apply_qual = a.apply_qual AND
set_name = a.set_name AND
whos_on_first = a.whos_on_first AND
target_owner = a.target_owner
) ;
DELETE FROM BACKUP.IBMSNAP_SRVR
WHERE source_owner is null
OR source_table is null
OR target_owner is null
OR target_table is null
;
-- end IBMSNAP_SRVR
--
-- isolated table for serialization only
--
CREATE TABLE BACKUP.IBMSNAP_MUTEX (
I INTEGER
)
in BACKUPTS ;
-- arbitrary value for serialization only:
INSERT INTO BACKUP.IBMSNAP_MUTEX VALUES ( 0 ) ;
-- Insert 'SOURCE' row -- with VERSION -- last to end step 1.
INSERT INTO BACKUP.IBMSNAP_MIGRATION VALUES (
'SOURCE ', 1, '-', '-', '1.51', CURRENT TIMESTAMP,
'in BACKUPTS'
) ;
-- END OF Replication Migration V8 Step 1 --
|
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
-- test that we do not allow incorrect where <boolean> syntax
create table t1 (c11 int);
insert into t1 values (1);
autocommit off;
-- positive tests
-- In following test cases, where clause results in a boolean value
prepare p1 as 'select * from t1 where ?=1';
execute p1 using 'values(1)';
prepare p1 as 'select * from t1 where ? like ''2'' ';
execute p1 using 'values(''a'')';
prepare p1 as 'select * from t1 where not ? > 1';
execute p1 using 'values(1)';
prepare p1 as 'select * from t1 where lower(?) = ''a''';
execute p1 using 'values(''a'')';
prepare p1 as 'select * from t1 where {fn length(?)} > 1';
execute p1 using 'values(''a'')';
prepare p1 as 'select * from t1 where {fn locate(?,''a'',1)} = 1';
execute p1 using 'values(''a'')';
prepare p1 as 'select * from t1 where ? between 1 and 3';
execute p1 using 'values(2)';
prepare p1 as 'select * from t1 where ? in (1, ?)';
execute p1 using 'values(2,1)';
prepare p1 as 'select * from t1 where ? is null';
execute p1 using 'values(1)';
prepare p1 as 'select * from t1 where ? is not null';
execute p1 using 'values(1)';
prepare p1 as 'select * from t1 where ? <> ALL (values(1))';
execute p1 using 'values(3)';
prepare p1 as 'select * from t1 where exists (select c11 from t1 where 1=?)';
execute p1 using 'values(3)';
prepare p1 as 'select * from t1 where cast(? as int) = 1';
execute p1 using 'values(1)';
-- negative tests
-- In following test cases, there is no way to ensure where with ? will result in a boolean value
prepare p1 as 'select * from t1 where c11';
prepare p1 as 'select * from t1 where c11+1';
prepare p1 as 'select * from t1 where 1';
prepare p1 as 'select * from t1 where ?';
prepare p1 as 'select * from t1 where ? for update';
prepare p1 as 'select * from t1 where (?)';
prepare p1 as 'select * from t1 where ? and 1=1';
prepare p1 as 'select * from t1 where ? and 1=? or 2=2';
prepare p1 as 'select * from t1 where not ?';
prepare p1 as 'select * from t1 where lower(?)';
prepare p1 as 'select * from t1 where lower(?) and 1=1';
prepare p1 as 'select * from t1 where {fn length(?)}';
prepare p1 as 'select * from t1 where {fn locate(?,''a'',1)}';
prepare p1 as 'select * from t1 where cast(? as int)';
prepare p1 as 'select * from t1 where (?||''1'')';
|
--
-- Test workfile limits
--
-- Ensure the queries below need to spill to disk.
set statement_mem='1 MB';
-- SRF materializes the result in a tuplestore. Check that
-- gp_workfile_limit_per_query is enforced.
select count(distinct g) from generate_series(1, 1000000) g;
set gp_workfile_limit_per_query='5 MB';
select count(distinct g) from generate_series(1, 1000000) g;
reset gp_workfile_limit_per_query;
-- Also test limit on number of files (gp_workfile_limit_files_per_query)
set gp_workfile_limit_files_per_query='4';
select count(g) from generate_series(1, 500000) g
union
select count(g) from generate_series(1, 500000) g
union
select count(g) from generate_series(1, 500000) g
order by 1;
set gp_workfile_limit_files_per_query='2';
select count(g) from generate_series(1, 500000) g
union
select count(g) from generate_series(1, 500000) g
union
select count(g) from generate_series(1, 500000) g
order by 1;
-- Test work file limit number after merge PG 1GB segment
-- Ensure the queries below need to spill to disk.
set statement_mem='1 MB';
-- Also test limit on number of files (gp_workfile_limit_files_per_query)
-- The query below will generate 6 temp files:
-- 1 gpadmin gpadmin 1.0G Mar 25 23:13 pgsql_tmpLogicalTape16802.3
-- 1 gpadmin gpadmin 1.0G Mar 25 23:13 pgsql_tmpLogicalTape16802.4
-- 1 gpadmin gpadmin 247M Mar 25 23:13 pgsql_tmpLogicalTape16802.5
-- 1 gpadmin gpadmin 1.0G Mar 25 23:08 pgsql_tmpslice0_tuplestore16802.0
-- 1 gpadmin gpadmin 1.0G Mar 25 23:09 pgsql_tmpslice0_tuplestore16802.1
-- 1 gpadmin gpadmin 623M Mar 25 23:09 pgsql_tmpslice0_tuplestore16802.2
-- On GP6, the query will generate 2 temp files:
-- 1 gpadmin gpadmin 1.5G Mar 24 22:50 pgsql_tmp_slice-1_tuplestore_1_3251.16
-- 1 gpadmin gpadmin 2.2G Mar 24 22:54 pgsql_tmp_Sort_2_3251.17
-- On master, each 1 GB segment file count as work file, and the work_set->perquery->num_files count as 6.
set gp_workfile_limit_files_per_query='6';
select count(distinct g) from generate_series(1, 200000000) g;
reset gp_workfile_limit_files_per_query;
reset statement_mem;
-- We cannot test the per-segment limit, because changing it requires
-- a postmaster restart. It's enforced in the same way as the per-query
-- limit, though, and it's simpler, so if the per-query limit works,
-- the per-segment limit probably works too.
|
<gh_stars>10-100
CREATE EXTENSION IF NOT EXISTS gp_inject_fault;
CREATE AGGREGATE example_agg(int4) (
SFUNC = int4larger,
STYPE = int4
);
ALTER EXTENSION gp_inject_fault ADD AGGREGATE example_agg(int4);
ALTER EXTENSION gp_inject_fault DROP AGGREGATE example_agg(int4);
|
<filename>asaka.sql
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Фев 06 2020 г., 18:45
-- Версия сервера: 5.7.25
-- Версия PHP: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- База данных: `asaka`
--
-- --------------------------------------------------------
--
-- Структура таблицы `education`
--
CREATE TABLE `education` (
`id` int(11) NOT NULL,
`university` varchar(128) NOT NULL,
`location` varchar(128) NOT NULL,
`from_date` varchar(128) NOT NULL,
`to_date` varchar(128) NOT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `education`
--
INSERT INTO `education` (`id`, `university`, `location`, `from_date`, `to_date`, `user_id`) VALUES
(2, 'TATU FF', 'Fergana', '02-10-2007', '10-06-2011', 1),
(3, 'TATU', 'Tashkent', '02-10-2007', '10-06-2011', 1),
(4, 'Kollej', 'Asaka', '02-10-2007', '10-06-2011', 2);
-- --------------------------------------------------------
--
-- Структура таблицы `migration`
--
CREATE TABLE `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1580975770),
('m200206_075400_create_user_table', 1580975773);
-- --------------------------------------------------------
--
-- Структура таблицы `skill`
--
CREATE TABLE `skill` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`rate` smallint(6) NOT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `skill`
--
INSERT INTO `skill` (`id`, `name`, `rate`, `user_id`) VALUES
(1, 'Rest APi', 4, 1),
(3, 'Jumanji', 3, 1),
(4, 'YII2', 5, 2);
-- --------------------------------------------------------
--
-- Структура таблицы `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`first` varchar(128) CHARACTER SET utf8 DEFAULT NULL,
`last` varchar(128) CHARACTER SET utf8 DEFAULT NULL,
`middle_name` varchar(128) CHARACTER SET utf8 DEFAULT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `user`
--
INSERT INTO `user` (`id`, `username`, `first`, `last`, `middle_name`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'Colo', 'Terra', 'Jackson', 'r4tVSstNnQ5YCLijSqCly1dW7Fn52ahn', '$2y$13$rOH6/6A33WDuGqs0mN6egOSsgXeX19FguwngCN6UaK6I9MoyHD.bO', NULL, '<EMAIL>', 10, 1580975975, 1581002232),
(2, 'user', 'User', 'Command', 'Midle', 'iUKPqJvXKmqhAYyWBtvY-RYrLYceiAw3', '$2y$13$SVAyaXcEaTGJ/HOyYoUg3.fZuiNRB.1ME4Lctw.S8.zPe0hmSKaY2', NULL, '<EMAIL>', 10, 1580976773, 1581003714);
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `education`
--
ALTER TABLE `education`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `migration`
--
ALTER TABLE `migration`
ADD PRIMARY KEY (`version`);
--
-- Индексы таблицы `skill`
--
ALTER TABLE `skill`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`),
ADD UNIQUE KEY `password_reset_token` (`password_reset_token`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `education`
--
ALTER TABLE `education`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT для таблицы `skill`
--
ALTER TABLE `skill`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT для таблицы `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
-- --------------------------------------------------------
-- Хост: 127.0.0.1
-- Версия сервера: 5.7.16 - MySQL Community Server (GPL)
-- Операционная система: Win64
-- HeidiSQL Версия: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Дамп структуры для таблица yii2_blog.auth_assignment
DROP TABLE IF EXISTS `auth_assignment`;
CREATE TABLE IF NOT EXISTS `auth_assignment` (
`item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
PRIMARY KEY (`item_name`,`user_id`),
KEY `auth_assignment_user_id_idx` (`user_id`),
CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Дамп данных таблицы yii2_blog.auth_assignment: ~4 rows (приблизительно)
/*!40000 ALTER TABLE `auth_assignment` DISABLE KEYS */;
INSERT INTO `auth_assignment` (`item_name`, `user_id`, `created_at`) VALUES
('admin', '1', 1524230392),
('author', '3', 1524230392),
('author', '4', 1524230392),
('editor', '2', 1524230392);
/*!40000 ALTER TABLE `auth_assignment` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.auth_item
DROP TABLE IF EXISTS `auth_item`;
CREATE TABLE IF NOT EXISTS `auth_item` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`type` smallint(6) NOT NULL,
`description` text COLLATE utf8_unicode_ci,
`rule_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`data` blob,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`name`),
KEY `rule_name` (`rule_name`),
KEY `idx-auth_item-type` (`type`),
CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Дамп данных таблицы yii2_blog.auth_item: ~7 rows (приблизительно)
/*!40000 ALTER TABLE `auth_item` DISABLE KEYS */;
INSERT INTO `auth_item` (`name`, `type`, `description`, `rule_name`, `data`, `created_at`, `updated_at`) VALUES
('admin', 1, 'Администратор', NULL, NULL, 1524230392, 1524230392),
('author', 1, 'Автор', NULL, NULL, 1524230392, 1524230392),
('blocked', 1, 'Заблокированный', NULL, NULL, 1524230392, 1524230392),
('editor', 1, 'Редактор', NULL, NULL, 1524230392, 1524230392),
('updateOwnPost', 2, 'Редактирование собственных постов', 'isAuthor', NULL, 1524230392, 1524230392),
('updatePost', 2, 'Редактирование постов', NULL, NULL, 1524230392, 1524230392),
('viewAdminPage', 2, 'Просмотр админки', NULL, NULL, 1524230392, 1524230392);
/*!40000 ALTER TABLE `auth_item` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.auth_item_child
DROP TABLE IF EXISTS `auth_item_child`;
CREATE TABLE IF NOT EXISTS `auth_item_child` (
`parent` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`child` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`parent`,`child`),
KEY `child` (`child`),
CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Дамп данных таблицы yii2_blog.auth_item_child: ~5 rows (приблизительно)
/*!40000 ALTER TABLE `auth_item_child` DISABLE KEYS */;
INSERT INTO `auth_item_child` (`parent`, `child`) VALUES
('author', 'updateOwnPost'),
('admin', 'updatePost'),
('editor', 'updatePost'),
('updateOwnPost', 'updatePost'),
('admin', 'viewAdminPage');
/*!40000 ALTER TABLE `auth_item_child` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.auth_rule
DROP TABLE IF EXISTS `auth_rule`;
CREATE TABLE IF NOT EXISTS `auth_rule` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`data` blob,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Дамп данных таблицы yii2_blog.auth_rule: ~1 rows (приблизительно)
/*!40000 ALTER TABLE `auth_rule` DISABLE KEYS */;
INSERT INTO `auth_rule` (`name`, `data`, `created_at`, `updated_at`) VALUES
('isAuthor', _binary 0x4F3A32323A22636F6D6D6F6E5C726261635C417574686F7252756C65223A333A7B733A343A226E616D65223B733A383A226973417574686F72223B733A393A22637265617465644174223B693A313532343233303339323B733A393A22757064617465644174223B693A313532343233303339323B7D, 1524230392, 1524230392);
/*!40000 ALTER TABLE `auth_rule` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.category
DROP TABLE IF EXISTS `category`;
CREATE TABLE IF NOT EXISTS `category` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`slug` varchar(200) NOT NULL,
PRIMARY KEY (`id`),
KEY `slug` (`id`),
KEY `title` (`title`),
KEY `slug_title` (`slug`,`title`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- Дамп данных таблицы yii2_blog.category: ~3 rows (приблизительно)
/*!40000 ALTER TABLE `category` DISABLE KEYS */;
INSERT INTO `category` (`id`, `title`, `slug`) VALUES
(1, 'Category 1', 'category1'),
(2, 'Category 2', 'category2'),
(3, 'Category 3', 'category3');
/*!40000 ALTER TABLE `category` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.migration
DROP TABLE IF EXISTS `migration`;
CREATE TABLE IF NOT EXISTS `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Дамп данных таблицы yii2_blog.migration: ~11 rows (приблизительно)
/*!40000 ALTER TABLE `migration` DISABLE KEYS */;
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1519028833),
('m130524_201442_init', 1519028838),
('m140506_102106_rbac_init', 1523541362),
('m170907_052038_rbac_add_index_on_auth_assignment_user_id', 1523541362),
('m180219_103353_create_post_table', 1519039204),
('m180219_105135_create_category_table', 1519039204),
('m180219_105201_create_tag_table', 1519039204),
('m180219_105733_post_tag_table', 1519040582),
('m180313_142129_alter_column_date_to_datetime_in_post_table', 1520951579),
('m180322_102442_upgrade_tag_table', 1521719111),
('m180327_113405_post_table_add_updated_field', 1522151072);
/*!40000 ALTER TABLE `migration` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.post
DROP TABLE IF EXISTS `post`;
CREATE TABLE IF NOT EXISTS `post` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`category_id` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text,
`url` varchar(255) DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT '1',
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- Дамп данных таблицы yii2_blog.post: ~5 rows (приблизительно)
/*!40000 ALTER TABLE `post` DISABLE KEYS */;
INSERT INTO `post` (`id`, `user_id`, `category_id`, `title`, `content`, `url`, `active`, `date`, `updated`) VALUES
(1, 1, 1, 'Title 1 Классический текст Lorem Ipsum, используемый с XVI века', '<p>Content 1 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>', 'post1', 1, '2018-02-19 00:00:00', '2018-02-19 00:00:00'),
(2, 3, 2, 'Title 2 Абзац 1.10.32 "de Finibus Bonorum et Malorum", написанный Цицероном в 45 году н.э.', 'Content 2 Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?', 'post2', 1, '2018-02-20 00:00:00', '2018-02-20 00:00:00'),
(3, 3, 3, 'Title 3 Английский перевод 1914 года, <NAME>', 'Content 3 But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?', 'post3', 0, '2018-02-21 00:00:00', '2018-02-21 00:00:00'),
(4, 4, 1, 'Title 4 Абзац 1.10.33 "de Finibus Bonorum et Malorum", написанный Цицероном в 45 году н.э.', '<p>Content 4 At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'post4', 1, '2018-02-22 00:00:00', '2018-02-22 00:00:00'),
(5, 4, 2, 'Title 5 Английский перевод 1914 года, <NAME>', 'Content 5 On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.', 'post5', 1, '2018-02-23 00:00:00', '2018-02-23 00:00:00');
/*!40000 ALTER TABLE `post` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.post_tag
DROP TABLE IF EXISTS `post_tag`;
CREATE TABLE IF NOT EXISTS `post_tag` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_id` bigint(20) unsigned DEFAULT NULL,
`tag_id` bigint(20) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx-post_tag-post_id` (`post_id`),
KEY `idx-post_tag-tag_id` (`tag_id`),
CONSTRAINT `fk-post_tag-post_id` FOREIGN KEY (`post_id`) REFERENCES `post` (`id`) ON DELETE CASCADE,
CONSTRAINT `fk-post_tag-tag_id` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- Дамп данных таблицы yii2_blog.post_tag: ~5 rows (приблизительно)
/*!40000 ALTER TABLE `post_tag` DISABLE KEYS */;
INSERT INTO `post_tag` (`id`, `post_id`, `tag_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 1, 3),
(4, 2, 2),
(5, 3, 3);
/*!40000 ALTER TABLE `post_tag` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.tag
DROP TABLE IF EXISTS `tag`;
CREATE TABLE IF NOT EXISTS `tag` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(200) NOT NULL DEFAULT '',
`slug` varchar(200) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `title` (`title`),
KEY `slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- Дамп данных таблицы yii2_blog.tag: ~3 rows (приблизительно)
/*!40000 ALTER TABLE `tag` DISABLE KEYS */;
INSERT INTO `tag` (`id`, `title`, `slug`) VALUES
(1, 'Tag 1', 'tag1'),
(2, 'Tag 2', 'tag2'),
(3, 'Tag 3', 'tag3');
/*!40000 ALTER TABLE `tag` ENABLE KEYS */;
-- Дамп структуры для таблица yii2_blog.user
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `password_reset_token` (`password_reset_token`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Дамп данных таблицы yii2_blog.user: ~4 rows (приблизительно)
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'XMuL5vZ9X8J2ofJqLdPCK40CWYL7eT65', '$2y$13$kUrCeTrR.TL4HuO6I5pLiuItj1S50yBgKHVCt5Dk3M4yTPnZAf9n2', NULL, '<EMAIL>', 10, 1519112283, 1519112283),
(2, 'editor', 'SyT3h2uW8rinS39EvRtVOrwH9QheTi91', <PASSWORD>', NULL, '<EMAIL>', 10, 1524218707, 1524218707),
(3, 'author1', '<PASSWORD>fBNidJCql<PASSWORD>esrHIm<PASSWORD>', <PASSWORD>', NULL, '<EMAIL>', 10, 1524218862, 1524218862),
(4, 'author2', 'WHLqOQSci16v0LL8oDagge4UN5aC0B0g', '$2y$13$o/WTasryQKnWvEcFCw98juQLWF9zpbJw4D1sPTKVpLeSI6WrkIV8i', NULL, '<EMAIL>', 10, 1524218892, 1524218892);
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
--DROP FUNCTION degrees;
/**
*/
CREATE FUNCTION degrees(r DOUBLE) RETURNS DOUBLE
BEGIN
RETURN r * 180 / PI();
END;
|
<gh_stars>10-100
/*
Run this script on:
Profiles RNS Version 2.5.1
to update its data to:
Profiles RNS Version 2.6.0
*** You are recommended to back up your database before running this script!
*** This script will delete any customizations made to [Framework.].Job
*** If you added additional steps to [Framework.].Job you will need to manually merge these changes.
*** This script will make changes to OpenSocial application URLs, to hit versions compatible with the latest version of ShindigOrng, If you are hosting the OpenSocial xml locally, you will need to update this XML.
*** You should review each step of this script to ensure that it will not overwrite any customizations you have made to ProfilesRNS.
*** Make sure you run the ProfilesRNS_Upgrade_Schema.sql file before running this file.
*/
-- Insert new sites into [Direct.].Sites
insert into [Direct.].[Sites] ( SiteID,SiteName, IsActive, BootstrapURL, QueryURL, SortOrder)
select max(SiteID) + 1, '<NAME> University of Medicine and Science', 1, 'http://profiles.cdrewu.edu/profiles/Direct/Direct.xml', 'http://profiles.cdrewu.edu/profiles/DIRECT/Modules/DirectSearch/DirectService.aspx?Request=IncomingCount&SearchPhrase=', max(SortOrder) + 1 from [Direct.].[Sites]
-- Alphabetize the sort direct sites sort order
;with newSortOrders as(
select SiteID, ROW_NUMBER() over (order by SiteName) as NewSortOrder from [Direct.].[Sites]
)
update s set SortOrder = newSortOrder from [Direct.].Sites s join newSortOrders n on s.SiteID = n.SiteID
-- Update ORNG App URLs.
update [ORNG.].[Apps] set URL = 'http://profiles.ucsf.edu/apps_2.6/Links.xml', Enabled = 1 where AppID= 103 and Name= 'Websites'
update [ORNG.].[Apps] set URL = 'http://profiles.ucsf.edu/apps_2.6/RDFTest.xml' where AppID= 10 and Name= 'RDF Test'
update [ORNG.].[Apps] set URL = 'http://profiles.ucsf.edu/apps_2.6/SlideShare.xml', Enabled = 1 where AppID= 101 and Name= 'Featured Presentations'
update [ORNG.].[Apps] set URL = 'http://profiles.ucsf.edu/apps_2.6/Twitter.xml', Enabled = 1 where AppID= 112 and Name= 'Twitter'
update [ORNG.].[Apps] set URL = 'http://profiles.ucsf.edu/apps_2.6/YouTube.xml', Enabled = 1 where AppID= 114 and Name= 'Featured Videos'
-- Update default ORCID settings.
update [Ontology.].[ClassProperty] set IsDetail = 0, MaxCardinality = 1, CustomEditModule = '<Module ID="CustomEditORCID"/>', EditSecurityGroup = -50, EditPermissionsSecurityGroup = -50, EditExistingSecurityGroup = -50, EditAddNewSecurityGroup = -50, EditAddExistingSecurityGroup = -50, EditDeleteSecurityGroup = -50, CustomDisplay = 1, CustomEdit = 1, ViewSecurityGroup = -50 where Class= 'http://xmlns.com/foaf/0.1/Person' and NetworkProperty is null and Property= 'http://vivoweb.org/ontology/core#orcidId'
--*****************************************************************************************
--*****************************************************************************************
--*****************************************************************************************
--*****
--***** Finalize changes
--*****
--*****************************************************************************************
--*****************************************************************************************
--*****************************************************************************************
-- The next two rows update fields such as nodeID values, and table identifiers. This should not affect any existing customizations
EXEC [Ontology.].[UpdateDerivedFields]
EXEC [Ontology.].[UpdateCounts]
EXEC [Ontology.].CleanUp @action='UpdateIDs'
-- Update the RDF tables and cache
EXEC [Framework.].[RunJobGroup] @JobGroup = 3
GO
|
<filename>pdf-cos/spec/GlyphList.ddl
-- GlyphList: mapping form glyphs to unicode
import Map
-- GlyphEncs: encoding of glyph list
def glyphEncs = concat [ glyphEncs1
, glyphEncs2
, glyphEncs3
, glyphEncs4
, glyphEncs5
, glyphEncs6
, glyphEncs7
, glyphEncs8
, glyphEncs9
, glyphEncs10
, glyphEncs11
]
-- FIXME: the only reason these are broken up into 11 ~400 length subarrays is that
-- daedalus takes multiple minutes to compile otherwise
def glyphEncs1 = [
mapEntry ("A") [ 0x41 ]
, mapEntry ("AE") [ 0xC6 ]
, mapEntry ("AEacute") [ 0x01FC ]
, mapEntry ("AEmacron") [ 0x01E2 ]
, mapEntry ("AEsmall") [ 0xF7E6 ]
, mapEntry ("Aacute") [ 0xC1 ]
, mapEntry ("Aacutesmall") [ 0xF7E1 ]
, mapEntry ("Abreve") [ 0x0102 ]
, mapEntry ("Abreveacute") [ 0x1EAE ]
, mapEntry ("Abrevecyrillic") [ 0x04D0 ]
, mapEntry ("Abrevedotbelow") [ 0x1EB6 ]
, mapEntry ("Abrevegrave") [ 0x1EB0 ]
, mapEntry ("Abrevehookabove") [ 0x1EB2 ]
, mapEntry ("Abrevetilde") [ 0x1EB4 ]
, mapEntry ("Acaron") [ 0x01CD ]
, mapEntry ("Acircle") [ 0x24B6 ]
, mapEntry ("Acircumflex") [ 0xC2 ]
, mapEntry ("Acircumflexacute") [ 0x1EA4 ]
, mapEntry ("Acircumflexdotbelow") [ 0x1EAC ]
, mapEntry ("Acircumflexgrave") [ 0x1EA6 ]
, mapEntry ("Acircumflexhookabove") [ 0x1EA8 ]
, mapEntry ("Acircumflexsmall") [ 0xF7E2 ]
, mapEntry ("Acircumflextilde") [ 0x1EAA ]
, mapEntry ("Acute") [ 0xF6C9 ]
, mapEntry ("Acutesmall") [ 0xF7B4 ]
, mapEntry ("Acyrillic") [ 0x0410 ]
, mapEntry ("Adblgrave") [ 0x0200 ]
, mapEntry ("Adieresis") [ 0xC4 ]
, mapEntry ("Adieresiscyrillic") [ 0x04D2 ]
, mapEntry ("Adieresismacron") [ 0x01DE ]
, mapEntry ("Adieresissmall") [ 0xF7E4 ]
, mapEntry ("Adotbelow") [ 0x1EA0 ]
, mapEntry ("Adotmacron") [ 0x01E0 ]
, mapEntry ("Agrave") [ 0xC0 ]
, mapEntry ("Agravesmall") [ 0xF7E0 ]
, mapEntry ("Ahookabove") [ 0x1EA2 ]
, mapEntry ("Aiecyrillic") [ 0x04D4 ]
, mapEntry ("Ainvertedbreve") [ 0x0202 ]
, mapEntry ("Alpha") [ 0x0391 ]
, mapEntry ("Alphatonos") [ 0x0386 ]
, mapEntry ("Amacron") [ 0x0100 ]
, mapEntry ("Amonospace") [ 0xFF21 ]
, mapEntry ("Aogonek") [ 0x0104 ]
, mapEntry ("Aring") [ 0xC5 ]
, mapEntry ("Aringacute") [ 0x01FA ]
, mapEntry ("Aringbelow") [ 0x1E00 ]
, mapEntry ("Aringsmall") [ 0xF7E5 ]
, mapEntry ("Asmall") [ 0xF761 ]
, mapEntry ("Atilde") [ 0xC3 ]
, mapEntry ("Atildesmall") [ 0xF7E3 ]
, mapEntry ("Aybarmenian") [ 0x0531 ]
, mapEntry ("B") [ 0x42 ]
, mapEntry ("Bcircle") [ 0x24B7 ]
, mapEntry ("Bdotaccent") [ 0x1E02 ]
, mapEntry ("Bdotbelow") [ 0x1E04 ]
, mapEntry ("Becyrillic") [ 0x0411 ]
, mapEntry ("Benarmenian") [ 0x0532 ]
, mapEntry ("Beta") [ 0x0392 ]
, mapEntry ("Bhook") [ 0x0181 ]
, mapEntry ("Blinebelow") [ 0x1E06 ]
, mapEntry ("Bmonospace") [ 0xFF22 ]
, mapEntry ("Brevesmall") [ 0xF6F4 ]
, mapEntry ("Bsmall") [ 0xF762 ]
, mapEntry ("Btopbar") [ 0x0182 ]
, mapEntry ("C") [ 0x43 ]
, mapEntry ("Caarmenian") [ 0x053E ]
, mapEntry ("Cacute") [ 0x0106 ]
, mapEntry ("Caron") [ 0xF6CA ]
, mapEntry ("Caronsmall") [ 0xF6F5 ]
, mapEntry ("Ccaron") [ 0x010C ]
, mapEntry ("Ccedilla") [ 0xC7 ]
, mapEntry ("Ccedillaacute") [ 0x1E08 ]
, mapEntry ("Ccedillasmall") [ 0xF7E7 ]
, mapEntry ("Ccircle") [ 0x24B8 ]
, mapEntry ("Ccircumflex") [ 0x0108 ]
, mapEntry ("Cdot") [ 0x010A ]
, mapEntry ("Cdotaccent") [ 0x010A ]
, mapEntry ("Cedillasmall") [ 0xF7B8 ]
, mapEntry ("Chaarmenian") [ 0x0549 ]
, mapEntry ("Cheabkhasiancyrillic") [ 0x04BC ]
, mapEntry ("Checyrillic") [ 0x0427 ]
, mapEntry ("Chedescenderabkhasiancyrillic") [ 0x04BE ]
, mapEntry ("Chedescendercyrillic") [ 0x04B6 ]
, mapEntry ("Chedieresiscyrillic") [ 0x04F4 ]
, mapEntry ("Cheharmenian") [ 0x0543 ]
, mapEntry ("Chekhakassiancyrillic") [ 0x04CB ]
, mapEntry ("Cheverticalstrokecyrillic") [ 0x04B8 ]
, mapEntry ("Chi") [ 0x03A7 ]
, mapEntry ("Chook") [ 0x0187 ]
, mapEntry ("Circumflexsmall") [ 0xF6F6 ]
, mapEntry ("Cmonospace") [ 0xFF23 ]
, mapEntry ("Coarmenian") [ 0x0551 ]
, mapEntry ("Csmall") [ 0xF763 ]
, mapEntry ("D") [ 0x44 ]
, mapEntry ("DZ") [ 0x01F1 ]
, mapEntry ("DZcaron") [ 0x01C4 ]
, mapEntry ("Daarmenian") [ 0x0534 ]
, mapEntry ("Dafrican") [ 0x0189 ]
, mapEntry ("Dcaron") [ 0x010E ]
, mapEntry ("Dcedilla") [ 0x1E10 ]
, mapEntry ("Dcircle") [ 0x24B9 ]
, mapEntry ("Dcircumflexbelow") [ 0x1E12 ]
, mapEntry ("Dcroat") [ 0x0110 ]
, mapEntry ("Ddotaccent") [ 0x1E0A ]
, mapEntry ("Ddotbelow") [ 0x1E0C ]
, mapEntry ("Decyrillic") [ 0x0414 ]
, mapEntry ("Deicoptic") [ 0x03EE ]
, mapEntry ("Delta") [ 0x2206 ]
, mapEntry ("Deltagreek") [ 0x0394 ]
, mapEntry ("Dhook") [ 0x018A ]
, mapEntry ("Dieresis") [ 0xF6CB ]
, mapEntry ("DieresisAcute") [ 0xF6CC ]
, mapEntry ("DieresisGrave") [ 0xF6CD ]
, mapEntry ("Dieresissmall") [ 0xF7A8 ]
, mapEntry ("Digammagreek") [ 0x03DC ]
, mapEntry ("Djecyrillic") [ 0x0402 ]
, mapEntry ("Dlinebelow") [ 0x1E0E ]
, mapEntry ("Dmonospace") [ 0xFF24 ]
, mapEntry ("Dotaccentsmall") [ 0xF6F7 ]
, mapEntry ("Dslash") [ 0x0110 ]
, mapEntry ("Dsmall") [ 0xF764 ]
, mapEntry ("Dtopbar") [ 0x018B ]
, mapEntry ("Dz") [ 0x01F2 ]
, mapEntry ("Dzcaron") [ 0x01C5 ]
, mapEntry ("Dzeabkhasiancyrillic") [ 0x04E0 ]
, mapEntry ("Dzecyrillic") [ 0x0405 ]
, mapEntry ("Dzhecyrillic") [ 0x040F ]
, mapEntry ("E") [ 0x45 ]
, mapEntry ("Eacute") [ 0xC9 ]
, mapEntry ("Eacutesmall") [ 0xF7E9 ]
, mapEntry ("Ebreve") [ 0x0114 ]
, mapEntry ("Ecaron") [ 0x011A ]
, mapEntry ("Ecedillabreve") [ 0x1E1C ]
, mapEntry ("Echarmenian") [ 0x0535 ]
, mapEntry ("Ecircle") [ 0x24BA ]
, mapEntry ("Ecircumflex") [ 0xCA ]
, mapEntry ("Ecircumflexacute") [ 0x1EBE ]
, mapEntry ("Ecircumflexbelow") [ 0x1E18 ]
, mapEntry ("Ecircumflexdotbelow") [ 0x1EC6 ]
, mapEntry ("Ecircumflexgrave") [ 0x1EC0 ]
, mapEntry ("Ecircumflexhookabove") [ 0x1EC2 ]
, mapEntry ("Ecircumflexsmall") [ 0xF7EA ]
, mapEntry ("Ecircumflextilde") [ 0x1EC4 ]
, mapEntry ("Ecyrillic") [ 0x0404 ]
, mapEntry ("Edblgrave") [ 0x0204 ]
, mapEntry ("Edieresis") [ 0xCB ]
, mapEntry ("Edieresissmall") [ 0xF7EB ]
, mapEntry ("Edot") [ 0x0116 ]
, mapEntry ("Edotaccent") [ 0x0116 ]
, mapEntry ("Edotbelow") [ 0x1EB8 ]
, mapEntry ("Efcyrillic") [ 0x0424 ]
, mapEntry ("Egrave") [ 0xC8 ]
, mapEntry ("Egravesmall") [ 0xF7E8 ]
, mapEntry ("Eharmenian") [ 0x0537 ]
, mapEntry ("Ehookabove") [ 0x1EBA ]
, mapEntry ("Eightroman") [ 0x2167 ]
, mapEntry ("Einvertedbreve") [ 0x0206 ]
, mapEntry ("Eiotifiedcyrillic") [ 0x0464 ]
, mapEntry ("Elcyrillic") [ 0x041B ]
, mapEntry ("Elevenroman") [ 0x216A ]
, mapEntry ("Emacron") [ 0x0112 ]
, mapEntry ("Emacronacute") [ 0x1E16 ]
, mapEntry ("Emacrongrave") [ 0x1E14 ]
, mapEntry ("Emcyrillic") [ 0x041C ]
, mapEntry ("Emonospace") [ 0xFF25 ]
, mapEntry ("Encyrillic") [ 0x041D ]
, mapEntry ("Endescendercyrillic") [ 0x04A2 ]
, mapEntry ("Eng") [ 0x014A ]
, mapEntry ("Enghecyrillic") [ 0x04A4 ]
, mapEntry ("Enhookcyrillic") [ 0x04C7 ]
, mapEntry ("Eogonek") [ 0x0118 ]
, mapEntry ("Eopen") [ 0x0190 ]
, mapEntry ("Epsilon") [ 0x0395 ]
, mapEntry ("Epsilontonos") [ 0x0388 ]
, mapEntry ("Ercyrillic") [ 0x0420 ]
, mapEntry ("Ereversed") [ 0x018E ]
, mapEntry ("Ereversedcyrillic") [ 0x042D ]
, mapEntry ("Escyrillic") [ 0x0421 ]
, mapEntry ("Esdescendercyrillic") [ 0x04AA ]
, mapEntry ("Esh") [ 0x01A9 ]
, mapEntry ("Esmall") [ 0xF765 ]
, mapEntry ("Eta") [ 0x0397 ]
, mapEntry ("Etarmenian") [ 0x0538 ]
, mapEntry ("Etatonos") [ 0x0389 ]
, mapEntry ("Eth") [ 0xD0 ]
, mapEntry ("Ethsmall") [ 0xF7F0 ]
, mapEntry ("Etilde") [ 0x1EBC ]
, mapEntry ("Etildebelow") [ 0x1E1A ]
, mapEntry ("Euro") [ 0x20AC ]
, mapEntry ("Ezh") [ 0x01B7 ]
, mapEntry ("Ezhcaron") [ 0x01EE ]
, mapEntry ("Ezhreversed") [ 0x01B8 ]
, mapEntry ("F") [ 0x46 ]
, mapEntry ("Fcircle") [ 0x24BB ]
, mapEntry ("Fdotaccent") [ 0x1E1E ]
, mapEntry ("Feharmenian") [ 0x0556 ]
, mapEntry ("Feicoptic") [ 0x03E4 ]
, mapEntry ("Fhook") [ 0x0191 ]
, mapEntry ("Fitacyrillic") [ 0x0472 ]
, mapEntry ("Fiveroman") [ 0x2164 ]
, mapEntry ("Fmonospace") [ 0xFF26 ]
, mapEntry ("Fourroman") [ 0x2163 ]
, mapEntry ("Fsmall") [ 0xF766 ]
, mapEntry ("G") [ 0x47 ]
, mapEntry ("GBsquare") [ 0x3387 ]
, mapEntry ("Gacute") [ 0x01F4 ]
, mapEntry ("Gamma") [ 0x0393 ]
, mapEntry ("Gammaafrican") [ 0x0194 ]
, mapEntry ("Gangiacoptic") [ 0x03EA ]
, mapEntry ("Gbreve") [ 0x011E ]
, mapEntry ("Gcaron") [ 0x01E6 ]
, mapEntry ("Gcedilla") [ 0x0122 ]
, mapEntry ("Gcircle") [ 0x24BC ]
, mapEntry ("Gcircumflex") [ 0x011C ]
, mapEntry ("Gcommaaccent") [ 0x0122 ]
, mapEntry ("Gdot") [ 0x0120 ]
, mapEntry ("Gdotaccent") [ 0x0120 ]
, mapEntry ("Gecyrillic") [ 0x0413 ]
, mapEntry ("Ghadarmenian") [ 0x0542 ]
, mapEntry ("Ghemiddlehookcyrillic") [ 0x0494 ]
, mapEntry ("Ghestrokecyrillic") [ 0x0492 ]
, mapEntry ("Gheupturncyrillic") [ 0x0490 ]
, mapEntry ("Ghook") [ 0x0193 ]
, mapEntry ("Gimarmenian") [ 0x0533 ]
, mapEntry ("Gjecyrillic") [ 0x0403 ]
, mapEntry ("Gmacron") [ 0x1E20 ]
, mapEntry ("Gmonospace") [ 0xFF27 ]
, mapEntry ("Grave") [ 0xF6CE ]
, mapEntry ("Gravesmall") [ 0xF760 ]
, mapEntry ("Gsmall") [ 0xF767 ]
, mapEntry ("Gsmallhook") [ 0x029B ]
, mapEntry ("Gstroke") [ 0x01E4 ]
, mapEntry ("H") [ 0x48 ]
, mapEntry ("H18533") [ 0x25CF ]
, mapEntry ("H18543") [ 0x25AA ]
, mapEntry ("H18551") [ 0x25AB ]
, mapEntry ("H22073") [ 0x25A1 ]
, mapEntry ("HPsquare") [ 0x33CB ]
, mapEntry ("Haabkhasiancyrillic") [ 0x04A8 ]
, mapEntry ("Hadescendercyrillic") [ 0x04B2 ]
, mapEntry ("Hardsigncyrillic") [ 0x042A ]
, mapEntry ("Hbar") [ 0x0126 ]
, mapEntry ("Hbrevebelow") [ 0x1E2A ]
, mapEntry ("Hcedilla") [ 0x1E28 ]
, mapEntry ("Hcircle") [ 0x24BD ]
, mapEntry ("Hcircumflex") [ 0x0124 ]
, mapEntry ("Hdieresis") [ 0x1E26 ]
, mapEntry ("Hdotaccent") [ 0x1E22 ]
, mapEntry ("Hdotbelow") [ 0x1E24 ]
, mapEntry ("Hmonospace") [ 0xFF28 ]
, mapEntry ("Hoarmenian") [ 0x0540 ]
, mapEntry ("Horicoptic") [ 0x03E8 ]
, mapEntry ("Hsmall") [ 0xF768 ]
, mapEntry ("Hungarumlaut") [ 0xF6CF ]
, mapEntry ("Hungarumlautsmall") [ 0xF6F8 ]
, mapEntry ("Hzsquare") [ 0x3390 ]
, mapEntry ("I") [ 0x49 ]
, mapEntry ("IAcyrillic") [ 0x042F ]
, mapEntry ("IJ") [ 0x0132 ]
, mapEntry ("IUcyrillic") [ 0x042E ]
, mapEntry ("Iacute") [ 0xCD ]
, mapEntry ("Iacutesmall") [ 0xF7ED ]
, mapEntry ("Ibreve") [ 0x012C ]
, mapEntry ("Icaron") [ 0x01CF ]
, mapEntry ("Icircle") [ 0x24BE ]
, mapEntry ("Icircumflex") [ 0xCE ]
, mapEntry ("Icircumflexsmall") [ 0xF7EE ]
, mapEntry ("Icyrillic") [ 0x0406 ]
, mapEntry ("Idblgrave") [ 0x0208 ]
, mapEntry ("Idieresis") [ 0xCF ]
, mapEntry ("Idieresisacute") [ 0x1E2E ]
, mapEntry ("Idieresiscyrillic") [ 0x04E4 ]
, mapEntry ("Idieresissmall") [ 0xF7EF ]
, mapEntry ("Idot") [ 0x0130 ]
, mapEntry ("Idotaccent") [ 0x0130 ]
, mapEntry ("Idotbelow") [ 0x1ECA ]
, mapEntry ("Iebrevecyrillic") [ 0x04D6 ]
, mapEntry ("Iecyrillic") [ 0x0415 ]
, mapEntry ("Ifraktur") [ 0x2111 ]
, mapEntry ("Igrave") [ 0xCC ]
, mapEntry ("Igravesmall") [ 0xF7EC ]
, mapEntry ("Ihookabove") [ 0x1EC8 ]
, mapEntry ("Iicyrillic") [ 0x0418 ]
, mapEntry ("Iinvertedbreve") [ 0x020A ]
, mapEntry ("Iishortcyrillic") [ 0x0419 ]
, mapEntry ("Imacron") [ 0x012A ]
, mapEntry ("Imacroncyrillic") [ 0x04E2 ]
, mapEntry ("Imonospace") [ 0xFF29 ]
, mapEntry ("Iniarmenian") [ 0x053B ]
, mapEntry ("Iocyrillic") [ 0x0401 ]
, mapEntry ("Iogonek") [ 0x012E ]
, mapEntry ("Iota") [ 0x0399 ]
, mapEntry ("Iotaafrican") [ 0x0196 ]
, mapEntry ("Iotadieresis") [ 0x03AA ]
, mapEntry ("Iotatonos") [ 0x038A ]
, mapEntry ("Ismall") [ 0xF769 ]
, mapEntry ("Istroke") [ 0x0197 ]
, mapEntry ("Itilde") [ 0x0128 ]
, mapEntry ("Itildebelow") [ 0x1E2C ]
, mapEntry ("Izhitsacyrillic") [ 0x0474 ]
, mapEntry ("Izhitsadblgravecyrillic") [ 0x0476 ]
, mapEntry ("J") [ 0x4A ]
, mapEntry ("Jaarmenian") [ 0x0541 ]
, mapEntry ("Jcircle") [ 0x24BF ]
, mapEntry ("Jcircumflex") [ 0x0134 ]
, mapEntry ("Jecyrillic") [ 0x0408 ]
, mapEntry ("Jheharmenian") [ 0x054B ]
, mapEntry ("Jmonospace") [ 0xFF2A ]
, mapEntry ("Jsmall") [ 0xF76A ]
, mapEntry ("K") [ 0x4B ]
, mapEntry ("KBsquare") [ 0x3385 ]
, mapEntry ("KKsquare") [ 0x33CD ]
, mapEntry ("Kabashkircyrillic") [ 0x04A0 ]
, mapEntry ("Kacute") [ 0x1E30 ]
, mapEntry ("Kacyrillic") [ 0x041A ]
, mapEntry ("Kadescendercyrillic") [ 0x049A ]
, mapEntry ("Kahookcyrillic") [ 0x04C3 ]
, mapEntry ("Kappa") [ 0x039A ]
, mapEntry ("Kastrokecyrillic") [ 0x049E ]
, mapEntry ("Kaverticalstrokecyrillic") [ 0x049C ]
, mapEntry ("Kcaron") [ 0x01E8 ]
, mapEntry ("Kcedilla") [ 0x0136 ]
, mapEntry ("Kcircle") [ 0x24C0 ]
, mapEntry ("Kcommaaccent") [ 0x0136 ]
, mapEntry ("Kdotbelow") [ 0x1E32 ]
, mapEntry ("Keharmenian") [ 0x0554 ]
, mapEntry ("Kenarmenian") [ 0x053F ]
, mapEntry ("Khacyrillic") [ 0x0425 ]
, mapEntry ("Kheicoptic") [ 0x03E6 ]
, mapEntry ("Khook") [ 0x0198 ]
, mapEntry ("Kjecyrillic") [ 0x040C ]
, mapEntry ("Klinebelow") [ 0x1E34 ]
, mapEntry ("Kmonospace") [ 0xFF2B ]
, mapEntry ("Koppacyrillic") [ 0x0480 ]
, mapEntry ("Koppagreek") [ 0x03DE ]
, mapEntry ("Ksicyrillic") [ 0x046E ]
, mapEntry ("Ksmall") [ 0xF76B ]
, mapEntry ("L") [ 0x4C ]
, mapEntry ("LJ") [ 0x01C7 ]
, mapEntry ("LL") [ 0xF6BF ]
, mapEntry ("Lacute") [ 0x0139 ]
, mapEntry ("Lambda") [ 0x039B ]
, mapEntry ("Lcaron") [ 0x013D ]
, mapEntry ("Lcedilla") [ 0x013B ]
, mapEntry ("Lcircle") [ 0x24C1 ]
, mapEntry ("Lcircumflexbelow") [ 0x1E3C ]
, mapEntry ("Lcommaaccent") [ 0x013B ]
, mapEntry ("Ldot") [ 0x013F ]
, mapEntry ("Ldotaccent") [ 0x013F ]
, mapEntry ("Ldotbelow") [ 0x1E36 ]
, mapEntry ("Ldotbelowmacron") [ 0x1E38 ]
, mapEntry ("Liwnarmenian") [ 0x053C ]
, mapEntry ("Lj") [ 0x01C8 ]
, mapEntry ("Ljecyrillic") [ 0x0409 ]
, mapEntry ("Llinebelow") [ 0x1E3A ]
, mapEntry ("Lmonospace") [ 0xFF2C ]
, mapEntry ("Lslash") [ 0x0141 ]
, mapEntry ("Lslashsmall") [ 0xF6F9 ]
, mapEntry ("Lsmall") [ 0xF76C ]
, mapEntry ("M") [ 0x4D ]
, mapEntry ("MBsquare") [ 0x3386 ]
, mapEntry ("Macron") [ 0xF6D0 ]
, mapEntry ("Macronsmall") [ 0xF7AF ]
, mapEntry ("Macute") [ 0x1E3E ]
, mapEntry ("Mcircle") [ 0x24C2 ]
, mapEntry ("Mdotaccent") [ 0x1E40 ]
, mapEntry ("Mdotbelow") [ 0x1E42 ]
, mapEntry ("Menarmenian") [ 0x0544 ]
, mapEntry ("Mmonospace") [ 0xFF2D ]
, mapEntry ("Msmall") [ 0xF76D ]
, mapEntry ("Mturned") [ 0x019C ]
, mapEntry ("Mu") [ 0x039C ]
, mapEntry ("N") [ 0x4E ]
, mapEntry ("NJ") [ 0x01CA ]
, mapEntry ("Nacute") [ 0x0143 ]
, mapEntry ("Ncaron") [ 0x0147 ]
, mapEntry ("Ncedilla") [ 0x0145 ]
, mapEntry ("Ncircle") [ 0x24C3 ]
, mapEntry ("Ncircumflexbelow") [ 0x1E4A ]
, mapEntry ("Ncommaaccent") [ 0x0145 ]
, mapEntry ("Ndotaccent") [ 0x1E44 ]
, mapEntry ("Ndotbelow") [ 0x1E46 ]
, mapEntry ("Nhookleft") [ 0x019D ]
, mapEntry ("Nineroman") [ 0x2168 ]
, mapEntry ("Nj") [ 0x01CB ]
, mapEntry ("Njecyrillic") [ 0x040A ]
, mapEntry ("Nlinebelow") [ 0x1E48 ]
, mapEntry ("Nmonospace") [ 0xFF2E ]
, mapEntry ("Nowarmenian") [ 0x0546 ]
, mapEntry ("Nsmall") [ 0xF76E ]
, mapEntry ("Ntilde") [ 0xD1 ]
, mapEntry ("Ntildesmall") [ 0xF7F1 ]
, mapEntry ("Nu") [ 0x039D ]
, mapEntry ("O") [ 0x4F ]
, mapEntry ("OE") [ 0x0152 ]
, mapEntry ("OEsmall") [ 0xF6FA ]
, mapEntry ("Oacute") [ 0xD3 ]
, mapEntry ("Oacutesmall") [ 0xF7F3 ]
, mapEntry ("Obarredcyrillic") [ 0x04E8 ]
, mapEntry ("Obarreddieresiscyrillic") [ 0x04EA ]
]
def glyphEncs2 =
[ mapEntry ("Obreve") [ 0x014E ]
, mapEntry ("Ocaron") [ 0x01D1 ]
, mapEntry ("Ocenteredtilde") [ 0x019F ]
, mapEntry ("Ocircle") [ 0x24C4 ]
, mapEntry ("Ocircumflex") [ 0xD4 ]
, mapEntry ("Ocircumflexacute") [ 0x1ED0 ]
, mapEntry ("Ocircumflexdotbelow") [ 0x1ED8 ]
, mapEntry ("Ocircumflexgrave") [ 0x1ED2 ]
, mapEntry ("Ocircumflexhookabove") [ 0x1ED4 ]
, mapEntry ("Ocircumflexsmall") [ 0xF7F4 ]
, mapEntry ("Ocircumflextilde") [ 0x1ED6 ]
, mapEntry ("Ocyrillic") [ 0x041E ]
, mapEntry ("Odblacute") [ 0x0150 ]
, mapEntry ("Odblgrave") [ 0x020C ]
, mapEntry ("Odieresis") [ 0xD6 ]
, mapEntry ("Odieresiscyrillic") [ 0x04E6 ]
, mapEntry ("Odieresissmall") [ 0xF7F6 ]
, mapEntry ("Odotbelow") [ 0x1ECC ]
, mapEntry ("Ogoneksmall") [ 0xF6FB ]
, mapEntry ("Ograve") [ 0xD2 ]
, mapEntry ("Ogravesmall") [ 0xF7F2 ]
, mapEntry ("Oharmenian") [ 0x0555 ]
, mapEntry ("Ohm") [ 0x2126 ]
, mapEntry ("Ohookabove") [ 0x1ECE ]
, mapEntry ("Ohorn") [ 0x01A0 ]
, mapEntry ("Ohornacute") [ 0x1EDA ]
, mapEntry ("Ohorndotbelow") [ 0x1EE2 ]
, mapEntry ("Ohorngrave") [ 0x1EDC ]
, mapEntry ("Ohornhookabove") [ 0x1EDE ]
, mapEntry ("Ohorntilde") [ 0x1EE0 ]
, mapEntry ("Ohungarumlaut") [ 0x0150 ]
, mapEntry ("Oi") [ 0x01A2 ]
, mapEntry ("Oinvertedbreve") [ 0x020E ]
, mapEntry ("Omacron") [ 0x014C ]
, mapEntry ("Omacronacute") [ 0x1E52 ]
, mapEntry ("Omacrongrave") [ 0x1E50 ]
, mapEntry ("Omega") [ 0x2126 ]
, mapEntry ("Omegacyrillic") [ 0x0460 ]
, mapEntry ("Omegagreek") [ 0x03A9 ]
, mapEntry ("Omegaroundcyrillic") [ 0x047A ]
, mapEntry ("Omegatitlocyrillic") [ 0x047C ]
, mapEntry ("Omegatonos") [ 0x038F ]
, mapEntry ("Omicron") [ 0x039F ]
, mapEntry ("Omicrontonos") [ 0x038C ]
, mapEntry ("Omonospace") [ 0xFF2F ]
, mapEntry ("Oneroman") [ 0x2160 ]
, mapEntry ("Oogonek") [ 0x01EA ]
, mapEntry ("Oogonekmacron") [ 0x01EC ]
, mapEntry ("Oopen") [ 0x0186 ]
, mapEntry ("Oslash") [ 0xD8 ]
, mapEntry ("Oslashacute") [ 0x01FE ]
, mapEntry ("Oslashsmall") [ 0xF7F8 ]
, mapEntry ("Osmall") [ 0xF76F ]
, mapEntry ("Ostrokeacute") [ 0x01FE ]
, mapEntry ("Otcyrillic") [ 0x047E ]
, mapEntry ("Otilde") [ 0xD5 ]
, mapEntry ("Otildeacute") [ 0x1E4C ]
, mapEntry ("Otildedieresis") [ 0x1E4E ]
, mapEntry ("Otildesmall") [ 0xF7F5 ]
, mapEntry ("P") [ 0x50 ]
, mapEntry ("Pacute") [ 0x1E54 ]
, mapEntry ("Pcircle") [ 0x24C5 ]
, mapEntry ("Pdotaccent") [ 0x1E56 ]
, mapEntry ("Pecyrillic") [ 0x041F ]
, mapEntry ("Peharmenian") [ 0x054A ]
, mapEntry ("Pemiddlehookcyrillic") [ 0x04A6 ]
, mapEntry ("Phi") [ 0x03A6 ]
, mapEntry ("Phook") [ 0x01A4 ]
, mapEntry ("Pi") [ 0x03A0 ]
, mapEntry ("Piwrarmenian") [ 0x0553 ]
, mapEntry ("Pmonospace") [ 0xFF30 ]
, mapEntry ("Psi") [ 0x03A8 ]
, mapEntry ("Psicyrillic") [ 0x0470 ]
, mapEntry ("Psmall") [ 0xF770 ]
, mapEntry ("Q") [ 0x51 ]
, mapEntry ("Qcircle") [ 0x24C6 ]
, mapEntry ("Qmonospace") [ 0xFF31 ]
, mapEntry ("Qsmall") [ 0xF771 ]
, mapEntry ("R") [ 0x52 ]
, mapEntry ("Raarmenian") [ 0x054C ]
, mapEntry ("Racute") [ 0x0154 ]
, mapEntry ("Rcaron") [ 0x0158 ]
, mapEntry ("Rcedilla") [ 0x0156 ]
, mapEntry ("Rcircle") [ 0x24C7 ]
, mapEntry ("Rcommaaccent") [ 0x0156 ]
, mapEntry ("Rdblgrave") [ 0x0210 ]
, mapEntry ("Rdotaccent") [ 0x1E58 ]
, mapEntry ("Rdotbelow") [ 0x1E5A ]
, mapEntry ("Rdotbelowmacron") [ 0x1E5C ]
, mapEntry ("Reharmenian") [ 0x0550 ]
, mapEntry ("Rfraktur") [ 0x211C ]
, mapEntry ("Rho") [ 0x03A1 ]
, mapEntry ("Ringsmall") [ 0xF6FC ]
, mapEntry ("Rinvertedbreve") [ 0x0212 ]
, mapEntry ("Rlinebelow") [ 0x1E5E ]
, mapEntry ("Rmonospace") [ 0xFF32 ]
, mapEntry ("Rsmall") [ 0xF772 ]
, mapEntry ("Rsmallinverted") [ 0x0281 ]
, mapEntry ("Rsmallinvertedsuperior") [ 0x02B6 ]
, mapEntry ("S") [ 0x53 ]
, mapEntry ("SF010000") [ 0x250C ]
, mapEntry ("SF020000") [ 0x2514 ]
, mapEntry ("SF030000") [ 0x2510 ]
, mapEntry ("SF040000") [ 0x2518 ]
, mapEntry ("SF050000") [ 0x253C ]
, mapEntry ("SF060000") [ 0x252C ]
, mapEntry ("SF070000") [ 0x2534 ]
, mapEntry ("SF080000") [ 0x251C ]
, mapEntry ("SF090000") [ 0x2524 ]
, mapEntry ("SF100000") [ 0x2500 ]
, mapEntry ("SF110000") [ 0x2502 ]
, mapEntry ("SF190000") [ 0x2561 ]
, mapEntry ("SF200000") [ 0x2562 ]
, mapEntry ("SF210000") [ 0x2556 ]
, mapEntry ("SF220000") [ 0x2555 ]
, mapEntry ("SF230000") [ 0x2563 ]
, mapEntry ("SF240000") [ 0x2551 ]
, mapEntry ("SF250000") [ 0x2557 ]
, mapEntry ("SF260000") [ 0x255D ]
, mapEntry ("SF270000") [ 0x255C ]
, mapEntry ("SF280000") [ 0x255B ]
, mapEntry ("SF360000") [ 0x255E ]
, mapEntry ("SF370000") [ 0x255F ]
, mapEntry ("SF380000") [ 0x255A ]
, mapEntry ("SF390000") [ 0x2554 ]
, mapEntry ("SF400000") [ 0x2569 ]
, mapEntry ("SF410000") [ 0x2566 ]
, mapEntry ("SF420000") [ 0x2560 ]
, mapEntry ("SF430000") [ 0x2550 ]
, mapEntry ("SF440000") [ 0x256C ]
, mapEntry ("SF450000") [ 0x2567 ]
, mapEntry ("SF460000") [ 0x2568 ]
, mapEntry ("SF470000") [ 0x2564 ]
, mapEntry ("SF480000") [ 0x2565 ]
, mapEntry ("SF490000") [ 0x2559 ]
, mapEntry ("SF500000") [ 0x2558 ]
, mapEntry ("SF510000") [ 0x2552 ]
, mapEntry ("SF520000") [ 0x2553 ]
, mapEntry ("SF530000") [ 0x256B ]
, mapEntry ("SF540000") [ 0x256A ]
, mapEntry ("Sacute") [ 0x015A ]
, mapEntry ("Sacutedotaccent") [ 0x1E64 ]
, mapEntry ("Sampigreek") [ 0x03E0 ]
, mapEntry ("Scaron") [ 0x0160 ]
, mapEntry ("Scarondotaccent") [ 0x1E66 ]
, mapEntry ("Scaronsmall") [ 0xF6FD ]
, mapEntry ("Scedilla") [ 0x015E ]
, mapEntry ("Schwa") [ 0x018F ]
, mapEntry ("Schwacyrillic") [ 0x04D8 ]
, mapEntry ("Schwadieresiscyrillic") [ 0x04DA ]
, mapEntry ("Scircle") [ 0x24C8 ]
, mapEntry ("Scircumflex") [ 0x015C ]
, mapEntry ("Scommaaccent") [ 0x0218 ]
, mapEntry ("Sdotaccent") [ 0x1E60 ]
, mapEntry ("Sdotbelow") [ 0x1E62 ]
, mapEntry ("Sdotbelowdotaccent") [ 0x1E68 ]
, mapEntry ("Seharmenian") [ 0x054D ]
, mapEntry ("Sevenroman") [ 0x2166 ]
, mapEntry ("Shaarmenian") [ 0x0547 ]
, mapEntry ("Shacyrillic") [ 0x0428 ]
, mapEntry ("Shchacyrillic") [ 0x0429 ]
, mapEntry ("Sheicoptic") [ 0x03E2 ]
, mapEntry ("Shhacyrillic") [ 0x04BA ]
, mapEntry ("Shimacoptic") [ 0x03EC ]
, mapEntry ("Sigma") [ 0x03A3 ]
, mapEntry ("Sixroman") [ 0x2165 ]
, mapEntry ("Smonospace") [ 0xFF33 ]
, mapEntry ("Softsigncyrillic") [ 0x042C ]
, mapEntry ("Ssmall") [ 0xF773 ]
, mapEntry ("Stigmagreek") [ 0x03DA ]
, mapEntry ("T") [ 0x54 ]
, mapEntry ("Tau") [ 0x03A4 ]
, mapEntry ("Tbar") [ 0x0166 ]
, mapEntry ("Tcaron") [ 0x0164 ]
, mapEntry ("Tcedilla") [ 0x0162 ]
, mapEntry ("Tcircle") [ 0x24C9 ]
, mapEntry ("Tcircumflexbelow") [ 0x1E70 ]
, mapEntry ("Tcommaaccent") [ 0x0162 ]
, mapEntry ("Tdotaccent") [ 0x1E6A ]
, mapEntry ("Tdotbelow") [ 0x1E6C ]
, mapEntry ("Tecyrillic") [ 0x0422 ]
, mapEntry ("Tedescendercyrillic") [ 0x04AC ]
, mapEntry ("Tenroman") [ 0x2169 ]
, mapEntry ("Tetsecyrillic") [ 0x04B4 ]
, mapEntry ("Theta") [ 0x0398 ]
, mapEntry ("Thook") [ 0x01AC ]
, mapEntry ("Thorn") [ 0xDE ]
, mapEntry ("Thornsmall") [ 0xF7FE ]
, mapEntry ("Threeroman") [ 0x2162 ]
, mapEntry ("Tildesmall") [ 0xF6FE ]
, mapEntry ("Tiwnarmenian") [ 0x054F ]
, mapEntry ("Tlinebelow") [ 0x1E6E ]
, mapEntry ("Tmonospace") [ 0xFF34 ]
, mapEntry ("Toarmenian") [ 0x0539 ]
, mapEntry ("Tonefive") [ 0x01BC ]
, mapEntry ("Tonesix") [ 0x0184 ]
, mapEntry ("Tonetwo") [ 0x01A7 ]
, mapEntry ("Tretroflexhook") [ 0x01AE ]
, mapEntry ("Tsecyrillic") [ 0x0426 ]
, mapEntry ("Tshecyrillic") [ 0x040B ]
, mapEntry ("Tsmall") [ 0xF774 ]
, mapEntry ("Twelveroman") [ 0x216B ]
, mapEntry ("Tworoman") [ 0x2161 ]
, mapEntry ("U") [ 0x55 ]
, mapEntry ("Uacute") [ 0xDA ]
, mapEntry ("Uacutesmall") [ 0xF7FA ]
, mapEntry ("Ubreve") [ 0x016C ]
, mapEntry ("Ucaron") [ 0x01D3 ]
, mapEntry ("Ucircle") [ 0x24CA ]
, mapEntry ("Ucircumflex") [ 0xDB ]
, mapEntry ("Ucircumflexbelow") [ 0x1E76 ]
, mapEntry ("Ucircumflexsmall") [ 0xF7FB ]
, mapEntry ("Ucyrillic") [ 0x0423 ]
, mapEntry ("Udblacute") [ 0x0170 ]
, mapEntry ("Udblgrave") [ 0x0214 ]
, mapEntry ("Udieresis") [ 0xDC ]
, mapEntry ("Udieresisacute") [ 0x01D7 ]
, mapEntry ("Udieresisbelow") [ 0x1E72 ]
, mapEntry ("Udieresiscaron") [ 0x01D9 ]
, mapEntry ("Udieresiscyrillic") [ 0x04F0 ]
, mapEntry ("Udieresisgrave") [ 0x01DB ]
, mapEntry ("Udieresismacron") [ 0x01D5 ]
, mapEntry ("Udieresissmall") [ 0xF7FC ]
, mapEntry ("Udotbelow") [ 0x1EE4 ]
, mapEntry ("Ugrave") [ 0xD9 ]
, mapEntry ("Ugravesmall") [ 0xF7F9 ]
, mapEntry ("Uhookabove") [ 0x1EE6 ]
, mapEntry ("Uhorn") [ 0x01AF ]
, mapEntry ("Uhornacute") [ 0x1EE8 ]
, mapEntry ("Uhorndotbelow") [ 0x1EF0 ]
, mapEntry ("Uhorngrave") [ 0x1EEA ]
, mapEntry ("Uhornhookabove") [ 0x1EEC ]
, mapEntry ("Uhorntilde") [ 0x1EEE ]
, mapEntry ("Uhungarumlaut") [ 0x0170 ]
, mapEntry ("Uhungarumlautcyrillic") [ 0x04F2 ]
, mapEntry ("Uinvertedbreve") [ 0x0216 ]
, mapEntry ("Ukcyrillic") [ 0x0478 ]
, mapEntry ("Umacron") [ 0x016A ]
, mapEntry ("Umacroncyrillic") [ 0x04EE ]
, mapEntry ("Umacrondieresis") [ 0x1E7A ]
, mapEntry ("Umonospace") [ 0xFF35 ]
, mapEntry ("Uogonek") [ 0x0172 ]
, mapEntry ("Upsilon") [ 0x03A5 ]
, mapEntry ("Upsilon1") [ 0x03D2 ]
, mapEntry ("Upsilonacutehooksymbolgreek") [ 0x03D3 ]
, mapEntry ("Upsilonafrican") [ 0x01B1 ]
, mapEntry ("Upsilondieresis") [ 0x03AB ]
, mapEntry ("Upsilondieresishooksymbolgreek") [ 0x03D4 ]
, mapEntry ("Upsilonhooksymbol") [ 0x03D2 ]
, mapEntry ("Upsilontonos") [ 0x038E ]
, mapEntry ("Uring") [ 0x016E ]
, mapEntry ("Ushortcyrillic") [ 0x040E ]
, mapEntry ("Usmall") [ 0xF775 ]
, mapEntry ("Ustraightcyrillic") [ 0x04AE ]
, mapEntry ("Ustraightstrokecyrillic") [ 0x04B0 ]
, mapEntry ("Utilde") [ 0x0168 ]
, mapEntry ("Utildeacute") [ 0x1E78 ]
, mapEntry ("Utildebelow") [ 0x1E74 ]
, mapEntry ("V") [ 0x56 ]
, mapEntry ("Vcircle") [ 0x24CB ]
, mapEntry ("Vdotbelow") [ 0x1E7E ]
, mapEntry ("Vecyrillic") [ 0x0412 ]
, mapEntry ("Vewarmenian") [ 0x054E ]
, mapEntry ("Vhook") [ 0x01B2 ]
, mapEntry ("Vmonospace") [ 0xFF36 ]
, mapEntry ("Voarmenian") [ 0x0548 ]
, mapEntry ("Vsmall") [ 0xF776 ]
, mapEntry ("Vtilde") [ 0x1E7C ]
, mapEntry ("W") [ 0x57 ]
, mapEntry ("Wacute") [ 0x1E82 ]
, mapEntry ("Wcircle") [ 0x24CC ]
, mapEntry ("Wcircumflex") [ 0x0174 ]
, mapEntry ("Wdieresis") [ 0x1E84 ]
, mapEntry ("Wdotaccent") [ 0x1E86 ]
, mapEntry ("Wdotbelow") [ 0x1E88 ]
, mapEntry ("Wgrave") [ 0x1E80 ]
, mapEntry ("Wmonospace") [ 0xFF37 ]
, mapEntry ("Wsmall") [ 0xF777 ]
, mapEntry ("X") [ 0x58 ]
, mapEntry ("Xcircle") [ 0x24CD ]
, mapEntry ("Xdieresis") [ 0x1E8C ]
, mapEntry ("Xdotaccent") [ 0x1E8A ]
, mapEntry ("Xeharmenian") [ 0x053D ]
, mapEntry ("Xi") [ 0x039E ]
, mapEntry ("Xmonospace") [ 0xFF38 ]
, mapEntry ("Xsmall") [ 0xF778 ]
, mapEntry ("Y") [ 0x59 ]
, mapEntry ("Yacute") [ 0xDD ]
, mapEntry ("Yacutesmall") [ 0xF7FD ]
, mapEntry ("Yatcyrillic") [ 0x0462 ]
, mapEntry ("Ycircle") [ 0x24CE ]
, mapEntry ("Ycircumflex") [ 0x0176 ]
, mapEntry ("Ydieresis") [ 0x0178 ]
, mapEntry ("Ydieresissmall") [ 0xF7FF ]
, mapEntry ("Ydotaccent") [ 0x1E8E ]
, mapEntry ("Ydotbelow") [ 0x1EF4 ]
, mapEntry ("Yericyrillic") [ 0x042B ]
, mapEntry ("Yerudieresiscyrillic") [ 0x04F8 ]
, mapEntry ("Ygrave") [ 0x1EF2 ]
, mapEntry ("Yhook") [ 0x01B3 ]
, mapEntry ("Yhookabove") [ 0x1EF6 ]
, mapEntry ("Yiarmenian") [ 0x0545 ]
, mapEntry ("Yicyrillic") [ 0x0407 ]
, mapEntry ("Yiwnarmenian") [ 0x0552 ]
, mapEntry ("Ymonospace") [ 0xFF39 ]
, mapEntry ("Ysmall") [ 0xF779 ]
, mapEntry ("Ytilde") [ 0x1EF8 ]
, mapEntry ("Yusbigcyrillic") [ 0x046A ]
, mapEntry ("Yusbigiotifiedcyrillic") [ 0x046C ]
, mapEntry ("Yuslittlecyrillic") [ 0x0466 ]
, mapEntry ("Yuslittleiotifiedcyrillic") [ 0x0468 ]
, mapEntry ("Z") [ 0x5A ]
, mapEntry ("Zaarmenian") [ 0x0536 ]
, mapEntry ("Zacute") [ 0x0179 ]
, mapEntry ("Zcaron") [ 0x017D ]
, mapEntry ("Zcaronsmall") [ 0xF6FF ]
, mapEntry ("Zcircle") [ 0x24CF ]
, mapEntry ("Zcircumflex") [ 0x1E90 ]
, mapEntry ("Zdot") [ 0x017B ]
, mapEntry ("Zdotaccent") [ 0x017B ]
, mapEntry ("Zdotbelow") [ 0x1E92 ]
, mapEntry ("Zecyrillic") [ 0x0417 ]
, mapEntry ("Zedescendercyrillic") [ 0x0498 ]
, mapEntry ("Zedieresiscyrillic") [ 0x04DE ]
, mapEntry ("Zeta") [ 0x0396 ]
, mapEntry ("Zhearmenian") [ 0x053A ]
, mapEntry ("Zhebrevecyrillic") [ 0x04C1 ]
, mapEntry ("Zhecyrillic") [ 0x0416 ]
, mapEntry ("Zhedescendercyrillic") [ 0x0496 ]
, mapEntry ("Zhedieresiscyrillic") [ 0x04DC ]
, mapEntry ("Zlinebelow") [ 0x1E94 ]
, mapEntry ("Zmonospace") [ 0xFF3A ]
, mapEntry ("Zsmall") [ 0xF77A ]
, mapEntry ("Zstroke") [ 0x01B5 ]
, mapEntry ("a") [ 0x61 ]
, mapEntry ("aabengali") [ 0x0986 ]
, mapEntry ("aacute") [ 0xE1 ]
, mapEntry ("aadeva") [ 0x0906 ]
, mapEntry ("aagujarati") [ 0x0A86 ]
, mapEntry ("aagurmukhi") [ 0x0A06 ]
, mapEntry ("aamatragurmukhi") [ 0x0A3E ]
, mapEntry ("aarusquare") [ 0x3303 ]
, mapEntry ("aavowelsignbengali") [ 0x09BE ]
, mapEntry ("aavowelsigndeva") [ 0x093E ]
, mapEntry ("aavowelsigngujarati") [ 0x0ABE ]
, mapEntry ("abbreviationmarkarmenian") [ 0x055F ]
, mapEntry ("abbreviationsigndeva") [ 0x0970 ]
, mapEntry ("abengali") [ 0x0985 ]
, mapEntry ("abopomofo") [ 0x311A ]
, mapEntry ("abreve") [ 0x0103 ]
, mapEntry ("abreveacute") [ 0x1EAF ]
, mapEntry ("abrevecyrillic") [ 0x04D1 ]
, mapEntry ("abrevedotbelow") [ 0x1EB7 ]
, mapEntry ("abrevegrave") [ 0x1EB1 ]
, mapEntry ("abrevehookabove") [ 0x1EB3 ]
, mapEntry ("abrevetilde") [ 0x1EB5 ]
, mapEntry ("acaron") [ 0x01CE ]
, mapEntry ("acircle") [ 0x24D0 ]
, mapEntry ("acircumflex") [ 0xE2 ]
, mapEntry ("acircumflexacute") [ 0x1EA5 ]
, mapEntry ("acircumflexdotbelow") [ 0x1EAD ]
, mapEntry ("acircumflexgrave") [ 0x1EA7 ]
, mapEntry ("acircumflexhookabove") [ 0x1EA9 ]
, mapEntry ("acircumflextilde") [ 0x1EAB ]
, mapEntry ("acute") [ 0xB4 ]
, mapEntry ("acutebelowcmb") [ 0x0317 ]
, mapEntry ("acutecmb") [ 0x0301 ]
, mapEntry ("acutecomb") [ 0x0301 ]
, mapEntry ("acutedeva") [ 0x0954 ]
, mapEntry ("acutelowmod") [ 0x02CF ]
, mapEntry ("acutetonecmb") [ 0x0341 ]
, mapEntry ("acyrillic") [ 0x0430 ]
, mapEntry ("adblgrave") [ 0x0201 ]
, mapEntry ("addakgurmukhi") [ 0x0A71 ]
, mapEntry ("adeva") [ 0x0905 ]
, mapEntry ("adieresis") [ 0xE4 ]
, mapEntry ("adieresiscyrillic") [ 0x04D3 ]
, mapEntry ("adieresismacron") [ 0x01DF ]
, mapEntry ("adotbelow") [ 0x1EA1 ]
, mapEntry ("adotmacron") [ 0x01E1 ]
, mapEntry ("ae") [ 0xE6 ]
, mapEntry ("aeacute") [ 0x01FD ]
, mapEntry ("aekorean") [ 0x3150 ]
, mapEntry ("aemacron") [ 0x01E3 ]
, mapEntry ("afii00208") [ 0x2015 ]
, mapEntry ("afii08941") [ 0x20A4 ]
, mapEntry ("afii10017") [ 0x0410 ]
, mapEntry ("afii10018") [ 0x0411 ]
, mapEntry ("afii10019") [ 0x0412 ]
, mapEntry ("afii10020") [ 0x0413 ]
, mapEntry ("afii10021") [ 0x0414 ]
, mapEntry ("afii10022") [ 0x0415 ]
, mapEntry ("afii10023") [ 0x0401 ]
, mapEntry ("afii10024") [ 0x0416 ]
, mapEntry ("afii10025") [ 0x0417 ]
, mapEntry ("afii10026") [ 0x0418 ]
, mapEntry ("afii10027") [ 0x0419 ]
, mapEntry ("afii10028") [ 0x041A ]
, mapEntry ("afii10029") [ 0x041B ]
, mapEntry ("afii10030") [ 0x041C ]
]
def glyphEncs3 =
[ mapEntry ("afii10031") [ 0x041D ]
, mapEntry ("afii10032") [ 0x041E ]
, mapEntry ("afii10033") [ 0x041F ]
, mapEntry ("afii10034") [ 0x0420 ]
, mapEntry ("afii10035") [ 0x0421 ]
, mapEntry ("afii10036") [ 0x0422 ]
, mapEntry ("afii10037") [ 0x0423 ]
, mapEntry ("afii10038") [ 0x0424 ]
, mapEntry ("afii10039") [ 0x0425 ]
, mapEntry ("afii10040") [ 0x0426 ]
, mapEntry ("afii10041") [ 0x0427 ]
, mapEntry ("afii10042") [ 0x0428 ]
, mapEntry ("afii10043") [ 0x0429 ]
, mapEntry ("afii10044") [ 0x042A ]
, mapEntry ("afii10045") [ 0x042B ]
, mapEntry ("afii10046") [ 0x042C ]
, mapEntry ("afii10047") [ 0x042D ]
, mapEntry ("afii10048") [ 0x042E ]
, mapEntry ("afii10049") [ 0x042F ]
, mapEntry ("afii10050") [ 0x0490 ]
, mapEntry ("afii10051") [ 0x0402 ]
, mapEntry ("afii10052") [ 0x0403 ]
, mapEntry ("afii10053") [ 0x0404 ]
, mapEntry ("afii10054") [ 0x0405 ]
, mapEntry ("afii10055") [ 0x0406 ]
, mapEntry ("afii10056") [ 0x0407 ]
, mapEntry ("afii10057") [ 0x0408 ]
, mapEntry ("afii10058") [ 0x0409 ]
, mapEntry ("afii10059") [ 0x040A ]
, mapEntry ("afii10060") [ 0x040B ]
, mapEntry ("afii10061") [ 0x040C ]
, mapEntry ("afii10062") [ 0x040E ]
, mapEntry ("afii10063") [ 0xF6C4 ]
, mapEntry ("afii10064") [ 0xF6C5 ]
, mapEntry ("afii10065") [ 0x0430 ]
, mapEntry ("afii10066") [ 0x0431 ]
, mapEntry ("afii10067") [ 0x0432 ]
, mapEntry ("afii10068") [ 0x0433 ]
, mapEntry ("afii10069") [ 0x0434 ]
, mapEntry ("afii10070") [ 0x0435 ]
, mapEntry ("afii10071") [ 0x0451 ]
, mapEntry ("afii10072") [ 0x0436 ]
, mapEntry ("afii10073") [ 0x0437 ]
, mapEntry ("afii10074") [ 0x0438 ]
, mapEntry ("afii10075") [ 0x0439 ]
, mapEntry ("afii10076") [ 0x043A ]
, mapEntry ("afii10077") [ 0x043B ]
, mapEntry ("afii10078") [ 0x043C ]
, mapEntry ("afii10079") [ 0x043D ]
, mapEntry ("afii10080") [ 0x043E ]
, mapEntry ("afii10081") [ 0x043F ]
, mapEntry ("afii10082") [ 0x0440 ]
, mapEntry ("afii10083") [ 0x0441 ]
, mapEntry ("afii10084") [ 0x0442 ]
, mapEntry ("afii10085") [ 0x0443 ]
, mapEntry ("afii10086") [ 0x0444 ]
, mapEntry ("afii10087") [ 0x0445 ]
, mapEntry ("afii10088") [ 0x0446 ]
, mapEntry ("afii10089") [ 0x0447 ]
, mapEntry ("afii10090") [ 0x0448 ]
, mapEntry ("afii10091") [ 0x0449 ]
, mapEntry ("afii10092") [ 0x044A ]
, mapEntry ("afii10093") [ 0x044B ]
, mapEntry ("afii10094") [ 0x044C ]
, mapEntry ("afii10095") [ 0x044D ]
, mapEntry ("afii10096") [ 0x044E ]
, mapEntry ("afii10097") [ 0x044F ]
, mapEntry ("afii10098") [ 0x0491 ]
, mapEntry ("afii10099") [ 0x0452 ]
, mapEntry ("afii10100") [ 0x0453 ]
, mapEntry ("afii10101") [ 0x0454 ]
, mapEntry ("afii10102") [ 0x0455 ]
, mapEntry ("afii10103") [ 0x0456 ]
, mapEntry ("afii10104") [ 0x0457 ]
, mapEntry ("afii10105") [ 0x0458 ]
, mapEntry ("afii10106") [ 0x0459 ]
, mapEntry ("afii10107") [ 0x045A ]
, mapEntry ("afii10108") [ 0x045B ]
, mapEntry ("afii10109") [ 0x045C ]
, mapEntry ("afii10110") [ 0x045E ]
, mapEntry ("afii10145") [ 0x040F ]
, mapEntry ("afii10146") [ 0x0462 ]
, mapEntry ("afii10147") [ 0x0472 ]
, mapEntry ("afii10148") [ 0x0474 ]
, mapEntry ("afii10192") [ 0xF6C6 ]
, mapEntry ("afii10193") [ 0x045F ]
, mapEntry ("afii10194") [ 0x0463 ]
, mapEntry ("afii10195") [ 0x0473 ]
, mapEntry ("afii10196") [ 0x0475 ]
, mapEntry ("afii10831") [ 0xF6C7 ]
, mapEntry ("afii10832") [ 0xF6C8 ]
, mapEntry ("afii10846") [ 0x04D9 ]
, mapEntry ("afii299") [ 0x200E ]
, mapEntry ("afii300") [ 0x200F ]
, mapEntry ("afii301") [ 0x200D ]
, mapEntry ("afii57381") [ 0x066A ]
, mapEntry ("afii57388") [ 0x060C ]
, mapEntry ("afii57392") [ 0x0660 ]
, mapEntry ("afii57393") [ 0x0661 ]
, mapEntry ("afii57394") [ 0x0662 ]
, mapEntry ("afii57395") [ 0x0663 ]
, mapEntry ("afii57396") [ 0x0664 ]
, mapEntry ("afii57397") [ 0x0665 ]
, mapEntry ("afii57398") [ 0x0666 ]
, mapEntry ("afii57399") [ 0x0667 ]
, mapEntry ("afii57400") [ 0x0668 ]
, mapEntry ("afii57401") [ 0x0669 ]
, mapEntry ("afii57403") [ 0x061B ]
, mapEntry ("afii57407") [ 0x061F ]
, mapEntry ("afii57409") [ 0x0621 ]
, mapEntry ("afii57410") [ 0x0622 ]
, mapEntry ("afii57411") [ 0x0623 ]
, mapEntry ("afii57412") [ 0x0624 ]
, mapEntry ("afii57413") [ 0x0625 ]
, mapEntry ("afii57414") [ 0x0626 ]
, mapEntry ("afii57415") [ 0x0627 ]
, mapEntry ("afii57416") [ 0x0628 ]
, mapEntry ("afii57417") [ 0x0629 ]
, mapEntry ("afii57418") [ 0x062A ]
, mapEntry ("afii57419") [ 0x062B ]
, mapEntry ("afii57420") [ 0x062C ]
, mapEntry ("afii57421") [ 0x062D ]
, mapEntry ("afii57422") [ 0x062E ]
, mapEntry ("afii57423") [ 0x062F ]
, mapEntry ("afii57424") [ 0x0630 ]
, mapEntry ("afii57425") [ 0x0631 ]
, mapEntry ("afii57426") [ 0x0632 ]
, mapEntry ("afii57427") [ 0x0633 ]
, mapEntry ("afii57428") [ 0x0634 ]
, mapEntry ("afii57429") [ 0x0635 ]
, mapEntry ("afii57430") [ 0x0636 ]
, mapEntry ("afii57431") [ 0x0637 ]
, mapEntry ("afii57432") [ 0x0638 ]
, mapEntry ("afii57433") [ 0x0639 ]
, mapEntry ("afii57434") [ 0x063A ]
, mapEntry ("afii57440") [ 0x0640 ]
, mapEntry ("afii57441") [ 0x0641 ]
, mapEntry ("afii57442") [ 0x0642 ]
, mapEntry ("afii57443") [ 0x0643 ]
, mapEntry ("afii57444") [ 0x0644 ]
, mapEntry ("afii57445") [ 0x0645 ]
, mapEntry ("afii57446") [ 0x0646 ]
, mapEntry ("afii57448") [ 0x0648 ]
, mapEntry ("afii57449") [ 0x0649 ]
, mapEntry ("afii57450") [ 0x064A ]
, mapEntry ("afii57451") [ 0x064B ]
, mapEntry ("afii57452") [ 0x064C ]
, mapEntry ("afii57453") [ 0x064D ]
, mapEntry ("afii57454") [ 0x064E ]
, mapEntry ("afii57455") [ 0x064F ]
, mapEntry ("afii57456") [ 0x0650 ]
, mapEntry ("afii57457") [ 0x0651 ]
, mapEntry ("afii57458") [ 0x0652 ]
, mapEntry ("afii57470") [ 0x0647 ]
, mapEntry ("afii57505") [ 0x06A4 ]
, mapEntry ("afii57506") [ 0x067E ]
, mapEntry ("afii57507") [ 0x0686 ]
, mapEntry ("afii57508") [ 0x0698 ]
, mapEntry ("afii57509") [ 0x06AF ]
, mapEntry ("afii57511") [ 0x0679 ]
, mapEntry ("afii57512") [ 0x0688 ]
, mapEntry ("afii57513") [ 0x0691 ]
, mapEntry ("afii57514") [ 0x06BA ]
, mapEntry ("afii57519") [ 0x06D2 ]
, mapEntry ("afii57534") [ 0x06D5 ]
, mapEntry ("afii57636") [ 0x20AA ]
, mapEntry ("afii57645") [ 0x05BE ]
, mapEntry ("afii57658") [ 0x05C3 ]
, mapEntry ("afii57664") [ 0x05D0 ]
, mapEntry ("afii57665") [ 0x05D1 ]
, mapEntry ("afii57666") [ 0x05D2 ]
, mapEntry ("afii57667") [ 0x05D3 ]
, mapEntry ("afii57668") [ 0x05D4 ]
, mapEntry ("afii57669") [ 0x05D5 ]
, mapEntry ("afii57670") [ 0x05D6 ]
, mapEntry ("afii57671") [ 0x05D7 ]
, mapEntry ("afii57672") [ 0x05D8 ]
, mapEntry ("afii57673") [ 0x05D9 ]
, mapEntry ("afii57674") [ 0x05DA ]
, mapEntry ("afii57675") [ 0x05DB ]
, mapEntry ("afii57676") [ 0x05DC ]
, mapEntry ("afii57677") [ 0x05DD ]
, mapEntry ("afii57678") [ 0x05DE ]
, mapEntry ("afii57679") [ 0x05DF ]
, mapEntry ("afii57680") [ 0x05E0 ]
, mapEntry ("afii57681") [ 0x05E1 ]
, mapEntry ("afii57682") [ 0x05E2 ]
, mapEntry ("afii57683") [ 0x05E3 ]
, mapEntry ("afii57684") [ 0x05E4 ]
, mapEntry ("afii57685") [ 0x05E5 ]
, mapEntry ("afii57686") [ 0x05E6 ]
, mapEntry ("afii57687") [ 0x05E7 ]
, mapEntry ("afii57688") [ 0x05E8 ]
, mapEntry ("afii57689") [ 0x05E9 ]
, mapEntry ("afii57690") [ 0x05EA ]
, mapEntry ("afii57694") [ 0xFB2A ]
, mapEntry ("afii57695") [ 0xFB2B ]
, mapEntry ("afii57700") [ 0xFB4B ]
, mapEntry ("afii57705") [ 0xFB1F ]
, mapEntry ("afii57716") [ 0x05F0 ]
, mapEntry ("afii57717") [ 0x05F1 ]
, mapEntry ("afii57718") [ 0x05F2 ]
, mapEntry ("afii57723") [ 0xFB35 ]
, mapEntry ("afii57793") [ 0x05B4 ]
, mapEntry ("afii57794") [ 0x05B5 ]
, mapEntry ("afii57795") [ 0x05B6 ]
, mapEntry ("afii57796") [ 0x05BB ]
, mapEntry ("afii57797") [ 0x05B8 ]
, mapEntry ("afii57798") [ 0x05B7 ]
, mapEntry ("afii57799") [ 0x05B0 ]
, mapEntry ("afii57800") [ 0x05B2 ]
, mapEntry ("afii57801") [ 0x05B1 ]
, mapEntry ("afii57802") [ 0x05B3 ]
, mapEntry ("afii57803") [ 0x05C2 ]
, mapEntry ("afii57804") [ 0x05C1 ]
, mapEntry ("afii57806") [ 0x05B9 ]
, mapEntry ("afii57807") [ 0x05BC ]
, mapEntry ("afii57839") [ 0x05BD ]
, mapEntry ("afii57841") [ 0x05BF ]
, mapEntry ("afii57842") [ 0x05C0 ]
, mapEntry ("afii57929") [ 0x02BC ]
, mapEntry ("afii61248") [ 0x2105 ]
, mapEntry ("afii61289") [ 0x2113 ]
, mapEntry ("afii61352") [ 0x2116 ]
, mapEntry ("afii61573") [ 0x202C ]
, mapEntry ("afii61574") [ 0x202D ]
, mapEntry ("afii61575") [ 0x202E ]
, mapEntry ("afii61664") [ 0x200C ]
, mapEntry ("afii63167") [ 0x066D ]
, mapEntry ("afii64937") [ 0x02BD ]
, mapEntry ("agrave") [ 0xE0 ]
, mapEntry ("agujarati") [ 0x0A85 ]
, mapEntry ("agurmukhi") [ 0x0A05 ]
, mapEntry ("ahiragana") [ 0x3042 ]
, mapEntry ("ahookabove") [ 0x1EA3 ]
, mapEntry ("aibengali") [ 0x0990 ]
, mapEntry ("aibopomofo") [ 0x311E ]
, mapEntry ("aideva") [ 0x0910 ]
, mapEntry ("aiecyrillic") [ 0x04D5 ]
, mapEntry ("aigujarati") [ 0x0A90 ]
, mapEntry ("aigurmukhi") [ 0x0A10 ]
, mapEntry ("aimatragurmukhi") [ 0x0A48 ]
, mapEntry ("ainarabic") [ 0x0639 ]
, mapEntry ("ainfinalarabic") [ 0xFECA ]
, mapEntry ("aininitialarabic") [ 0xFECB ]
, mapEntry ("ainmedialarabic") [ 0xFECC ]
, mapEntry ("ainvertedbreve") [ 0x0203 ]
, mapEntry ("aivowelsignbengali") [ 0x09C8 ]
, mapEntry ("aivowelsigndeva") [ 0x0948 ]
, mapEntry ("aivowelsigngujarati") [ 0x0AC8 ]
, mapEntry ("akatakana") [ 0x30A2 ]
, mapEntry ("akatakanahalfwidth") [ 0xFF71 ]
, mapEntry ("akorean") [ 0x314F ]
, mapEntry ("alef") [ 0x05D0 ]
, mapEntry ("alefarabic") [ 0x0627 ]
, mapEntry ("alefdageshhebrew") [ 0xFB30 ]
, mapEntry ("aleffinalarabic") [ 0xFE8E ]
, mapEntry ("alefhamzaabovearabic") [ 0x0623 ]
, mapEntry ("alefhamzaabovefinalarabic") [ 0xFE84 ]
, mapEntry ("alefhamzabelowarabic") [ 0x0625 ]
, mapEntry ("alefhamzabelowfinalarabic") [ 0xFE88 ]
, mapEntry ("alefhebrew") [ 0x05D0 ]
, mapEntry ("aleflamedhebrew") [ 0xFB4F ]
, mapEntry ("alefmaddaabovearabic") [ 0x0622 ]
, mapEntry ("alefmaddaabovefinalarabic") [ 0xFE82 ]
, mapEntry ("alefmaksuraarabic") [ 0x0649 ]
, mapEntry ("alefmaksurafinalarabic") [ 0xFEF0 ]
, mapEntry ("alefmaksurainitialarabic") [ 0xFEF3 ]
, mapEntry ("alefmaksuramedialarabic") [ 0xFEF4 ]
, mapEntry ("alefpatahhebrew") [ 0xFB2E ]
, mapEntry ("alefqamatshebrew") [ 0xFB2F ]
, mapEntry ("aleph") [ 0x2135 ]
, mapEntry ("allequal") [ 0x224C ]
, mapEntry ("alpha") [ 0x03B1 ]
, mapEntry ("alphatonos") [ 0x03AC ]
, mapEntry ("amacron") [ 0x0101 ]
, mapEntry ("amonospace") [ 0xFF41 ]
, mapEntry ("ampersand") [ 0x26 ]
, mapEntry ("ampersandmonospace") [ 0xFF06 ]
, mapEntry ("ampersandsmall") [ 0xF726 ]
, mapEntry ("amsquare") [ 0x33C2 ]
, mapEntry ("anbopomofo") [ 0x3122 ]
, mapEntry ("angbopomofo") [ 0x3124 ]
, mapEntry ("angkhankhuthai") [ 0x0E5A ]
, mapEntry ("angle") [ 0x2220 ]
, mapEntry ("anglebracketleft") [ 0x3008 ]
, mapEntry ("anglebracketleftvertical") [ 0xFE3F ]
, mapEntry ("anglebracketright") [ 0x3009 ]
, mapEntry ("anglebracketrightvertical") [ 0xFE40 ]
, mapEntry ("angleleft") [ 0x2329 ]
, mapEntry ("angleright") [ 0x232A ]
, mapEntry ("angstrom") [ 0x212B ]
, mapEntry ("anoteleia") [ 0x0387 ]
, mapEntry ("anudattadeva") [ 0x0952 ]
, mapEntry ("anusvarabengali") [ 0x0982 ]
, mapEntry ("anusvaradeva") [ 0x0902 ]
, mapEntry ("anusvaragujarati") [ 0x0A82 ]
, mapEntry ("aogonek") [ 0x0105 ]
, mapEntry ("apaatosquare") [ 0x3300 ]
, mapEntry ("aparen") [ 0x249C ]
, mapEntry ("apostrophearmenian") [ 0x055A ]
, mapEntry ("apostrophemod") [ 0x02BC ]
, mapEntry ("apple") [ 0xF8FF ]
, mapEntry ("approaches") [ 0x2250 ]
, mapEntry ("approxequal") [ 0x2248 ]
, mapEntry ("approxequalorimage") [ 0x2252 ]
, mapEntry ("approximatelyequal") [ 0x2245 ]
, mapEntry ("araeaekorean") [ 0x318E ]
, mapEntry ("araeakorean") [ 0x318D ]
, mapEntry ("arc") [ 0x2312 ]
, mapEntry ("arighthalfring") [ 0x1E9A ]
, mapEntry ("aring") [ 0xE5 ]
, mapEntry ("aringacute") [ 0x01FB ]
, mapEntry ("aringbelow") [ 0x1E01 ]
, mapEntry ("arrowboth") [ 0x2194 ]
, mapEntry ("arrowdashdown") [ 0x21E3 ]
, mapEntry ("arrowdashleft") [ 0x21E0 ]
, mapEntry ("arrowdashright") [ 0x21E2 ]
, mapEntry ("arrowdashup") [ 0x21E1 ]
, mapEntry ("arrowdblboth") [ 0x21D4 ]
, mapEntry ("arrowdbldown") [ 0x21D3 ]
, mapEntry ("arrowdblleft") [ 0x21D0 ]
, mapEntry ("arrowdblright") [ 0x21D2 ]
, mapEntry ("arrowdblup") [ 0x21D1 ]
, mapEntry ("arrowdown") [ 0x2193 ]
, mapEntry ("arrowdownleft") [ 0x2199 ]
, mapEntry ("arrowdownright") [ 0x2198 ]
, mapEntry ("arrowdownwhite") [ 0x21E9 ]
, mapEntry ("arrowheaddownmod") [ 0x02C5 ]
, mapEntry ("arrowheadleftmod") [ 0x02C2 ]
, mapEntry ("arrowheadrightmod") [ 0x02C3 ]
, mapEntry ("arrowheadupmod") [ 0x02C4 ]
, mapEntry ("arrowhorizex") [ 0xF8E7 ]
, mapEntry ("arrowleft") [ 0x2190 ]
, mapEntry ("arrowleftdbl") [ 0x21D0 ]
, mapEntry ("arrowleftdblstroke") [ 0x21CD ]
, mapEntry ("arrowleftoverright") [ 0x21C6 ]
, mapEntry ("arrowleftwhite") [ 0x21E6 ]
, mapEntry ("arrowright") [ 0x2192 ]
, mapEntry ("arrowrightdblstroke") [ 0x21CF ]
, mapEntry ("arrowrightheavy") [ 0x279E ]
, mapEntry ("arrowrightoverleft") [ 0x21C4 ]
, mapEntry ("arrowrightwhite") [ 0x21E8 ]
, mapEntry ("arrowtableft") [ 0x21E4 ]
, mapEntry ("arrowtabright") [ 0x21E5 ]
, mapEntry ("arrowup") [ 0x2191 ]
, mapEntry ("arrowupdn") [ 0x2195 ]
, mapEntry ("arrowupdnbse") [ 0x21A8 ]
, mapEntry ("arrowupdownbase") [ 0x21A8 ]
, mapEntry ("arrowupleft") [ 0x2196 ]
, mapEntry ("arrowupleftofdown") [ 0x21C5 ]
, mapEntry ("arrowupright") [ 0x2197 ]
, mapEntry ("arrowupwhite") [ 0x21E7 ]
, mapEntry ("arrowvertex") [ 0xF8E6 ]
, mapEntry ("asciicircum") [ 0x5E ]
, mapEntry ("asciicircummonospace") [ 0xFF3E ]
, mapEntry ("asciitilde") [ 0x7E ]
, mapEntry ("asciitildemonospace") [ 0xFF5E ]
, mapEntry ("ascript") [ 0x0251 ]
, mapEntry ("ascriptturned") [ 0x0252 ]
, mapEntry ("asmallhiragana") [ 0x3041 ]
, mapEntry ("asmallkatakana") [ 0x30A1 ]
, mapEntry ("asmallkatakanahalfwidth") [ 0xFF67 ]
, mapEntry ("asterisk") [ 0x2A ]
, mapEntry ("asteriskaltonearabic") [ 0x066D ]
, mapEntry ("asteriskarabic") [ 0x066D ]
, mapEntry ("asteriskmath") [ 0x2217 ]
, mapEntry ("asteriskmonospace") [ 0xFF0A ]
, mapEntry ("asterisksmall") [ 0xFE61 ]
, mapEntry ("asterism") [ 0x2042 ]
, mapEntry ("asuperior") [ 0xF6E9 ]
, mapEntry ("asymptoticallyequal") [ 0x2243 ]
, mapEntry ("at") [ 0x40 ]
, mapEntry ("atilde") [ 0xE3 ]
, mapEntry ("atmonospace") [ 0xFF20 ]
, mapEntry ("atsmall") [ 0xFE6B ]
, mapEntry ("aturned") [ 0x0250 ]
, mapEntry ("aubengali") [ 0x0994 ]
, mapEntry ("aubopomofo") [ 0x3120 ]
, mapEntry ("audeva") [ 0x0914 ]
, mapEntry ("augujarati") [ 0x0A94 ]
, mapEntry ("augurmukhi") [ 0x0A14 ]
, mapEntry ("aulengthmarkbengali") [ 0x09D7 ]
, mapEntry ("aumatragurmukhi") [ 0x0A4C ]
, mapEntry ("auvowelsignbengali") [ 0x09CC ]
, mapEntry ("auvowelsigndeva") [ 0x094C ]
, mapEntry ("auvowelsigngujarati") [ 0x0ACC ]
, mapEntry ("avagrahadeva") [ 0x093D ]
, mapEntry ("aybarmenian") [ 0x0561 ]
, mapEntry ("ayin") [ 0x05E2 ]
, mapEntry ("ayinaltonehebrew") [ 0xFB20 ]
, mapEntry ("ayinhebrew") [ 0x05E2 ]
, mapEntry ("b") [ 0x62 ]
, mapEntry ("babengali") [ 0x09AC ]
, mapEntry ("backslash") [ 0x5C ]
, mapEntry ("backslashmonospace") [ 0xFF3C ]
, mapEntry ("badeva") [ 0x092C ]
, mapEntry ("bagujarati") [ 0x0AAC ]
, mapEntry ("bagurmukhi") [ 0x0A2C ]
, mapEntry ("bahiragana") [ 0x3070 ]
]
def glyphEncs4 =
[ mapEntry ("bahtthai") [ 0x0E3F ]
, mapEntry ("bakatakana") [ 0x30D0 ]
, mapEntry ("bar") [ 0x7C ]
, mapEntry ("barmonospace") [ 0xFF5C ]
, mapEntry ("bbopomofo") [ 0x3105 ]
, mapEntry ("bcircle") [ 0x24D1 ]
, mapEntry ("bdotaccent") [ 0x1E03 ]
, mapEntry ("bdotbelow") [ 0x1E05 ]
, mapEntry ("beamedsixteenthnotes") [ 0x266C ]
, mapEntry ("because") [ 0x2235 ]
, mapEntry ("becyrillic") [ 0x0431 ]
, mapEntry ("beharabic") [ 0x0628 ]
, mapEntry ("behfinalarabic") [ 0xFE90 ]
, mapEntry ("behinitialarabic") [ 0xFE91 ]
, mapEntry ("behiragana") [ 0x3079 ]
, mapEntry ("behmedialarabic") [ 0xFE92 ]
, mapEntry ("behmeeminitialarabic") [ 0xFC9F ]
, mapEntry ("behmeemisolatedarabic") [ 0xFC08 ]
, mapEntry ("behnoonfinalarabic") [ 0xFC6D ]
, mapEntry ("bekatakana") [ 0x30D9 ]
, mapEntry ("benarmenian") [ 0x0562 ]
, mapEntry ("bet") [ 0x05D1 ]
, mapEntry ("beta") [ 0x03B2 ]
, mapEntry ("betasymbolgreek") [ 0x03D0 ]
, mapEntry ("betdagesh") [ 0xFB31 ]
, mapEntry ("betdageshhebrew") [ 0xFB31 ]
, mapEntry ("bethebrew") [ 0x05D1 ]
, mapEntry ("betrafehebrew") [ 0xFB4C ]
, mapEntry ("bhabengali") [ 0x09AD ]
, mapEntry ("bhadeva") [ 0x092D ]
, mapEntry ("bhagujarati") [ 0x0AAD ]
, mapEntry ("bhagurmukhi") [ 0x0A2D ]
, mapEntry ("bhook") [ 0x0253 ]
, mapEntry ("bihiragana") [ 0x3073 ]
, mapEntry ("bikatakana") [ 0x30D3 ]
, mapEntry ("bilabialclick") [ 0x0298 ]
, mapEntry ("bindigurmukhi") [ 0x0A02 ]
, mapEntry ("birusquare") [ 0x3331 ]
, mapEntry ("blackcircle") [ 0x25CF ]
, mapEntry ("blackdiamond") [ 0x25C6 ]
, mapEntry ("blackdownpointingtriangle") [ 0x25BC ]
, mapEntry ("blackleftpointingpointer") [ 0x25C4 ]
, mapEntry ("blackleftpointingtriangle") [ 0x25C0 ]
, mapEntry ("blacklenticularbracketleft") [ 0x3010 ]
, mapEntry ("blacklenticularbracketleftvertical") [ 0xFE3B ]
, mapEntry ("blacklenticularbracketright") [ 0x3011 ]
, mapEntry ("blacklenticularbracketrightvertical") [ 0xFE3C ]
, mapEntry ("blacklowerlefttriangle") [ 0x25E3 ]
, mapEntry ("blacklowerrighttriangle") [ 0x25E2 ]
, mapEntry ("blackrectangle") [ 0x25AC ]
, mapEntry ("blackrightpointingpointer") [ 0x25BA ]
, mapEntry ("blackrightpointingtriangle") [ 0x25B6 ]
, mapEntry ("blacksmallsquare") [ 0x25AA ]
, mapEntry ("blacksmilingface") [ 0x263B ]
, mapEntry ("blacksquare") [ 0x25A0 ]
, mapEntry ("blackstar") [ 0x2605 ]
, mapEntry ("blackupperlefttriangle") [ 0x25E4 ]
, mapEntry ("blackupperrighttriangle") [ 0x25E5 ]
, mapEntry ("blackuppointingsmalltriangle") [ 0x25B4 ]
, mapEntry ("blackuppointingtriangle") [ 0x25B2 ]
, mapEntry ("blank") [ 0x2423 ]
, mapEntry ("blinebelow") [ 0x1E07 ]
, mapEntry ("block") [ 0x2588 ]
, mapEntry ("bmonospace") [ 0xFF42 ]
, mapEntry ("bobaimaithai") [ 0x0E1A ]
, mapEntry ("bohiragana") [ 0x307C ]
, mapEntry ("bokatakana") [ 0x30DC ]
, mapEntry ("bparen") [ 0x249D ]
, mapEntry ("bqsquare") [ 0x33C3 ]
, mapEntry ("braceex") [ 0xF8F4 ]
, mapEntry ("braceleft") [ 0x7B ]
, mapEntry ("braceleftbt") [ 0xF8F3 ]
, mapEntry ("braceleftmid") [ 0xF8F2 ]
, mapEntry ("braceleftmonospace") [ 0xFF5B ]
, mapEntry ("braceleftsmall") [ 0xFE5B ]
, mapEntry ("bracelefttp") [ 0xF8F1 ]
, mapEntry ("braceleftvertical") [ 0xFE37 ]
, mapEntry ("braceright") [ 0x7D ]
, mapEntry ("bracerightbt") [ 0xF8FE ]
, mapEntry ("bracerightmid") [ 0xF8FD ]
, mapEntry ("bracerightmonospace") [ 0xFF5D ]
, mapEntry ("bracerightsmall") [ 0xFE5C ]
, mapEntry ("bracerighttp") [ 0xF8FC ]
, mapEntry ("bracerightvertical") [ 0xFE38 ]
, mapEntry ("bracketleft") [ 0x5B ]
, mapEntry ("bracketleftbt") [ 0xF8F0 ]
, mapEntry ("bracketleftex") [ 0xF8EF ]
, mapEntry ("bracketleftmonospace") [ 0xFF3B ]
, mapEntry ("bracketlefttp") [ 0xF8EE ]
, mapEntry ("bracketright") [ 0x5D ]
, mapEntry ("bracketrightbt") [ 0xF8FB ]
, mapEntry ("bracketrightex") [ 0xF8FA ]
, mapEntry ("bracketrightmonospace") [ 0xFF3D ]
, mapEntry ("bracketrighttp") [ 0xF8F9 ]
, mapEntry ("breve") [ 0x02D8 ]
, mapEntry ("brevebelowcmb") [ 0x032E ]
, mapEntry ("brevecmb") [ 0x0306 ]
, mapEntry ("breveinvertedbelowcmb") [ 0x032F ]
, mapEntry ("breveinvertedcmb") [ 0x0311 ]
, mapEntry ("breveinverteddoublecmb") [ 0x0361 ]
, mapEntry ("bridgebelowcmb") [ 0x032A ]
, mapEntry ("bridgeinvertedbelowcmb") [ 0x033A ]
, mapEntry ("brokenbar") [ 0xA6 ]
, mapEntry ("bstroke") [ 0x0180 ]
, mapEntry ("bsuperior") [ 0xF6EA ]
, mapEntry ("btopbar") [ 0x0183 ]
, mapEntry ("buhiragana") [ 0x3076 ]
, mapEntry ("bukatakana") [ 0x30D6 ]
, mapEntry ("bullet") [ 0x2022 ]
, mapEntry ("bulletinverse") [ 0x25D8 ]
, mapEntry ("bulletoperator") [ 0x2219 ]
, mapEntry ("bullseye") [ 0x25CE ]
, mapEntry ("c") [ 0x63 ]
, mapEntry ("caarmenian") [ 0x056E ]
, mapEntry ("cabengali") [ 0x099A ]
, mapEntry ("cacute") [ 0x0107 ]
, mapEntry ("cadeva") [ 0x091A ]
, mapEntry ("cagujarati") [ 0x0A9A ]
, mapEntry ("cagurmukhi") [ 0x0A1A ]
, mapEntry ("calsquare") [ 0x3388 ]
, mapEntry ("candrabindubengali") [ 0x0981 ]
, mapEntry ("candrabinducmb") [ 0x0310 ]
, mapEntry ("candrabindudeva") [ 0x0901 ]
, mapEntry ("candrabindugujarati") [ 0x0A81 ]
, mapEntry ("capslock") [ 0x21EA ]
, mapEntry ("careof") [ 0x2105 ]
, mapEntry ("caron") [ 0x02C7 ]
, mapEntry ("caronbelowcmb") [ 0x032C ]
, mapEntry ("caroncmb") [ 0x030C ]
, mapEntry ("carriagereturn") [ 0x21B5 ]
, mapEntry ("cbopomofo") [ 0x3118 ]
, mapEntry ("ccaron") [ 0x010D ]
, mapEntry ("ccedilla") [ 0xE7 ]
, mapEntry ("ccedillaacute") [ 0x1E09 ]
, mapEntry ("ccircle") [ 0x24D2 ]
, mapEntry ("ccircumflex") [ 0x0109 ]
, mapEntry ("ccurl") [ 0x0255 ]
, mapEntry ("cdot") [ 0x010B ]
, mapEntry ("cdotaccent") [ 0x010B ]
, mapEntry ("cdsquare") [ 0x33C5 ]
, mapEntry ("cedilla") [ 0xB8 ]
, mapEntry ("cedillacmb") [ 0x0327 ]
, mapEntry ("cent") [ 0xA2 ]
, mapEntry ("centigrade") [ 0x2103 ]
, mapEntry ("centinferior") [ 0xF6DF ]
, mapEntry ("centmonospace") [ 0xFFE0 ]
, mapEntry ("centoldstyle") [ 0xF7A2 ]
, mapEntry ("centsuperior") [ 0xF6E0 ]
, mapEntry ("chaarmenian") [ 0x0579 ]
, mapEntry ("chabengali") [ 0x099B ]
, mapEntry ("chadeva") [ 0x091B ]
, mapEntry ("chagujarati") [ 0x0A9B ]
, mapEntry ("chagurmukhi") [ 0x0A1B ]
, mapEntry ("chbopomofo") [ 0x3114 ]
, mapEntry ("cheabkhasiancyrillic") [ 0x04BD ]
, mapEntry ("checkmark") [ 0x2713 ]
, mapEntry ("checyrillic") [ 0x0447 ]
, mapEntry ("chedescenderabkhasiancyrillic") [ 0x04BF ]
, mapEntry ("chedescendercyrillic") [ 0x04B7 ]
, mapEntry ("chedieresiscyrillic") [ 0x04F5 ]
, mapEntry ("cheharmenian") [ 0x0573 ]
, mapEntry ("chekhakassiancyrillic") [ 0x04CC ]
, mapEntry ("cheverticalstrokecyrillic") [ 0x04B9 ]
, mapEntry ("chi") [ 0x03C7 ]
, mapEntry ("chieuchacirclekorean") [ 0x3277 ]
, mapEntry ("chieuchaparenkorean") [ 0x3217 ]
, mapEntry ("chieuchcirclekorean") [ 0x3269 ]
, mapEntry ("chieuchkorean") [ 0x314A ]
, mapEntry ("chieuchparenkorean") [ 0x3209 ]
, mapEntry ("chochangthai") [ 0x0E0A ]
, mapEntry ("chochanthai") [ 0x0E08 ]
, mapEntry ("chochingthai") [ 0x0E09 ]
, mapEntry ("chochoethai") [ 0x0E0C ]
, mapEntry ("chook") [ 0x0188 ]
, mapEntry ("cieucacirclekorean") [ 0x3276 ]
, mapEntry ("cieucaparenkorean") [ 0x3216 ]
, mapEntry ("cieuccirclekorean") [ 0x3268 ]
, mapEntry ("cieuckorean") [ 0x3148 ]
, mapEntry ("cieucparenkorean") [ 0x3208 ]
, mapEntry ("cieucuparenkorean") [ 0x321C ]
, mapEntry ("circle") [ 0x25CB ]
, mapEntry ("circlemultiply") [ 0x2297 ]
, mapEntry ("circleot") [ 0x2299 ]
, mapEntry ("circleplus") [ 0x2295 ]
, mapEntry ("circlepostalmark") [ 0x3036 ]
, mapEntry ("circlewithlefthalfblack") [ 0x25D0 ]
, mapEntry ("circlewithrighthalfblack") [ 0x25D1 ]
, mapEntry ("circumflex") [ 0x02C6 ]
, mapEntry ("circumflexbelowcmb") [ 0x032D ]
, mapEntry ("circumflexcmb") [ 0x0302 ]
, mapEntry ("clear") [ 0x2327 ]
, mapEntry ("clickalveolar") [ 0x01C2 ]
, mapEntry ("clickdental") [ 0x01C0 ]
, mapEntry ("clicklateral") [ 0x01C1 ]
, mapEntry ("clickretroflex") [ 0x01C3 ]
, mapEntry ("club") [ 0x2663 ]
, mapEntry ("clubsuitblack") [ 0x2663 ]
, mapEntry ("clubsuitwhite") [ 0x2667 ]
, mapEntry ("cmcubedsquare") [ 0x33A4 ]
, mapEntry ("cmonospace") [ 0xFF43 ]
, mapEntry ("cmsquaredsquare") [ 0x33A0 ]
, mapEntry ("coarmenian") [ 0x0581 ]
, mapEntry ("colon") [ 0x3A ]
, mapEntry ("colonmonetary") [ 0x20A1 ]
, mapEntry ("colonmonospace") [ 0xFF1A ]
, mapEntry ("colonsign") [ 0x20A1 ]
, mapEntry ("colonsmall") [ 0xFE55 ]
, mapEntry ("colontriangularhalfmod") [ 0x02D1 ]
, mapEntry ("colontriangularmod") [ 0x02D0 ]
, mapEntry ("comma") [ 0x2C ]
, mapEntry ("commaabovecmb") [ 0x0313 ]
, mapEntry ("commaaboverightcmb") [ 0x0315 ]
, mapEntry ("commaaccent") [ 0xF6C3 ]
, mapEntry ("commaarabic") [ 0x060C ]
, mapEntry ("commaarmenian") [ 0x055D ]
, mapEntry ("commainferior") [ 0xF6E1 ]
, mapEntry ("commamonospace") [ 0xFF0C ]
, mapEntry ("commareversedabovecmb") [ 0x0314 ]
, mapEntry ("commareversedmod") [ 0x02BD ]
, mapEntry ("commasmall") [ 0xFE50 ]
, mapEntry ("commasuperior") [ 0xF6E2 ]
, mapEntry ("commaturnedabovecmb") [ 0x0312 ]
, mapEntry ("commaturnedmod") [ 0x02BB ]
, mapEntry ("compass") [ 0x263C ]
, mapEntry ("congruent") [ 0x2245 ]
, mapEntry ("contourintegral") [ 0x222E ]
, mapEntry ("control") [ 0x2303 ]
, mapEntry ("controlACK") [ 0x06 ]
, mapEntry ("controlBEL") [ 0x07 ]
, mapEntry ("controlBS") [ 0x08 ]
, mapEntry ("controlCAN") [ 0x18 ]
, mapEntry ("controlCR") [ 0x0D ]
, mapEntry ("controlDC1") [ 0x11 ]
, mapEntry ("controlDC2") [ 0x12 ]
, mapEntry ("controlDC3") [ 0x13 ]
, mapEntry ("controlDC4") [ 0x14 ]
, mapEntry ("controlDEL") [ 0x7F ]
, mapEntry ("controlDLE") [ 0x10 ]
, mapEntry ("controlEM") [ 0x19 ]
, mapEntry ("controlENQ") [ 0x05 ]
, mapEntry ("controlEOT") [ 0x04 ]
, mapEntry ("controlESC") [ 0x1B ]
, mapEntry ("controlETB") [ 0x17 ]
, mapEntry ("controlETX") [ 0x03 ]
, mapEntry ("controlFF") [ 0x0C ]
, mapEntry ("controlFS") [ 0x1C ]
, mapEntry ("controlGS") [ 0x1D ]
, mapEntry ("controlHT") [ 0x09 ]
, mapEntry ("controlLF") [ 0x0A ]
, mapEntry ("controlNAK") [ 0x15 ]
, mapEntry ("controlRS") [ 0x1E ]
, mapEntry ("controlSI") [ 0x0F ]
, mapEntry ("controlSO") [ 0x0E ]
, mapEntry ("controlSOT") [ 0x02 ]
, mapEntry ("controlSTX") [ 0x01 ]
, mapEntry ("controlSUB") [ 0x1A ]
, mapEntry ("controlSYN") [ 0x16 ]
, mapEntry ("controlUS") [ 0x1F ]
, mapEntry ("controlVT") [ 0x0B ]
, mapEntry ("copyright") [ 0xA9 ]
, mapEntry ("copyrightsans") [ 0xF8E9 ]
, mapEntry ("copyrightserif") [ 0xF6D9 ]
, mapEntry ("cornerbracketleft") [ 0x300C ]
, mapEntry ("cornerbracketlefthalfwidth") [ 0xFF62 ]
, mapEntry ("cornerbracketleftvertical") [ 0xFE41 ]
, mapEntry ("cornerbracketright") [ 0x300D ]
, mapEntry ("cornerbracketrighthalfwidth") [ 0xFF63 ]
, mapEntry ("cornerbracketrightvertical") [ 0xFE42 ]
, mapEntry ("corporationsquare") [ 0x337F ]
, mapEntry ("cosquare") [ 0x33C7 ]
, mapEntry ("coverkgsquare") [ 0x33C6 ]
, mapEntry ("cparen") [ 0x249E ]
, mapEntry ("cruzeiro") [ 0x20A2 ]
, mapEntry ("cstretched") [ 0x0297 ]
, mapEntry ("curlyand") [ 0x22CF ]
, mapEntry ("curlyor") [ 0x22CE ]
, mapEntry ("currency") [ 0xA4 ]
, mapEntry ("cyrBreve") [ 0xF6D1 ]
, mapEntry ("cyrFlex") [ 0xF6D2 ]
, mapEntry ("cyrbreve") [ 0xF6D4 ]
, mapEntry ("cyrflex") [ 0xF6D5 ]
, mapEntry ("d") [ 0x64 ]
, mapEntry ("daarmenian") [ 0x0564 ]
, mapEntry ("dabengali") [ 0x09A6 ]
, mapEntry ("dadarabic") [ 0x0636 ]
, mapEntry ("dadeva") [ 0x0926 ]
, mapEntry ("dadfinalarabic") [ 0xFEBE ]
, mapEntry ("dadinitialarabic") [ 0xFEBF ]
, mapEntry ("dadmedialarabic") [ 0xFEC0 ]
, mapEntry ("dagesh") [ 0x05BC ]
, mapEntry ("dageshhebrew") [ 0x05BC ]
, mapEntry ("dagger") [ 0x2020 ]
, mapEntry ("daggerdbl") [ 0x2021 ]
, mapEntry ("dagujarati") [ 0x0AA6 ]
, mapEntry ("dagurmukhi") [ 0x0A26 ]
, mapEntry ("dahiragana") [ 0x3060 ]
, mapEntry ("dakatakana") [ 0x30C0 ]
, mapEntry ("dalarabic") [ 0x062F ]
, mapEntry ("dalet") [ 0x05D3 ]
, mapEntry ("daletdagesh") [ 0xFB33 ]
, mapEntry ("daletdageshhebrew") [ 0xFB33 ]
, mapEntry ("dalethatafpatah") [ 0x05D3, 0x05B2 ]
, mapEntry ("dalethatafpatahhebrew") [ 0x05D3, 0x05B2 ]
, mapEntry ("dalethatafsegol") [ 0x05D3, 0x05B1 ]
, mapEntry ("dalethatafsegolhebrew") [ 0x05D3, 0x05B1 ]
, mapEntry ("dalethebrew") [ 0x05D3 ]
, mapEntry ("dalethiriq") [ 0x05D3, 0x05B4 ]
, mapEntry ("dalethiriqhebrew") [ 0x05D3, 0x05B4 ]
, mapEntry ("daletholam") [ 0x05D3, 0x05B9 ]
, mapEntry ("daletholamhebrew") [ 0x05D3, 0x05B9 ]
, mapEntry ("daletpatah") [ 0x05D3, 0x05B7 ]
, mapEntry ("daletpatahhebrew") [ 0x05D3, 0x05B7 ]
, mapEntry ("daletqamats") [ 0x05D3, 0x05B8 ]
, mapEntry ("daletqamatshebrew") [ 0x05D3, 0x05B8 ]
, mapEntry ("daletqubuts") [ 0x05D3, 0x05BB ]
, mapEntry ("daletqubutshebrew") [ 0x05D3, 0x05BB ]
, mapEntry ("daletsegol") [ 0x05D3, 0x05B6 ]
, mapEntry ("daletsegolhebrew") [ 0x05D3, 0x05B6 ]
, mapEntry ("daletsheva") [ 0x05D3, 0x05B0 ]
, mapEntry ("daletshevahebrew") [ 0x05D3, 0x05B0 ]
, mapEntry ("dalettsere") [ 0x05D3, 0x05B5 ]
, mapEntry ("dalettserehebrew") [ 0x05D3, 0x05B5 ]
, mapEntry ("dalfinalarabic") [ 0xFEAA ]
, mapEntry ("dammaarabic") [ 0x064F ]
, mapEntry ("dammalowarabic") [ 0x064F ]
, mapEntry ("dammatanaltonearabic") [ 0x064C ]
, mapEntry ("dammatanarabic") [ 0x064C ]
, mapEntry ("danda") [ 0x0964 ]
, mapEntry ("dargahebrew") [ 0x05A7 ]
, mapEntry ("dargalefthebrew") [ 0x05A7 ]
, mapEntry ("dasiapneumatacyrilliccmb") [ 0x0485 ]
, mapEntry ("dblGrave") [ 0xF6D3 ]
, mapEntry ("dblanglebracketleft") [ 0x300A ]
, mapEntry ("dblanglebracketleftvertical") [ 0xFE3D ]
, mapEntry ("dblanglebracketright") [ 0x300B ]
, mapEntry ("dblanglebracketrightvertical") [ 0xFE3E ]
, mapEntry ("dblarchinvertedbelowcmb") [ 0x032B ]
, mapEntry ("dblarrowleft") [ 0x21D4 ]
, mapEntry ("dblarrowright") [ 0x21D2 ]
, mapEntry ("dbldanda") [ 0x0965 ]
, mapEntry ("dblgrave") [ 0xF6D6 ]
, mapEntry ("dblgravecmb") [ 0x030F ]
, mapEntry ("dblintegral") [ 0x222C ]
, mapEntry ("dbllowline") [ 0x2017 ]
, mapEntry ("dbllowlinecmb") [ 0x0333 ]
, mapEntry ("dbloverlinecmb") [ 0x033F ]
, mapEntry ("dblprimemod") [ 0x02BA ]
, mapEntry ("dblverticalbar") [ 0x2016 ]
, mapEntry ("dblverticallineabovecmb") [ 0x030E ]
, mapEntry ("dbopomofo") [ 0x3109 ]
, mapEntry ("dbsquare") [ 0x33C8 ]
, mapEntry ("dcaron") [ 0x010F ]
, mapEntry ("dcedilla") [ 0x1E11 ]
, mapEntry ("dcircle") [ 0x24D3 ]
, mapEntry ("dcircumflexbelow") [ 0x1E13 ]
, mapEntry ("dcroat") [ 0x0111 ]
, mapEntry ("ddabengali") [ 0x09A1 ]
, mapEntry ("ddadeva") [ 0x0921 ]
, mapEntry ("ddagujarati") [ 0x0AA1 ]
, mapEntry ("ddagurmukhi") [ 0x0A21 ]
, mapEntry ("ddalarabic") [ 0x0688 ]
, mapEntry ("ddalfinalarabic") [ 0xFB89 ]
, mapEntry ("dddhadeva") [ 0x095C ]
, mapEntry ("ddhabengali") [ 0x09A2 ]
, mapEntry ("ddhadeva") [ 0x0922 ]
, mapEntry ("ddhagujarati") [ 0x0AA2 ]
, mapEntry ("ddhagurmukhi") [ 0x0A22 ]
, mapEntry ("ddotaccent") [ 0x1E0B ]
, mapEntry ("ddotbelow") [ 0x1E0D ]
, mapEntry ("decimalseparatorarabic") [ 0x066B ]
, mapEntry ("decimalseparatorpersian") [ 0x066B ]
, mapEntry ("decyrillic") [ 0x0434 ]
, mapEntry ("degree") [ 0xB0 ]
, mapEntry ("dehihebrew") [ 0x05AD ]
, mapEntry ("dehiragana") [ 0x3067 ]
, mapEntry ("deicoptic") [ 0x03EF ]
, mapEntry ("dekatakana") [ 0x30C7 ]
, mapEntry ("deleteleft") [ 0x232B ]
, mapEntry ("deleteright") [ 0x2326 ]
, mapEntry ("delta") [ 0x03B4 ]
, mapEntry ("deltaturned") [ 0x018D ]
, mapEntry ("denominatorminusonenumeratorbengali") [ 0x09F8 ]
, mapEntry ("dezh") [ 0x02A4 ]
, mapEntry ("dhabengali") [ 0x09A7 ]
, mapEntry ("dhadeva") [ 0x0927 ]
, mapEntry ("dhagujarati") [ 0x0AA7 ]
, mapEntry ("dhagurmukhi") [ 0x0A27 ]
, mapEntry ("dhook") [ 0x0257 ]
, mapEntry ("dialytikatonos") [ 0x0385 ]
, mapEntry ("dialytikatonoscmb") [ 0x0344 ]
, mapEntry ("diamond") [ 0x2666 ]
, mapEntry ("diamondsuitwhite") [ 0x2662 ]
, mapEntry ("dieresis") [ 0xA8 ]
, mapEntry ("dieresisacute") [ 0xF6D7 ]
, mapEntry ("dieresisbelowcmb") [ 0x0324 ]
, mapEntry ("dieresiscmb") [ 0x0308 ]
, mapEntry ("dieresisgrave") [ 0xF6D8 ]
, mapEntry ("dieresistonos") [ 0x0385 ]
, mapEntry ("dihiragana") [ 0x3062 ]
, mapEntry ("dikatakana") [ 0x30C2 ]
]
def glyphEncs5 =
[ mapEntry ("dittomark") [ 0x3003 ]
, mapEntry ("divide") [ 0xF7 ]
, mapEntry ("divides") [ 0x2223 ]
, mapEntry ("divisionslash") [ 0x2215 ]
, mapEntry ("djecyrillic") [ 0x0452 ]
, mapEntry ("dkshade") [ 0x2593 ]
, mapEntry ("dlinebelow") [ 0x1E0F ]
, mapEntry ("dlsquare") [ 0x3397 ]
, mapEntry ("dmacron") [ 0x0111 ]
, mapEntry ("dmonospace") [ 0xFF44 ]
, mapEntry ("dnblock") [ 0x2584 ]
, mapEntry ("dochadathai") [ 0x0E0E ]
, mapEntry ("dodekthai") [ 0x0E14 ]
, mapEntry ("dohiragana") [ 0x3069 ]
, mapEntry ("dokatakana") [ 0x30C9 ]
, mapEntry ("dollar") [ 0x24 ]
, mapEntry ("dollarinferior") [ 0xF6E3 ]
, mapEntry ("dollarmonospace") [ 0xFF04 ]
, mapEntry ("dollaroldstyle") [ 0xF724 ]
, mapEntry ("dollarsmall") [ 0xFE69 ]
, mapEntry ("dollarsuperior") [ 0xF6E4 ]
, mapEntry ("dong") [ 0x20AB ]
, mapEntry ("dorusquare") [ 0x3326 ]
, mapEntry ("dotaccent") [ 0x02D9 ]
, mapEntry ("dotaccentcmb") [ 0x0307 ]
, mapEntry ("dotbelowcmb") [ 0x0323 ]
, mapEntry ("dotbelowcomb") [ 0x0323 ]
, mapEntry ("dotkatakana") [ 0x30FB ]
, mapEntry ("dotlessi") [ 0x0131 ]
, mapEntry ("dotlessj") [ 0xF6BE ]
, mapEntry ("dotlessjstrokehook") [ 0x0284 ]
, mapEntry ("dotmath") [ 0x22C5 ]
, mapEntry ("dottedcircle") [ 0x25CC ]
, mapEntry ("doubleyodpatah") [ 0xFB1F ]
, mapEntry ("doubleyodpatahhebrew") [ 0xFB1F ]
, mapEntry ("downtackbelowcmb") [ 0x031E ]
, mapEntry ("downtackmod") [ 0x02D5 ]
, mapEntry ("dparen") [ 0x249F ]
, mapEntry ("dsuperior") [ 0xF6EB ]
, mapEntry ("dtail") [ 0x0256 ]
, mapEntry ("dtopbar") [ 0x018C ]
, mapEntry ("duhiragana") [ 0x3065 ]
, mapEntry ("dukatakana") [ 0x30C5 ]
, mapEntry ("dz") [ 0x01F3 ]
, mapEntry ("dzaltone") [ 0x02A3 ]
, mapEntry ("dzcaron") [ 0x01C6 ]
, mapEntry ("dzcurl") [ 0x02A5 ]
, mapEntry ("dzeabkhasiancyrillic") [ 0x04E1 ]
, mapEntry ("dzecyrillic") [ 0x0455 ]
, mapEntry ("dzhecyrillic") [ 0x045F ]
, mapEntry ("e") [ 0x65 ]
, mapEntry ("eacute") [ 0xE9 ]
, mapEntry ("earth") [ 0x2641 ]
, mapEntry ("ebengali") [ 0x098F ]
, mapEntry ("ebopomofo") [ 0x311C ]
, mapEntry ("ebreve") [ 0x0115 ]
, mapEntry ("ecandradeva") [ 0x090D ]
, mapEntry ("ecandragujarati") [ 0x0A8D ]
, mapEntry ("ecandravowelsigndeva") [ 0x0945 ]
, mapEntry ("ecandravowelsigngujarati") [ 0x0AC5 ]
, mapEntry ("ecaron") [ 0x011B ]
, mapEntry ("ecedillabreve") [ 0x1E1D ]
, mapEntry ("echarmenian") [ 0x0565 ]
, mapEntry ("echyiwnarmenian") [ 0x0587 ]
, mapEntry ("ecircle") [ 0x24D4 ]
, mapEntry ("ecircumflex") [ 0xEA ]
, mapEntry ("ecircumflexacute") [ 0x1EBF ]
, mapEntry ("ecircumflexbelow") [ 0x1E19 ]
, mapEntry ("ecircumflexdotbelow") [ 0x1EC7 ]
, mapEntry ("ecircumflexgrave") [ 0x1EC1 ]
, mapEntry ("ecircumflexhookabove") [ 0x1EC3 ]
, mapEntry ("ecircumflextilde") [ 0x1EC5 ]
, mapEntry ("ecyrillic") [ 0x0454 ]
, mapEntry ("edblgrave") [ 0x0205 ]
, mapEntry ("edeva") [ 0x090F ]
, mapEntry ("edieresis") [ 0xEB ]
, mapEntry ("edot") [ 0x0117 ]
, mapEntry ("edotaccent") [ 0x0117 ]
, mapEntry ("edotbelow") [ 0x1EB9 ]
, mapEntry ("eegurmukhi") [ 0x0A0F ]
, mapEntry ("eematragurmukhi") [ 0x0A47 ]
, mapEntry ("efcyrillic") [ 0x0444 ]
, mapEntry ("egrave") [ 0xE8 ]
, mapEntry ("egujarati") [ 0x0A8F ]
, mapEntry ("eharmenian") [ 0x0567 ]
, mapEntry ("ehbopomofo") [ 0x311D ]
, mapEntry ("ehiragana") [ 0x3048 ]
, mapEntry ("ehookabove") [ 0x1EBB ]
, mapEntry ("eibopomofo") [ 0x311F ]
, mapEntry ("eight") [ 0x38 ]
, mapEntry ("eightarabic") [ 0x0668 ]
, mapEntry ("eightbengali") [ 0x09EE ]
, mapEntry ("eightcircle") [ 0x2467 ]
, mapEntry ("eightcircleinversesansserif") [ 0x2791 ]
, mapEntry ("eightdeva") [ 0x096E ]
, mapEntry ("eighteencircle") [ 0x2471 ]
, mapEntry ("eighteenparen") [ 0x2485 ]
, mapEntry ("eighteenperiod") [ 0x2499 ]
, mapEntry ("eightgujarati") [ 0x0AEE ]
, mapEntry ("eightgurmukhi") [ 0x0A6E ]
, mapEntry ("eighthackarabic") [ 0x0668 ]
, mapEntry ("eighthangzhou") [ 0x3028 ]
, mapEntry ("eighthnotebeamed") [ 0x266B ]
, mapEntry ("eightideographicparen") [ 0x3227 ]
, mapEntry ("eightinferior") [ 0x2088 ]
, mapEntry ("eightmonospace") [ 0xFF18 ]
, mapEntry ("eightoldstyle") [ 0xF738 ]
, mapEntry ("eightparen") [ 0x247B ]
, mapEntry ("eightperiod") [ 0x248F ]
, mapEntry ("eightpersian") [ 0x06F8 ]
, mapEntry ("eightroman") [ 0x2177 ]
, mapEntry ("eightsuperior") [ 0x2078 ]
, mapEntry ("eightthai") [ 0x0E58 ]
, mapEntry ("einvertedbreve") [ 0x0207 ]
, mapEntry ("eiotifiedcyrillic") [ 0x0465 ]
, mapEntry ("ekatakana") [ 0x30A8 ]
, mapEntry ("ekatakanahalfwidth") [ 0xFF74 ]
, mapEntry ("ekonkargurmukhi") [ 0x0A74 ]
, mapEntry ("ekorean") [ 0x3154 ]
, mapEntry ("elcyrillic") [ 0x043B ]
, mapEntry ("element") [ 0x2208 ]
, mapEntry ("elevencircle") [ 0x246A ]
, mapEntry ("elevenparen") [ 0x247E ]
, mapEntry ("elevenperiod") [ 0x2492 ]
, mapEntry ("elevenroman") [ 0x217A ]
, mapEntry ("ellipsis") [ 0x2026 ]
, mapEntry ("ellipsisvertical") [ 0x22EE ]
, mapEntry ("emacron") [ 0x0113 ]
, mapEntry ("emacronacute") [ 0x1E17 ]
, mapEntry ("emacrongrave") [ 0x1E15 ]
, mapEntry ("emcyrillic") [ 0x043C ]
, mapEntry ("emdash") [ 0x2014 ]
, mapEntry ("emdashvertical") [ 0xFE31 ]
, mapEntry ("emonospace") [ 0xFF45 ]
, mapEntry ("emphasismarkarmenian") [ 0x055B ]
, mapEntry ("emptyset") [ 0x2205 ]
, mapEntry ("enbopomofo") [ 0x3123 ]
, mapEntry ("encyrillic") [ 0x043D ]
, mapEntry ("endash") [ 0x2013 ]
, mapEntry ("endashvertical") [ 0xFE32 ]
, mapEntry ("endescendercyrillic") [ 0x04A3 ]
, mapEntry ("eng") [ 0x014B ]
, mapEntry ("engbopomofo") [ 0x3125 ]
, mapEntry ("enghecyrillic") [ 0x04A5 ]
, mapEntry ("enhookcyrillic") [ 0x04C8 ]
, mapEntry ("enspace") [ 0x2002 ]
, mapEntry ("eogonek") [ 0x0119 ]
, mapEntry ("eokorean") [ 0x3153 ]
, mapEntry ("eopen") [ 0x025B ]
, mapEntry ("eopenclosed") [ 0x029A ]
, mapEntry ("eopenreversed") [ 0x025C ]
, mapEntry ("eopenreversedclosed") [ 0x025E ]
, mapEntry ("eopenreversedhook") [ 0x025D ]
, mapEntry ("eparen") [ 0x24A0 ]
, mapEntry ("epsilon") [ 0x03B5 ]
, mapEntry ("epsilontonos") [ 0x03AD ]
, mapEntry ("equal") [ 0x3D ]
, mapEntry ("equalmonospace") [ 0xFF1D ]
, mapEntry ("equalsmall") [ 0xFE66 ]
, mapEntry ("equalsuperior") [ 0x207C ]
, mapEntry ("equivalence") [ 0x2261 ]
, mapEntry ("erbopomofo") [ 0x3126 ]
, mapEntry ("ercyrillic") [ 0x0440 ]
, mapEntry ("ereversed") [ 0x0258 ]
, mapEntry ("ereversedcyrillic") [ 0x044D ]
, mapEntry ("escyrillic") [ 0x0441 ]
, mapEntry ("esdescendercyrillic") [ 0x04AB ]
, mapEntry ("esh") [ 0x0283 ]
, mapEntry ("eshcurl") [ 0x0286 ]
, mapEntry ("eshortdeva") [ 0x090E ]
, mapEntry ("eshortvowelsigndeva") [ 0x0946 ]
, mapEntry ("eshreversedloop") [ 0x01AA ]
, mapEntry ("eshsquatreversed") [ 0x0285 ]
, mapEntry ("esmallhiragana") [ 0x3047 ]
, mapEntry ("esmallkatakana") [ 0x30A7 ]
, mapEntry ("esmallkatakanahalfwidth") [ 0xFF6A ]
, mapEntry ("estimated") [ 0x212E ]
, mapEntry ("esuperior") [ 0xF6EC ]
, mapEntry ("eta") [ 0x03B7 ]
, mapEntry ("etarmenian") [ 0x0568 ]
, mapEntry ("etatonos") [ 0x03AE ]
, mapEntry ("eth") [ 0xF0 ]
, mapEntry ("etilde") [ 0x1EBD ]
, mapEntry ("etildebelow") [ 0x1E1B ]
, mapEntry ("etnahtafoukhhebrew") [ 0x0591 ]
, mapEntry ("etnahtafoukhlefthebrew") [ 0x0591 ]
, mapEntry ("etnahtahebrew") [ 0x0591 ]
, mapEntry ("etnahtalefthebrew") [ 0x0591 ]
, mapEntry ("eturned") [ 0x01DD ]
, mapEntry ("eukorean") [ 0x3161 ]
, mapEntry ("euro") [ 0x20AC ]
, mapEntry ("evowelsignbengali") [ 0x09C7 ]
, mapEntry ("evowelsigndeva") [ 0x0947 ]
, mapEntry ("evowelsigngujarati") [ 0x0AC7 ]
, mapEntry ("exclam") [ 0x21 ]
, mapEntry ("exclamarmenian") [ 0x055C ]
, mapEntry ("exclamdbl") [ 0x203C ]
, mapEntry ("exclamdown") [ 0xA1 ]
, mapEntry ("exclamdownsmall") [ 0xF7A1 ]
, mapEntry ("exclammonospace") [ 0xFF01 ]
, mapEntry ("exclamsmall") [ 0xF721 ]
, mapEntry ("existential") [ 0x2203 ]
, mapEntry ("ezh") [ 0x0292 ]
, mapEntry ("ezhcaron") [ 0x01EF ]
, mapEntry ("ezhcurl") [ 0x0293 ]
, mapEntry ("ezhreversed") [ 0x01B9 ]
, mapEntry ("ezhtail") [ 0x01BA ]
, mapEntry ("f") [ 0x66 ]
, mapEntry ("fadeva") [ 0x095E ]
, mapEntry ("fagurmukhi") [ 0x0A5E ]
, mapEntry ("fahrenheit") [ 0x2109 ]
, mapEntry ("fathaarabic") [ 0x064E ]
, mapEntry ("fathalowarabic") [ 0x064E ]
, mapEntry ("fathatanarabic") [ 0x064B ]
, mapEntry ("fbopomofo") [ 0x3108 ]
, mapEntry ("fcircle") [ 0x24D5 ]
, mapEntry ("fdotaccent") [ 0x1E1F ]
, mapEntry ("feharabic") [ 0x0641 ]
, mapEntry ("feharmenian") [ 0x0586 ]
, mapEntry ("fehfinalarabic") [ 0xFED2 ]
, mapEntry ("fehinitialarabic") [ 0xFED3 ]
, mapEntry ("fehmedialarabic") [ 0xFED4 ]
, mapEntry ("feicoptic") [ 0x03E5 ]
, mapEntry ("female") [ 0x2640 ]
, mapEntry ("ff") [ 0xFB00 ]
, mapEntry ("ffi") [ 0xFB03 ]
, mapEntry ("ffl") [ 0xFB04 ]
, mapEntry ("fi") [ 0xFB01 ]
, mapEntry ("fifteencircle") [ 0x246E ]
, mapEntry ("fifteenparen") [ 0x2482 ]
, mapEntry ("fifteenperiod") [ 0x2496 ]
, mapEntry ("figuredash") [ 0x2012 ]
, mapEntry ("filledbox") [ 0x25A0 ]
, mapEntry ("filledrect") [ 0x25AC ]
, mapEntry ("finalkaf") [ 0x05DA ]
, mapEntry ("finalkafdagesh") [ 0xFB3A ]
, mapEntry ("finalkafdageshhebrew") [ 0xFB3A ]
, mapEntry ("finalkafhebrew") [ 0x05DA ]
, mapEntry ("finalkafqamats") [ 0x05DA, 0x05B8 ]
, mapEntry ("finalkafqamatshebrew") [ 0x05DA, 0x05B8 ]
, mapEntry ("finalkafsheva") [ 0x05DA, 0x05B0 ]
, mapEntry ("finalkafshevahebrew") [ 0x05DA, 0x05B0 ]
, mapEntry ("finalmem") [ 0x05DD ]
, mapEntry ("finalmemhebrew") [ 0x05DD ]
, mapEntry ("finalnun") [ 0x05DF ]
, mapEntry ("finalnunhebrew") [ 0x05DF ]
, mapEntry ("finalpe") [ 0x05E3 ]
, mapEntry ("finalpehebrew") [ 0x05E3 ]
, mapEntry ("finaltsadi") [ 0x05E5 ]
, mapEntry ("finaltsadihebrew") [ 0x05E5 ]
, mapEntry ("firsttonechinese") [ 0x02C9 ]
, mapEntry ("fisheye") [ 0x25C9 ]
, mapEntry ("fitacyrillic") [ 0x0473 ]
, mapEntry ("five") [ 0x35 ]
, mapEntry ("fivearabic") [ 0x0665 ]
, mapEntry ("fivebengali") [ 0x09EB ]
, mapEntry ("fivecircle") [ 0x2464 ]
, mapEntry ("fivecircleinversesansserif") [ 0x278E ]
, mapEntry ("fivedeva") [ 0x096B ]
, mapEntry ("fiveeighths") [ 0x215D ]
, mapEntry ("fivegujarati") [ 0x0AEB ]
, mapEntry ("fivegurmukhi") [ 0x0A6B ]
, mapEntry ("fivehackarabic") [ 0x0665 ]
, mapEntry ("fivehangzhou") [ 0x3025 ]
, mapEntry ("fiveideographicparen") [ 0x3224 ]
, mapEntry ("fiveinferior") [ 0x2085 ]
, mapEntry ("fivemonospace") [ 0xFF15 ]
, mapEntry ("fiveoldstyle") [ 0xF735 ]
, mapEntry ("fiveparen") [ 0x2478 ]
, mapEntry ("fiveperiod") [ 0x248C ]
, mapEntry ("fivepersian") [ 0x06F5 ]
, mapEntry ("fiveroman") [ 0x2174 ]
, mapEntry ("fivesuperior") [ 0x2075 ]
, mapEntry ("fivethai") [ 0x0E55 ]
, mapEntry ("fl") [ 0xFB02 ]
, mapEntry ("florin") [ 0x0192 ]
, mapEntry ("fmonospace") [ 0xFF46 ]
, mapEntry ("fmsquare") [ 0x3399 ]
, mapEntry ("fofanthai") [ 0x0E1F ]
, mapEntry ("fofathai") [ 0x0E1D ]
, mapEntry ("fongmanthai") [ 0x0E4F ]
, mapEntry ("forall") [ 0x2200 ]
, mapEntry ("four") [ 0x34 ]
, mapEntry ("fourarabic") [ 0x0664 ]
, mapEntry ("fourbengali") [ 0x09EA ]
, mapEntry ("fourcircle") [ 0x2463 ]
, mapEntry ("fourcircleinversesansserif") [ 0x278D ]
, mapEntry ("fourdeva") [ 0x096A ]
, mapEntry ("fourgujarati") [ 0x0AEA ]
, mapEntry ("fourgurmukhi") [ 0x0A6A ]
, mapEntry ("fourhackarabic") [ 0x0664 ]
, mapEntry ("fourhangzhou") [ 0x3024 ]
, mapEntry ("fourideographicparen") [ 0x3223 ]
, mapEntry ("fourinferior") [ 0x2084 ]
, mapEntry ("fourmonospace") [ 0xFF14 ]
, mapEntry ("fournumeratorbengali") [ 0x09F7 ]
, mapEntry ("fouroldstyle") [ 0xF734 ]
, mapEntry ("fourparen") [ 0x2477 ]
, mapEntry ("fourperiod") [ 0x248B ]
, mapEntry ("fourpersian") [ 0x06F4 ]
, mapEntry ("fourroman") [ 0x2173 ]
, mapEntry ("foursuperior") [ 0x2074 ]
, mapEntry ("fourteencircle") [ 0x246D ]
, mapEntry ("fourteenparen") [ 0x2481 ]
, mapEntry ("fourteenperiod") [ 0x2495 ]
, mapEntry ("fourthai") [ 0x0E54 ]
, mapEntry ("fourthtonechinese") [ 0x02CB ]
, mapEntry ("fparen") [ 0x24A1 ]
, mapEntry ("fraction") [ 0x2044 ]
, mapEntry ("franc") [ 0x20A3 ]
, mapEntry ("g") [ 0x67 ]
, mapEntry ("gabengali") [ 0x0997 ]
, mapEntry ("gacute") [ 0x01F5 ]
, mapEntry ("gadeva") [ 0x0917 ]
, mapEntry ("gafarabic") [ 0x06AF ]
, mapEntry ("gaffinalarabic") [ 0xFB93 ]
, mapEntry ("gafinitialarabic") [ 0xFB94 ]
, mapEntry ("gafmedialarabic") [ 0xFB95 ]
, mapEntry ("gagujarati") [ 0x0A97 ]
, mapEntry ("gagurmukhi") [ 0x0A17 ]
, mapEntry ("gahiragana") [ 0x304C ]
, mapEntry ("gakatakana") [ 0x30AC ]
, mapEntry ("gamma") [ 0x03B3 ]
, mapEntry ("gammalatinsmall") [ 0x0263 ]
, mapEntry ("gammasuperior") [ 0x02E0 ]
, mapEntry ("gangiacoptic") [ 0x03EB ]
, mapEntry ("gbopomofo") [ 0x310D ]
, mapEntry ("gbreve") [ 0x011F ]
, mapEntry ("gcaron") [ 0x01E7 ]
, mapEntry ("gcedilla") [ 0x0123 ]
, mapEntry ("gcircle") [ 0x24D6 ]
, mapEntry ("gcircumflex") [ 0x011D ]
, mapEntry ("gcommaaccent") [ 0x0123 ]
, mapEntry ("gdot") [ 0x0121 ]
, mapEntry ("gdotaccent") [ 0x0121 ]
, mapEntry ("gecyrillic") [ 0x0433 ]
, mapEntry ("gehiragana") [ 0x3052 ]
, mapEntry ("gekatakana") [ 0x30B2 ]
, mapEntry ("geometricallyequal") [ 0x2251 ]
, mapEntry ("gereshaccenthebrew") [ 0x059C ]
, mapEntry ("gereshhebrew") [ 0x05F3 ]
, mapEntry ("gereshmuqdamhebrew") [ 0x059D ]
, mapEntry ("germandbls") [ 0xDF ]
, mapEntry ("gershayimaccenthebrew") [ 0x059E ]
, mapEntry ("gershayimhebrew") [ 0x05F4 ]
, mapEntry ("getamark") [ 0x3013 ]
, mapEntry ("ghabengali") [ 0x0998 ]
, mapEntry ("ghadarmenian") [ 0x0572 ]
, mapEntry ("ghadeva") [ 0x0918 ]
, mapEntry ("ghagujarati") [ 0x0A98 ]
, mapEntry ("ghagurmukhi") [ 0x0A18 ]
, mapEntry ("ghainarabic") [ 0x063A ]
, mapEntry ("ghainfinalarabic") [ 0xFECE ]
, mapEntry ("ghaininitialarabic") [ 0xFECF ]
, mapEntry ("ghainmedialarabic") [ 0xFED0 ]
, mapEntry ("ghemiddlehookcyrillic") [ 0x0495 ]
, mapEntry ("ghestrokecyrillic") [ 0x0493 ]
, mapEntry ("gheupturncyrillic") [ 0x0491 ]
, mapEntry ("ghhadeva") [ 0x095A ]
, mapEntry ("ghhagurmukhi") [ 0x0A5A ]
, mapEntry ("ghook") [ 0x0260 ]
, mapEntry ("ghzsquare") [ 0x3393 ]
, mapEntry ("gihiragana") [ 0x304E ]
, mapEntry ("gikatakana") [ 0x30AE ]
, mapEntry ("gimarmenian") [ 0x0563 ]
, mapEntry ("gimel") [ 0x05D2 ]
, mapEntry ("gimeldagesh") [ 0xFB32 ]
, mapEntry ("gimeldageshhebrew") [ 0xFB32 ]
, mapEntry ("gimelhebrew") [ 0x05D2 ]
, mapEntry ("gjecyrillic") [ 0x0453 ]
, mapEntry ("glottalinvertedstroke") [ 0x01BE ]
, mapEntry ("glottalstop") [ 0x0294 ]
, mapEntry ("glottalstopinverted") [ 0x0296 ]
, mapEntry ("glottalstopmod") [ 0x02C0 ]
, mapEntry ("glottalstopreversed") [ 0x0295 ]
, mapEntry ("glottalstopreversedmod") [ 0x02C1 ]
, mapEntry ("glottalstopreversedsuperior") [ 0x02E4 ]
, mapEntry ("glottalstopstroke") [ 0x02A1 ]
, mapEntry ("glottalstopstrokereversed") [ 0x02A2 ]
, mapEntry ("gmacron") [ 0x1E21 ]
, mapEntry ("gmonospace") [ 0xFF47 ]
, mapEntry ("gohiragana") [ 0x3054 ]
, mapEntry ("gokatakana") [ 0x30B4 ]
, mapEntry ("gparen") [ 0x24A2 ]
, mapEntry ("gpasquare") [ 0x33AC ]
, mapEntry ("gradient") [ 0x2207 ]
, mapEntry ("grave") [ 0x60 ]
, mapEntry ("gravebelowcmb") [ 0x0316 ]
, mapEntry ("gravecmb") [ 0x0300 ]
, mapEntry ("gravecomb") [ 0x0300 ]
, mapEntry ("gravedeva") [ 0x0953 ]
, mapEntry ("gravelowmod") [ 0x02CE ]
, mapEntry ("gravemonospace") [ 0xFF40 ]
, mapEntry ("gravetonecmb") [ 0x0340 ]
, mapEntry ("greater") [ 0x3E ]
, mapEntry ("greaterequal") [ 0x2265 ]
, mapEntry ("greaterequalorless") [ 0x22DB ]
, mapEntry ("greatermonospace") [ 0xFF1E ]
, mapEntry ("greaterorequivalent") [ 0x2273 ]
, mapEntry ("greaterorless") [ 0x2277 ]
]
def glyphEncs6 =
[ mapEntry ("greateroverequal") [ 0x2267 ]
, mapEntry ("greatersmall") [ 0xFE65 ]
, mapEntry ("gscript") [ 0x0261 ]
, mapEntry ("gstroke") [ 0x01E5 ]
, mapEntry ("guhiragana") [ 0x3050 ]
, mapEntry ("guillemotleft") [ 0xAB ]
, mapEntry ("guillemotright") [ 0xBB ]
, mapEntry ("guilsinglleft") [ 0x2039 ]
, mapEntry ("guilsinglright") [ 0x203A ]
, mapEntry ("gukatakana") [ 0x30B0 ]
, mapEntry ("guramusquare") [ 0x3318 ]
, mapEntry ("gysquare") [ 0x33C9 ]
, mapEntry ("h") [ 0x68 ]
, mapEntry ("haabkhasiancyrillic") [ 0x04A9 ]
, mapEntry ("haaltonearabic") [ 0x06C1 ]
, mapEntry ("habengali") [ 0x09B9 ]
, mapEntry ("hadescendercyrillic") [ 0x04B3 ]
, mapEntry ("hadeva") [ 0x0939 ]
, mapEntry ("hagujarati") [ 0x0AB9 ]
, mapEntry ("hagurmukhi") [ 0x0A39 ]
, mapEntry ("haharabic") [ 0x062D ]
, mapEntry ("hahfinalarabic") [ 0xFEA2 ]
, mapEntry ("hahinitialarabic") [ 0xFEA3 ]
, mapEntry ("hahiragana") [ 0x306F ]
, mapEntry ("hahmedialarabic") [ 0xFEA4 ]
, mapEntry ("haitusquare") [ 0x332A ]
, mapEntry ("hakatakana") [ 0x30CF ]
, mapEntry ("hakatakanahalfwidth") [ 0xFF8A ]
, mapEntry ("halantgurmukhi") [ 0x0A4D ]
, mapEntry ("hamzaarabic") [ 0x0621 ]
, mapEntry ("hamzadammaarabic") [ 0x0621, 0x064F ]
, mapEntry ("hamzadammatanarabic") [ 0x0621, 0x064C ]
, mapEntry ("hamzafathaarabic") [ 0x0621, 0x064E ]
, mapEntry ("hamzafathatanarabic") [ 0x0621, 0x064B ]
, mapEntry ("hamzalowarabic") [ 0x0621 ]
, mapEntry ("hamzalowkasraarabic") [ 0x0621, 0x0650 ]
, mapEntry ("hamzalowkasratanarabic") [ 0x0621, 0x064D ]
, mapEntry ("hamzasukunarabic") [ 0x0621, 0x0652 ]
, mapEntry ("hangulfiller") [ 0x3164 ]
, mapEntry ("hardsigncyrillic") [ 0x044A ]
, mapEntry ("harpoonleftbarbup") [ 0x21BC ]
, mapEntry ("harpoonrightbarbup") [ 0x21C0 ]
, mapEntry ("hasquare") [ 0x33CA ]
, mapEntry ("hatafpatah") [ 0x05B2 ]
, mapEntry ("hatafpatah16") [ 0x05B2 ]
, mapEntry ("hatafpatah23") [ 0x05B2 ]
, mapEntry ("hatafpatah2f") [ 0x05B2 ]
, mapEntry ("hatafpatahhebrew") [ 0x05B2 ]
, mapEntry ("hatafpatahnarrowhebrew") [ 0x05B2 ]
, mapEntry ("hatafpatahquarterhebrew") [ 0x05B2 ]
, mapEntry ("hatafpatahwidehebrew") [ 0x05B2 ]
, mapEntry ("hatafqamats") [ 0x05B3 ]
, mapEntry ("hatafqamats1b") [ 0x05B3 ]
, mapEntry ("hatafqamats28") [ 0x05B3 ]
, mapEntry ("hatafqamats34") [ 0x05B3 ]
, mapEntry ("hatafqamatshebrew") [ 0x05B3 ]
, mapEntry ("hatafqamatsnarrowhebrew") [ 0x05B3 ]
, mapEntry ("hatafqamatsquarterhebrew") [ 0x05B3 ]
, mapEntry ("hatafqamatswidehebrew") [ 0x05B3 ]
, mapEntry ("hatafsegol") [ 0x05B1 ]
, mapEntry ("hatafsegol17") [ 0x05B1 ]
, mapEntry ("hatafsegol24") [ 0x05B1 ]
, mapEntry ("hatafsegol30") [ 0x05B1 ]
, mapEntry ("hatafsegolhebrew") [ 0x05B1 ]
, mapEntry ("hatafsegolnarrowhebrew") [ 0x05B1 ]
, mapEntry ("hatafsegolquarterhebrew") [ 0x05B1 ]
, mapEntry ("hatafsegolwidehebrew") [ 0x05B1 ]
, mapEntry ("hbar") [ 0x0127 ]
, mapEntry ("hbopomofo") [ 0x310F ]
, mapEntry ("hbrevebelow") [ 0x1E2B ]
, mapEntry ("hcedilla") [ 0x1E29 ]
, mapEntry ("hcircle") [ 0x24D7 ]
, mapEntry ("hcircumflex") [ 0x0125 ]
, mapEntry ("hdieresis") [ 0x1E27 ]
, mapEntry ("hdotaccent") [ 0x1E23 ]
, mapEntry ("hdotbelow") [ 0x1E25 ]
, mapEntry ("he") [ 0x05D4 ]
, mapEntry ("heart") [ 0x2665 ]
, mapEntry ("heartsuitblack") [ 0x2665 ]
, mapEntry ("heartsuitwhite") [ 0x2661 ]
, mapEntry ("hedagesh") [ 0xFB34 ]
, mapEntry ("hedageshhebrew") [ 0xFB34 ]
, mapEntry ("hehaltonearabic") [ 0x06C1 ]
, mapEntry ("heharabic") [ 0x0647 ]
, mapEntry ("hehebrew") [ 0x05D4 ]
, mapEntry ("hehfinalaltonearabic") [ 0xFBA7 ]
, mapEntry ("hehfinalalttwoarabic") [ 0xFEEA ]
, mapEntry ("hehfinalarabic") [ 0xFEEA ]
, mapEntry ("hehhamzaabovefinalarabic") [ 0xFBA5 ]
, mapEntry ("hehhamzaaboveisolatedarabic") [ 0xFBA4 ]
, mapEntry ("hehinitialaltonearabic") [ 0xFBA8 ]
, mapEntry ("hehinitialarabic") [ 0xFEEB ]
, mapEntry ("hehiragana") [ 0x3078 ]
, mapEntry ("hehmedialaltonearabic") [ 0xFBA9 ]
, mapEntry ("hehmedialarabic") [ 0xFEEC ]
, mapEntry ("heiseierasquare") [ 0x337B ]
, mapEntry ("hekatakana") [ 0x30D8 ]
, mapEntry ("hekatakanahalfwidth") [ 0xFF8D ]
, mapEntry ("hekutaarusquare") [ 0x3336 ]
, mapEntry ("henghook") [ 0x0267 ]
, mapEntry ("herutusquare") [ 0x3339 ]
, mapEntry ("het") [ 0x05D7 ]
, mapEntry ("hethebrew") [ 0x05D7 ]
, mapEntry ("hhook") [ 0x0266 ]
, mapEntry ("hhooksuperior") [ 0x02B1 ]
, mapEntry ("hieuhacirclekorean") [ 0x327B ]
, mapEntry ("hieuhaparenkorean") [ 0x321B ]
, mapEntry ("hieuhcirclekorean") [ 0x326D ]
, mapEntry ("hieuhkorean") [ 0x314E ]
, mapEntry ("hieuhparenkorean") [ 0x320D ]
, mapEntry ("hihiragana") [ 0x3072 ]
, mapEntry ("hikatakana") [ 0x30D2 ]
, mapEntry ("hikatakanahalfwidth") [ 0xFF8B ]
, mapEntry ("hiriq") [ 0x05B4 ]
, mapEntry ("hiriq14") [ 0x05B4 ]
, mapEntry ("hiriq21") [ 0x05B4 ]
, mapEntry ("hiriq2d") [ 0x05B4 ]
, mapEntry ("hiriqhebrew") [ 0x05B4 ]
, mapEntry ("hiriqnarrowhebrew") [ 0x05B4 ]
, mapEntry ("hiriqquarterhebrew") [ 0x05B4 ]
, mapEntry ("hiriqwidehebrew") [ 0x05B4 ]
, mapEntry ("hlinebelow") [ 0x1E96 ]
, mapEntry ("hmonospace") [ 0xFF48 ]
, mapEntry ("hoarmenian") [ 0x0570 ]
, mapEntry ("hohipthai") [ 0x0E2B ]
, mapEntry ("hohiragana") [ 0x307B ]
, mapEntry ("hokatakana") [ 0x30DB ]
, mapEntry ("hokatakanahalfwidth") [ 0xFF8E ]
, mapEntry ("holam") [ 0x05B9 ]
, mapEntry ("holam19") [ 0x05B9 ]
, mapEntry ("holam26") [ 0x05B9 ]
, mapEntry ("holam32") [ 0x05B9 ]
, mapEntry ("holamhebrew") [ 0x05B9 ]
, mapEntry ("holamnarrowhebrew") [ 0x05B9 ]
, mapEntry ("holamquarterhebrew") [ 0x05B9 ]
, mapEntry ("holamwidehebrew") [ 0x05B9 ]
, mapEntry ("honokhukthai") [ 0x0E2E ]
, mapEntry ("hookabovecomb") [ 0x0309 ]
, mapEntry ("hookcmb") [ 0x0309 ]
, mapEntry ("hookpalatalizedbelowcmb") [ 0x0321 ]
, mapEntry ("hookretroflexbelowcmb") [ 0x0322 ]
, mapEntry ("hoonsquare") [ 0x3342 ]
, mapEntry ("horicoptic") [ 0x03E9 ]
, mapEntry ("horizontalbar") [ 0x2015 ]
, mapEntry ("horncmb") [ 0x031B ]
, mapEntry ("hotsprings") [ 0x2668 ]
, mapEntry ("house") [ 0x2302 ]
, mapEntry ("hparen") [ 0x24A3 ]
, mapEntry ("hsuperior") [ 0x02B0 ]
, mapEntry ("hturned") [ 0x0265 ]
, mapEntry ("huhiragana") [ 0x3075 ]
, mapEntry ("huiitosquare") [ 0x3333 ]
, mapEntry ("hukatakana") [ 0x30D5 ]
, mapEntry ("hukatakanahalfwidth") [ 0xFF8C ]
, mapEntry ("hungarumlaut") [ 0x02DD ]
, mapEntry ("hungarumlautcmb") [ 0x030B ]
, mapEntry ("hv") [ 0x0195 ]
, mapEntry ("hyphen") [ 0x2D ]
, mapEntry ("hypheninferior") [ 0xF6E5 ]
, mapEntry ("hyphenmonospace") [ 0xFF0D ]
, mapEntry ("hyphensmall") [ 0xFE63 ]
, mapEntry ("hyphensuperior") [ 0xF6E6 ]
, mapEntry ("hyphentwo") [ 0x2010 ]
, mapEntry ("i") [ 0x69 ]
, mapEntry ("iacute") [ 0xED ]
, mapEntry ("iacyrillic") [ 0x044F ]
, mapEntry ("ibengali") [ 0x0987 ]
, mapEntry ("ibopomofo") [ 0x3127 ]
, mapEntry ("ibreve") [ 0x012D ]
, mapEntry ("icaron") [ 0x01D0 ]
, mapEntry ("icircle") [ 0x24D8 ]
, mapEntry ("icircumflex") [ 0xEE ]
, mapEntry ("icyrillic") [ 0x0456 ]
, mapEntry ("idblgrave") [ 0x0209 ]
, mapEntry ("ideographearthcircle") [ 0x328F ]
, mapEntry ("ideographfirecircle") [ 0x328B ]
, mapEntry ("ideographicallianceparen") [ 0x323F ]
, mapEntry ("ideographiccallparen") [ 0x323A ]
, mapEntry ("ideographiccentrecircle") [ 0x32A5 ]
, mapEntry ("ideographicclose") [ 0x3006 ]
, mapEntry ("ideographiccomma") [ 0x3001 ]
, mapEntry ("ideographiccommaleft") [ 0xFF64 ]
, mapEntry ("ideographiccongratulationparen") [ 0x3237 ]
, mapEntry ("ideographiccorrectcircle") [ 0x32A3 ]
, mapEntry ("ideographicearthparen") [ 0x322F ]
, mapEntry ("ideographicenterpriseparen") [ 0x323D ]
, mapEntry ("ideographicexcellentcircle") [ 0x329D ]
, mapEntry ("ideographicfestivalparen") [ 0x3240 ]
, mapEntry ("ideographicfinancialcircle") [ 0x3296 ]
, mapEntry ("ideographicfinancialparen") [ 0x3236 ]
, mapEntry ("ideographicfireparen") [ 0x322B ]
, mapEntry ("ideographichaveparen") [ 0x3232 ]
, mapEntry ("ideographichighcircle") [ 0x32A4 ]
, mapEntry ("ideographiciterationmark") [ 0x3005 ]
, mapEntry ("ideographiclaborcircle") [ 0x3298 ]
, mapEntry ("ideographiclaborparen") [ 0x3238 ]
, mapEntry ("ideographicleftcircle") [ 0x32A7 ]
, mapEntry ("ideographiclowcircle") [ 0x32A6 ]
, mapEntry ("ideographicmedicinecircle") [ 0x32A9 ]
, mapEntry ("ideographicmetalparen") [ 0x322E ]
, mapEntry ("ideographicmoonparen") [ 0x322A ]
, mapEntry ("ideographicnameparen") [ 0x3234 ]
, mapEntry ("ideographicperiod") [ 0x3002 ]
, mapEntry ("ideographicprintcircle") [ 0x329E ]
, mapEntry ("ideographicreachparen") [ 0x3243 ]
, mapEntry ("ideographicrepresentparen") [ 0x3239 ]
, mapEntry ("ideographicresourceparen") [ 0x323E ]
, mapEntry ("ideographicrightcircle") [ 0x32A8 ]
, mapEntry ("ideographicsecretcircle") [ 0x3299 ]
, mapEntry ("ideographicselfparen") [ 0x3242 ]
, mapEntry ("ideographicsocietyparen") [ 0x3233 ]
, mapEntry ("ideographicspace") [ 0x3000 ]
, mapEntry ("ideographicspecialparen") [ 0x3235 ]
, mapEntry ("ideographicstockparen") [ 0x3231 ]
, mapEntry ("ideographicstudyparen") [ 0x323B ]
, mapEntry ("ideographicsunparen") [ 0x3230 ]
, mapEntry ("ideographicsuperviseparen") [ 0x323C ]
, mapEntry ("ideographicwaterparen") [ 0x322C ]
, mapEntry ("ideographicwoodparen") [ 0x322D ]
, mapEntry ("ideographiczero") [ 0x3007 ]
, mapEntry ("ideographmetalcircle") [ 0x328E ]
, mapEntry ("ideographmooncircle") [ 0x328A ]
, mapEntry ("ideographnamecircle") [ 0x3294 ]
, mapEntry ("ideographsuncircle") [ 0x3290 ]
, mapEntry ("ideographwatercircle") [ 0x328C ]
, mapEntry ("ideographwoodcircle") [ 0x328D ]
, mapEntry ("ideva") [ 0x0907 ]
, mapEntry ("idieresis") [ 0xEF ]
, mapEntry ("idieresisacute") [ 0x1E2F ]
, mapEntry ("idieresiscyrillic") [ 0x04E5 ]
, mapEntry ("idotbelow") [ 0x1ECB ]
, mapEntry ("iebrevecyrillic") [ 0x04D7 ]
, mapEntry ("iecyrillic") [ 0x0435 ]
, mapEntry ("ieungacirclekorean") [ 0x3275 ]
, mapEntry ("ieungaparenkorean") [ 0x3215 ]
, mapEntry ("ieungcirclekorean") [ 0x3267 ]
, mapEntry ("ieungkorean") [ 0x3147 ]
, mapEntry ("ieungparenkorean") [ 0x3207 ]
, mapEntry ("igrave") [ 0xEC ]
, mapEntry ("igujarati") [ 0x0A87 ]
, mapEntry ("igurmukhi") [ 0x0A07 ]
, mapEntry ("ihiragana") [ 0x3044 ]
, mapEntry ("ihookabove") [ 0x1EC9 ]
, mapEntry ("iibengali") [ 0x0988 ]
, mapEntry ("iicyrillic") [ 0x0438 ]
, mapEntry ("iideva") [ 0x0908 ]
, mapEntry ("iigujarati") [ 0x0A88 ]
, mapEntry ("iigurmukhi") [ 0x0A08 ]
, mapEntry ("iimatragurmukhi") [ 0x0A40 ]
, mapEntry ("iinvertedbreve") [ 0x020B ]
, mapEntry ("iishortcyrillic") [ 0x0439 ]
, mapEntry ("iivowelsignbengali") [ 0x09C0 ]
, mapEntry ("iivowelsigndeva") [ 0x0940 ]
, mapEntry ("iivowelsigngujarati") [ 0x0AC0 ]
, mapEntry ("ij") [ 0x0133 ]
, mapEntry ("ikatakana") [ 0x30A4 ]
, mapEntry ("ikatakanahalfwidth") [ 0xFF72 ]
, mapEntry ("ikorean") [ 0x3163 ]
, mapEntry ("ilde") [ 0x02DC ]
, mapEntry ("iluyhebrew") [ 0x05AC ]
, mapEntry ("imacron") [ 0x012B ]
, mapEntry ("imacroncyrillic") [ 0x04E3 ]
, mapEntry ("imageorapproximatelyequal") [ 0x2253 ]
, mapEntry ("imatragurmukhi") [ 0x0A3F ]
, mapEntry ("imonospace") [ 0xFF49 ]
, mapEntry ("increment") [ 0x2206 ]
, mapEntry ("infinity") [ 0x221E ]
, mapEntry ("iniarmenian") [ 0x056B ]
, mapEntry ("integral") [ 0x222B ]
, mapEntry ("integralbottom") [ 0x2321 ]
, mapEntry ("integralbt") [ 0x2321 ]
, mapEntry ("integralex") [ 0xF8F5 ]
, mapEntry ("integraltop") [ 0x2320 ]
, mapEntry ("integraltp") [ 0x2320 ]
, mapEntry ("intersection") [ 0x2229 ]
, mapEntry ("intisquare") [ 0x3305 ]
, mapEntry ("invbullet") [ 0x25D8 ]
, mapEntry ("invcircle") [ 0x25D9 ]
, mapEntry ("invsmileface") [ 0x263B ]
, mapEntry ("iocyrillic") [ 0x0451 ]
, mapEntry ("iogonek") [ 0x012F ]
, mapEntry ("iota") [ 0x03B9 ]
, mapEntry ("iotadieresis") [ 0x03CA ]
, mapEntry ("iotadieresistonos") [ 0x0390 ]
, mapEntry ("iotalatin") [ 0x0269 ]
, mapEntry ("iotatonos") [ 0x03AF ]
, mapEntry ("iparen") [ 0x24A4 ]
, mapEntry ("irigurmukhi") [ 0x0A72 ]
, mapEntry ("ismallhiragana") [ 0x3043 ]
, mapEntry ("ismallkatakana") [ 0x30A3 ]
, mapEntry ("ismallkatakanahalfwidth") [ 0xFF68 ]
, mapEntry ("issharbengali") [ 0x09FA ]
, mapEntry ("istroke") [ 0x0268 ]
, mapEntry ("isuperior") [ 0xF6ED ]
, mapEntry ("iterationhiragana") [ 0x309D ]
, mapEntry ("iterationkatakana") [ 0x30FD ]
, mapEntry ("itilde") [ 0x0129 ]
, mapEntry ("itildebelow") [ 0x1E2D ]
, mapEntry ("iubopomofo") [ 0x3129 ]
, mapEntry ("iucyrillic") [ 0x044E ]
, mapEntry ("ivowelsignbengali") [ 0x09BF ]
, mapEntry ("ivowelsigndeva") [ 0x093F ]
, mapEntry ("ivowelsigngujarati") [ 0x0ABF ]
, mapEntry ("izhitsacyrillic") [ 0x0475 ]
, mapEntry ("izhitsadblgravecyrillic") [ 0x0477 ]
, mapEntry ("j") [ 0x6A ]
, mapEntry ("jaarmenian") [ 0x0571 ]
, mapEntry ("jabengali") [ 0x099C ]
, mapEntry ("jadeva") [ 0x091C ]
, mapEntry ("jagujarati") [ 0x0A9C ]
, mapEntry ("jagurmukhi") [ 0x0A1C ]
, mapEntry ("jbopomofo") [ 0x3110 ]
, mapEntry ("jcaron") [ 0x01F0 ]
, mapEntry ("jcircle") [ 0x24D9 ]
, mapEntry ("jcircumflex") [ 0x0135 ]
, mapEntry ("jcrossedtail") [ 0x029D ]
, mapEntry ("jdotlessstroke") [ 0x025F ]
, mapEntry ("jecyrillic") [ 0x0458 ]
, mapEntry ("jeemarabic") [ 0x062C ]
, mapEntry ("jeemfinalarabic") [ 0xFE9E ]
, mapEntry ("jeeminitialarabic") [ 0xFE9F ]
, mapEntry ("jeemmedialarabic") [ 0xFEA0 ]
, mapEntry ("jeharabic") [ 0x0698 ]
, mapEntry ("jehfinalarabic") [ 0xFB8B ]
, mapEntry ("jhabengali") [ 0x099D ]
, mapEntry ("jhadeva") [ 0x091D ]
, mapEntry ("jhagujarati") [ 0x0A9D ]
, mapEntry ("jhagurmukhi") [ 0x0A1D ]
, mapEntry ("jheharmenian") [ 0x057B ]
, mapEntry ("jis") [ 0x3004 ]
, mapEntry ("jmonospace") [ 0xFF4A ]
, mapEntry ("jparen") [ 0x24A5 ]
, mapEntry ("jsuperior") [ 0x02B2 ]
, mapEntry ("k") [ 0x6B ]
, mapEntry ("kabashkircyrillic") [ 0x04A1 ]
, mapEntry ("kabengali") [ 0x0995 ]
, mapEntry ("kacute") [ 0x1E31 ]
, mapEntry ("kacyrillic") [ 0x043A ]
, mapEntry ("kadescendercyrillic") [ 0x049B ]
, mapEntry ("kadeva") [ 0x0915 ]
, mapEntry ("kaf") [ 0x05DB ]
, mapEntry ("kafarabic") [ 0x0643 ]
, mapEntry ("kafdagesh") [ 0xFB3B ]
, mapEntry ("kafdageshhebrew") [ 0xFB3B ]
, mapEntry ("kaffinalarabic") [ 0xFEDA ]
, mapEntry ("kafhebrew") [ 0x05DB ]
, mapEntry ("kafinitialarabic") [ 0xFEDB ]
, mapEntry ("kafmedialarabic") [ 0xFEDC ]
, mapEntry ("kafrafehebrew") [ 0xFB4D ]
, mapEntry ("kagujarati") [ 0x0A95 ]
, mapEntry ("kagurmukhi") [ 0x0A15 ]
, mapEntry ("kahiragana") [ 0x304B ]
, mapEntry ("kahookcyrillic") [ 0x04C4 ]
, mapEntry ("kakatakana") [ 0x30AB ]
, mapEntry ("kakatakanahalfwidth") [ 0xFF76 ]
, mapEntry ("kappa") [ 0x03BA ]
, mapEntry ("kappasymbolgreek") [ 0x03F0 ]
, mapEntry ("kapyeounmieumkorean") [ 0x3171 ]
, mapEntry ("kapyeounphieuphkorean") [ 0x3184 ]
, mapEntry ("kapyeounpieupkorean") [ 0x3178 ]
, mapEntry ("kapyeounssangpieupkorean") [ 0x3179 ]
, mapEntry ("karoriisquare") [ 0x330D ]
, mapEntry ("kashidaautoarabic") [ 0x0640 ]
, mapEntry ("kashidaautonosidebearingarabic") [ 0x0640 ]
, mapEntry ("kasmallkatakana") [ 0x30F5 ]
, mapEntry ("kasquare") [ 0x3384 ]
, mapEntry ("kasraarabic") [ 0x0650 ]
, mapEntry ("kasratanarabic") [ 0x064D ]
, mapEntry ("kastrokecyrillic") [ 0x049F ]
, mapEntry ("katahiraprolongmarkhalfwidth") [ 0xFF70 ]
, mapEntry ("kaverticalstrokecyrillic") [ 0x049D ]
, mapEntry ("kbopomofo") [ 0x310E ]
, mapEntry ("kcalsquare") [ 0x3389 ]
, mapEntry ("kcaron") [ 0x01E9 ]
, mapEntry ("kcedilla") [ 0x0137 ]
, mapEntry ("kcircle") [ 0x24DA ]
, mapEntry ("kcommaaccent") [ 0x0137 ]
, mapEntry ("kdotbelow") [ 0x1E33 ]
, mapEntry ("keharmenian") [ 0x0584 ]
, mapEntry ("kehiragana") [ 0x3051 ]
, mapEntry ("kekatakana") [ 0x30B1 ]
, mapEntry ("kekatakanahalfwidth") [ 0xFF79 ]
, mapEntry ("kenarmenian") [ 0x056F ]
, mapEntry ("kesmallkatakana") [ 0x30F6 ]
, mapEntry ("kgreenlandic") [ 0x0138 ]
, mapEntry ("khabengali") [ 0x0996 ]
, mapEntry ("khacyrillic") [ 0x0445 ]
, mapEntry ("khadeva") [ 0x0916 ]
, mapEntry ("khagujarati") [ 0x0A96 ]
, mapEntry ("khagurmukhi") [ 0x0A16 ]
, mapEntry ("khaharabic") [ 0x062E ]
, mapEntry ("khahfinalarabic") [ 0xFEA6 ]
, mapEntry ("khahinitialarabic") [ 0xFEA7 ]
, mapEntry ("khahmedialarabic") [ 0xFEA8 ]
, mapEntry ("kheicoptic") [ 0x03E7 ]
, mapEntry ("khhadeva") [ 0x0959 ]
, mapEntry ("khhagurmukhi") [ 0x0A59 ]
, mapEntry ("khieukhacirclekorean") [ 0x3278 ]
, mapEntry ("khieukhaparenkorean") [ 0x3218 ]
, mapEntry ("khieukhcirclekorean") [ 0x326A ]
]
def glyphEncs7 =
[ mapEntry ("khieukhkorean") [ 0x314B ]
, mapEntry ("khieukhparenkorean") [ 0x320A ]
, mapEntry ("khokhaithai") [ 0x0E02 ]
, mapEntry ("khokhonthai") [ 0x0E05 ]
, mapEntry ("khokhuatthai") [ 0x0E03 ]
, mapEntry ("khokhwaithai") [ 0x0E04 ]
, mapEntry ("khomutthai") [ 0x0E5B ]
, mapEntry ("khook") [ 0x0199 ]
, mapEntry ("khorakhangthai") [ 0x0E06 ]
, mapEntry ("khzsquare") [ 0x3391 ]
, mapEntry ("kihiragana") [ 0x304D ]
, mapEntry ("kikatakana") [ 0x30AD ]
, mapEntry ("kikatakanahalfwidth") [ 0xFF77 ]
, mapEntry ("kiroguramusquare") [ 0x3315 ]
, mapEntry ("kiromeetorusquare") [ 0x3316 ]
, mapEntry ("kirosquare") [ 0x3314 ]
, mapEntry ("kiyeokacirclekorean") [ 0x326E ]
, mapEntry ("kiyeokaparenkorean") [ 0x320E ]
, mapEntry ("kiyeokcirclekorean") [ 0x3260 ]
, mapEntry ("kiyeokkorean") [ 0x3131 ]
, mapEntry ("kiyeokparenkorean") [ 0x3200 ]
, mapEntry ("kiyeoksioskorean") [ 0x3133 ]
, mapEntry ("kjecyrillic") [ 0x045C ]
, mapEntry ("klinebelow") [ 0x1E35 ]
, mapEntry ("klsquare") [ 0x3398 ]
, mapEntry ("kmcubedsquare") [ 0x33A6 ]
, mapEntry ("kmonospace") [ 0xFF4B ]
, mapEntry ("kmsquaredsquare") [ 0x33A2 ]
, mapEntry ("kohiragana") [ 0x3053 ]
, mapEntry ("kohmsquare") [ 0x33C0 ]
, mapEntry ("kokaithai") [ 0x0E01 ]
, mapEntry ("kokatakana") [ 0x30B3 ]
, mapEntry ("kokatakanahalfwidth") [ 0xFF7A ]
, mapEntry ("kooposquare") [ 0x331E ]
, mapEntry ("koppacyrillic") [ 0x0481 ]
, mapEntry ("koreanstandardsymbol") [ 0x327F ]
, mapEntry ("koroniscmb") [ 0x0343 ]
, mapEntry ("kparen") [ 0x24A6 ]
, mapEntry ("kpasquare") [ 0x33AA ]
, mapEntry ("ksicyrillic") [ 0x046F ]
, mapEntry ("ktsquare") [ 0x33CF ]
, mapEntry ("kturned") [ 0x029E ]
, mapEntry ("kuhiragana") [ 0x304F ]
, mapEntry ("kukatakana") [ 0x30AF ]
, mapEntry ("kukatakanahalfwidth") [ 0xFF78 ]
, mapEntry ("kvsquare") [ 0x33B8 ]
, mapEntry ("kwsquare") [ 0x33BE ]
, mapEntry ("l") [ 0x6C ]
, mapEntry ("labengali") [ 0x09B2 ]
, mapEntry ("lacute") [ 0x013A ]
, mapEntry ("ladeva") [ 0x0932 ]
, mapEntry ("lagujarati") [ 0x0AB2 ]
, mapEntry ("lagurmukhi") [ 0x0A32 ]
, mapEntry ("lakkhangyaothai") [ 0x0E45 ]
, mapEntry ("lamaleffinalarabic") [ 0xFEFC ]
, mapEntry ("lamalefhamzaabovefinalarabic") [ 0xFEF8 ]
, mapEntry ("lamalefhamzaaboveisolatedarabic") [ 0xFEF7 ]
, mapEntry ("lamalefhamzabelowfinalarabic") [ 0xFEFA ]
, mapEntry ("lamalefhamzabelowisolatedarabic") [ 0xFEF9 ]
, mapEntry ("lamalefisolatedarabic") [ 0xFEFB ]
, mapEntry ("lamalefmaddaabovefinalarabic") [ 0xFEF6 ]
, mapEntry ("lamalefmaddaaboveisolatedarabic") [ 0xFEF5 ]
, mapEntry ("lamarabic") [ 0x0644 ]
, mapEntry ("lambda") [ 0x03BB ]
, mapEntry ("lambdastroke") [ 0x019B ]
, mapEntry ("lamed") [ 0x05DC ]
, mapEntry ("lameddagesh") [ 0xFB3C ]
, mapEntry ("lameddageshhebrew") [ 0xFB3C ]
, mapEntry ("lamedhebrew") [ 0x05DC ]
, mapEntry ("lamedholam") [ 0x05DC, 0x05B9 ]
, mapEntry ("lamedholamdagesh") [ 0x05DC, 0x05B9, 0x05BC ]
, mapEntry ("lamedholamdageshhebrew") [ 0x05DC, 0x05B9, 0x05BC ]
, mapEntry ("lamedholamhebrew") [ 0x05DC, 0x05B9 ]
, mapEntry ("lamfinalarabic") [ 0xFEDE ]
, mapEntry ("lamhahinitialarabic") [ 0xFCCA ]
, mapEntry ("laminitialarabic") [ 0xFEDF ]
, mapEntry ("lamjeeminitialarabic") [ 0xFCC9 ]
, mapEntry ("lamkhahinitialarabic") [ 0xFCCB ]
, mapEntry ("lamlamhehisolatedarabic") [ 0xFDF2 ]
, mapEntry ("lammedialarabic") [ 0xFEE0 ]
, mapEntry ("lammeemhahinitialarabic") [ 0xFD88 ]
, mapEntry ("lammeeminitialarabic") [ 0xFCCC ]
, mapEntry ("lammeemjeeminitialarabic") [ 0xFEDF, 0xFEE4, 0xFEA0 ]
, mapEntry ("lammeemkhahinitialarabic") [ 0xFEDF, 0xFEE4, 0xFEA8 ]
, mapEntry ("largecircle") [ 0x25EF ]
, mapEntry ("lbar") [ 0x019A ]
, mapEntry ("lbelt") [ 0x026C ]
, mapEntry ("lbopomofo") [ 0x310C ]
, mapEntry ("lcaron") [ 0x013E ]
, mapEntry ("lcedilla") [ 0x013C ]
, mapEntry ("lcircle") [ 0x24DB ]
, mapEntry ("lcircumflexbelow") [ 0x1E3D ]
, mapEntry ("lcommaaccent") [ 0x013C ]
, mapEntry ("ldot") [ 0x0140 ]
, mapEntry ("ldotaccent") [ 0x0140 ]
, mapEntry ("ldotbelow") [ 0x1E37 ]
, mapEntry ("ldotbelowmacron") [ 0x1E39 ]
, mapEntry ("leftangleabovecmb") [ 0x031A ]
, mapEntry ("lefttackbelowcmb") [ 0x0318 ]
, mapEntry ("less") [ 0x3C ]
, mapEntry ("lessequal") [ 0x2264 ]
, mapEntry ("lessequalorgreater") [ 0x22DA ]
, mapEntry ("lessmonospace") [ 0xFF1C ]
, mapEntry ("lessorequivalent") [ 0x2272 ]
, mapEntry ("lessorgreater") [ 0x2276 ]
, mapEntry ("lessoverequal") [ 0x2266 ]
, mapEntry ("lesssmall") [ 0xFE64 ]
, mapEntry ("lezh") [ 0x026E ]
, mapEntry ("lfblock") [ 0x258C ]
, mapEntry ("lhookretroflex") [ 0x026D ]
, mapEntry ("lira") [ 0x20A4 ]
, mapEntry ("liwnarmenian") [ 0x056C ]
, mapEntry ("lj") [ 0x01C9 ]
, mapEntry ("ljecyrillic") [ 0x0459 ]
, mapEntry ("ll") [ 0xF6C0 ]
, mapEntry ("lladeva") [ 0x0933 ]
, mapEntry ("llagujarati") [ 0x0AB3 ]
, mapEntry ("llinebelow") [ 0x1E3B ]
, mapEntry ("llladeva") [ 0x0934 ]
, mapEntry ("llvocalicbengali") [ 0x09E1 ]
, mapEntry ("llvocalicdeva") [ 0x0961 ]
, mapEntry ("llvocalicvowelsignbengali") [ 0x09E3 ]
, mapEntry ("llvocalicvowelsigndeva") [ 0x0963 ]
, mapEntry ("lmiddletilde") [ 0x026B ]
, mapEntry ("lmonospace") [ 0xFF4C ]
, mapEntry ("lmsquare") [ 0x33D0 ]
, mapEntry ("lochulathai") [ 0x0E2C ]
, mapEntry ("logicaland") [ 0x2227 ]
, mapEntry ("logicalnot") [ 0xAC ]
, mapEntry ("logicalnotreversed") [ 0x2310 ]
, mapEntry ("logicalor") [ 0x2228 ]
, mapEntry ("lolingthai") [ 0x0E25 ]
, mapEntry ("longs") [ 0x017F ]
, mapEntry ("lowlinecenterline") [ 0xFE4E ]
, mapEntry ("lowlinecmb") [ 0x0332 ]
, mapEntry ("lowlinedashed") [ 0xFE4D ]
, mapEntry ("lozenge") [ 0x25CA ]
, mapEntry ("lparen") [ 0x24A7 ]
, mapEntry ("lslash") [ 0x0142 ]
, mapEntry ("lsquare") [ 0x2113 ]
, mapEntry ("lsuperior") [ 0xF6EE ]
, mapEntry ("ltshade") [ 0x2591 ]
, mapEntry ("luthai") [ 0x0E26 ]
, mapEntry ("lvocalicbengali") [ 0x098C ]
, mapEntry ("lvocalicdeva") [ 0x090C ]
, mapEntry ("lvocalicvowelsignbengali") [ 0x09E2 ]
, mapEntry ("lvocalicvowelsigndeva") [ 0x0962 ]
, mapEntry ("lxsquare") [ 0x33D3 ]
, mapEntry ("m") [ 0x6D ]
, mapEntry ("mabengali") [ 0x09AE ]
, mapEntry ("macron") [ 0xAF ]
, mapEntry ("macronbelowcmb") [ 0x0331 ]
, mapEntry ("macroncmb") [ 0x0304 ]
, mapEntry ("macronlowmod") [ 0x02CD ]
, mapEntry ("macronmonospace") [ 0xFFE3 ]
, mapEntry ("macute") [ 0x1E3F ]
, mapEntry ("madeva") [ 0x092E ]
, mapEntry ("magujarati") [ 0x0AAE ]
, mapEntry ("magurmukhi") [ 0x0A2E ]
, mapEntry ("mahapakhhebrew") [ 0x05A4 ]
, mapEntry ("mahapakhlefthebrew") [ 0x05A4 ]
, mapEntry ("mahiragana") [ 0x307E ]
, mapEntry ("maichattawalowleftthai") [ 0xF895 ]
, mapEntry ("maichattawalowrightthai") [ 0xF894 ]
, mapEntry ("maichattawathai") [ 0x0E4B ]
, mapEntry ("maichattawaupperleftthai") [ 0xF893 ]
, mapEntry ("maieklowleftthai") [ 0xF88C ]
, mapEntry ("maieklowrightthai") [ 0xF88B ]
, mapEntry ("maiekthai") [ 0x0E48 ]
, mapEntry ("maiekupperleftthai") [ 0xF88A ]
, mapEntry ("maihanakatleftthai") [ 0xF884 ]
, mapEntry ("maihanakatthai") [ 0x0E31 ]
, mapEntry ("maitaikhuleftthai") [ 0xF889 ]
, mapEntry ("maitaikhuthai") [ 0x0E47 ]
, mapEntry ("maitholowleftthai") [ 0xF88F ]
, mapEntry ("maitholowrightthai") [ 0xF88E ]
, mapEntry ("maithothai") [ 0x0E49 ]
, mapEntry ("maithoupperleftthai") [ 0xF88D ]
, mapEntry ("maitrilowleftthai") [ 0xF892 ]
, mapEntry ("maitrilowrightthai") [ 0xF891 ]
, mapEntry ("maitrithai") [ 0x0E4A ]
, mapEntry ("maitriupperleftthai") [ 0xF890 ]
, mapEntry ("maiyamokthai") [ 0x0E46 ]
, mapEntry ("makatakana") [ 0x30DE ]
, mapEntry ("makatakanahalfwidth") [ 0xFF8F ]
, mapEntry ("male") [ 0x2642 ]
, mapEntry ("mansyonsquare") [ 0x3347 ]
, mapEntry ("maqafhebrew") [ 0x05BE ]
, mapEntry ("mars") [ 0x2642 ]
, mapEntry ("masoracirclehebrew") [ 0x05AF ]
, mapEntry ("masquare") [ 0x3383 ]
, mapEntry ("mbopomofo") [ 0x3107 ]
, mapEntry ("mbsquare") [ 0x33D4 ]
, mapEntry ("mcircle") [ 0x24DC ]
, mapEntry ("mcubedsquare") [ 0x33A5 ]
, mapEntry ("mdotaccent") [ 0x1E41 ]
, mapEntry ("mdotbelow") [ 0x1E43 ]
, mapEntry ("meemarabic") [ 0x0645 ]
, mapEntry ("meemfinalarabic") [ 0xFEE2 ]
, mapEntry ("meeminitialarabic") [ 0xFEE3 ]
, mapEntry ("meemmedialarabic") [ 0xFEE4 ]
, mapEntry ("meemmeeminitialarabic") [ 0xFCD1 ]
, mapEntry ("meemmeemisolatedarabic") [ 0xFC48 ]
, mapEntry ("meetorusquare") [ 0x334D ]
, mapEntry ("mehiragana") [ 0x3081 ]
, mapEntry ("meizierasquare") [ 0x337E ]
, mapEntry ("mekatakana") [ 0x30E1 ]
, mapEntry ("mekatakanahalfwidth") [ 0xFF92 ]
, mapEntry ("mem") [ 0x05DE ]
, mapEntry ("memdagesh") [ 0xFB3E ]
, mapEntry ("memdageshhebrew") [ 0xFB3E ]
, mapEntry ("memhebrew") [ 0x05DE ]
, mapEntry ("menarmenian") [ 0x0574 ]
, mapEntry ("merkhahebrew") [ 0x05A5 ]
, mapEntry ("merkhakefulahebrew") [ 0x05A6 ]
, mapEntry ("merkhakefulalefthebrew") [ 0x05A6 ]
, mapEntry ("merkhalefthebrew") [ 0x05A5 ]
, mapEntry ("mhook") [ 0x0271 ]
, mapEntry ("mhzsquare") [ 0x3392 ]
, mapEntry ("middledotkatakanahalfwidth") [ 0xFF65 ]
, mapEntry ("middot") [ 0xB7 ]
, mapEntry ("mieumacirclekorean") [ 0x3272 ]
, mapEntry ("mieumaparenkorean") [ 0x3212 ]
, mapEntry ("mieumcirclekorean") [ 0x3264 ]
, mapEntry ("mieumkorean") [ 0x3141 ]
, mapEntry ("mieumpansioskorean") [ 0x3170 ]
, mapEntry ("mieumparenkorean") [ 0x3204 ]
, mapEntry ("mieumpieupkorean") [ 0x316E ]
, mapEntry ("mieumsioskorean") [ 0x316F ]
, mapEntry ("mihiragana") [ 0x307F ]
, mapEntry ("mikatakana") [ 0x30DF ]
, mapEntry ("mikatakanahalfwidth") [ 0xFF90 ]
, mapEntry ("minus") [ 0x2212 ]
, mapEntry ("minusbelowcmb") [ 0x0320 ]
, mapEntry ("minuscircle") [ 0x2296 ]
, mapEntry ("minusmod") [ 0x02D7 ]
, mapEntry ("minusplus") [ 0x2213 ]
, mapEntry ("minute") [ 0x2032 ]
, mapEntry ("miribaarusquare") [ 0x334A ]
, mapEntry ("mirisquare") [ 0x3349 ]
, mapEntry ("mlonglegturned") [ 0x0270 ]
, mapEntry ("mlsquare") [ 0x3396 ]
, mapEntry ("mmcubedsquare") [ 0x33A3 ]
, mapEntry ("mmonospace") [ 0xFF4D ]
, mapEntry ("mmsquaredsquare") [ 0x339F ]
, mapEntry ("mohiragana") [ 0x3082 ]
, mapEntry ("mohmsquare") [ 0x33C1 ]
, mapEntry ("mokatakana") [ 0x30E2 ]
, mapEntry ("mokatakanahalfwidth") [ 0xFF93 ]
, mapEntry ("molsquare") [ 0x33D6 ]
, mapEntry ("momathai") [ 0x0E21 ]
, mapEntry ("moverssquare") [ 0x33A7 ]
, mapEntry ("moverssquaredsquare") [ 0x33A8 ]
, mapEntry ("mparen") [ 0x24A8 ]
, mapEntry ("mpasquare") [ 0x33AB ]
, mapEntry ("mssquare") [ 0x33B3 ]
, mapEntry ("msuperior") [ 0xF6EF ]
, mapEntry ("mturned") [ 0x026F ]
, mapEntry ("mu") [ 0xB5 ]
, mapEntry ("mu1") [ 0xB5 ]
, mapEntry ("muasquare") [ 0x3382 ]
, mapEntry ("muchgreater") [ 0x226B ]
, mapEntry ("muchless") [ 0x226A ]
, mapEntry ("mufsquare") [ 0x338C ]
, mapEntry ("mugreek") [ 0x03BC ]
, mapEntry ("mugsquare") [ 0x338D ]
, mapEntry ("muhiragana") [ 0x3080 ]
, mapEntry ("mukatakana") [ 0x30E0 ]
, mapEntry ("mukatakanahalfwidth") [ 0xFF91 ]
, mapEntry ("mulsquare") [ 0x3395 ]
, mapEntry ("multiply") [ 0xD7 ]
, mapEntry ("mumsquare") [ 0x339B ]
, mapEntry ("munahhebrew") [ 0x05A3 ]
, mapEntry ("munahlefthebrew") [ 0x05A3 ]
, mapEntry ("musicalnote") [ 0x266A ]
, mapEntry ("musicalnotedbl") [ 0x266B ]
, mapEntry ("musicflatsign") [ 0x266D ]
, mapEntry ("musicsharpsign") [ 0x266F ]
, mapEntry ("mussquare") [ 0x33B2 ]
, mapEntry ("muvsquare") [ 0x33B6 ]
, mapEntry ("muwsquare") [ 0x33BC ]
, mapEntry ("mvmegasquare") [ 0x33B9 ]
, mapEntry ("mvsquare") [ 0x33B7 ]
, mapEntry ("mwmegasquare") [ 0x33BF ]
, mapEntry ("mwsquare") [ 0x33BD ]
, mapEntry ("n") [ 0x6E ]
, mapEntry ("nabengali") [ 0x09A8 ]
, mapEntry ("nabla") [ 0x2207 ]
, mapEntry ("nacute") [ 0x0144 ]
, mapEntry ("nadeva") [ 0x0928 ]
, mapEntry ("nagujarati") [ 0x0AA8 ]
, mapEntry ("nagurmukhi") [ 0x0A28 ]
, mapEntry ("nahiragana") [ 0x306A ]
, mapEntry ("nakatakana") [ 0x30CA ]
, mapEntry ("nakatakanahalfwidth") [ 0xFF85 ]
, mapEntry ("napostrophe") [ 0x0149 ]
, mapEntry ("nasquare") [ 0x3381 ]
, mapEntry ("nbopomofo") [ 0x310B ]
, mapEntry ("nbspace") [ 0xA0 ]
, mapEntry ("ncaron") [ 0x0148 ]
, mapEntry ("ncedilla") [ 0x0146 ]
, mapEntry ("ncircle") [ 0x24DD ]
, mapEntry ("ncircumflexbelow") [ 0x1E4B ]
, mapEntry ("ncommaaccent") [ 0x0146 ]
, mapEntry ("ndotaccent") [ 0x1E45 ]
, mapEntry ("ndotbelow") [ 0x1E47 ]
, mapEntry ("nehiragana") [ 0x306D ]
, mapEntry ("nekatakana") [ 0x30CD ]
, mapEntry ("nekatakanahalfwidth") [ 0xFF88 ]
, mapEntry ("newsheqelsign") [ 0x20AA ]
, mapEntry ("nfsquare") [ 0x338B ]
, mapEntry ("ngabengali") [ 0x0999 ]
, mapEntry ("ngadeva") [ 0x0919 ]
, mapEntry ("ngagujarati") [ 0x0A99 ]
, mapEntry ("ngagurmukhi") [ 0x0A19 ]
, mapEntry ("ngonguthai") [ 0x0E07 ]
, mapEntry ("nhiragana") [ 0x3093 ]
, mapEntry ("nhookleft") [ 0x0272 ]
, mapEntry ("nhookretroflex") [ 0x0273 ]
, mapEntry ("nieunacirclekorean") [ 0x326F ]
, mapEntry ("nieunaparenkorean") [ 0x320F ]
, mapEntry ("nieuncieuckorean") [ 0x3135 ]
, mapEntry ("nieuncirclekorean") [ 0x3261 ]
, mapEntry ("nieunhieuhkorean") [ 0x3136 ]
, mapEntry ("nieunkorean") [ 0x3134 ]
, mapEntry ("nieunpansioskorean") [ 0x3168 ]
, mapEntry ("nieunparenkorean") [ 0x3201 ]
, mapEntry ("nieunsioskorean") [ 0x3167 ]
, mapEntry ("nieuntikeutkorean") [ 0x3166 ]
, mapEntry ("nihiragana") [ 0x306B ]
, mapEntry ("nikatakana") [ 0x30CB ]
, mapEntry ("nikatakanahalfwidth") [ 0xFF86 ]
, mapEntry ("nikhahitleftthai") [ 0xF899 ]
, mapEntry ("nikhahitthai") [ 0x0E4D ]
, mapEntry ("nine") [ 0x39 ]
, mapEntry ("ninearabic") [ 0x0669 ]
, mapEntry ("ninebengali") [ 0x09EF ]
, mapEntry ("ninecircle") [ 0x2468 ]
, mapEntry ("ninecircleinversesansserif") [ 0x2792 ]
, mapEntry ("ninedeva") [ 0x096F ]
, mapEntry ("ninegujarati") [ 0x0AEF ]
, mapEntry ("ninegurmukhi") [ 0x0A6F ]
, mapEntry ("ninehackarabic") [ 0x0669 ]
, mapEntry ("ninehangzhou") [ 0x3029 ]
, mapEntry ("nineideographicparen") [ 0x3228 ]
, mapEntry ("nineinferior") [ 0x2089 ]
, mapEntry ("ninemonospace") [ 0xFF19 ]
, mapEntry ("nineoldstyle") [ 0xF739 ]
, mapEntry ("nineparen") [ 0x247C ]
, mapEntry ("nineperiod") [ 0x2490 ]
, mapEntry ("ninepersian") [ 0x06F9 ]
, mapEntry ("nineroman") [ 0x2178 ]
, mapEntry ("ninesuperior") [ 0x2079 ]
, mapEntry ("nineteencircle") [ 0x2472 ]
, mapEntry ("nineteenparen") [ 0x2486 ]
, mapEntry ("nineteenperiod") [ 0x249A ]
, mapEntry ("ninethai") [ 0x0E59 ]
, mapEntry ("nj") [ 0x01CC ]
, mapEntry ("njecyrillic") [ 0x045A ]
, mapEntry ("nkatakana") [ 0x30F3 ]
, mapEntry ("nkatakanahalfwidth") [ 0xFF9D ]
, mapEntry ("nlegrightlong") [ 0x019E ]
, mapEntry ("nlinebelow") [ 0x1E49 ]
, mapEntry ("nmonospace") [ 0xFF4E ]
, mapEntry ("nmsquare") [ 0x339A ]
, mapEntry ("nnabengali") [ 0x09A3 ]
, mapEntry ("nnadeva") [ 0x0923 ]
, mapEntry ("nnagujarati") [ 0x0AA3 ]
, mapEntry ("nnagurmukhi") [ 0x0A23 ]
, mapEntry ("nnnadeva") [ 0x0929 ]
, mapEntry ("nohiragana") [ 0x306E ]
, mapEntry ("nokatakana") [ 0x30CE ]
, mapEntry ("nokatakanahalfwidth") [ 0xFF89 ]
, mapEntry ("nonbreakingspace") [ 0xA0 ]
, mapEntry ("nonenthai") [ 0x0E13 ]
, mapEntry ("nonuthai") [ 0x0E19 ]
, mapEntry ("noonarabic") [ 0x0646 ]
, mapEntry ("noonfinalarabic") [ 0xFEE6 ]
, mapEntry ("noonghunnaarabic") [ 0x06BA ]
, mapEntry ("noonghunnafinalarabic") [ 0xFB9F ]
, mapEntry ("noonhehinitialarabic") [ 0xFEE7, 0xFEEC ]
, mapEntry ("nooninitialarabic") [ 0xFEE7 ]
, mapEntry ("noonjeeminitialarabic") [ 0xFCD2 ]
, mapEntry ("noonjeemisolatedarabic") [ 0xFC4B ]
, mapEntry ("noonmedialarabic") [ 0xFEE8 ]
, mapEntry ("noonmeeminitialarabic") [ 0xFCD5 ]
, mapEntry ("noonmeemisolatedarabic") [ 0xFC4E ]
, mapEntry ("noonnoonfinalarabic") [ 0xFC8D ]
, mapEntry ("notcontains") [ 0x220C ]
, mapEntry ("notelement") [ 0x2209 ]
, mapEntry ("notelementof") [ 0x2209 ]
, mapEntry ("notequal") [ 0x2260 ]
, mapEntry ("notgreater") [ 0x226F ]
, mapEntry ("notgreaternorequal") [ 0x2271 ]
, mapEntry ("notgreaternorless") [ 0x2279 ]
, mapEntry ("notidentical") [ 0x2262 ]
, mapEntry ("notless") [ 0x226E ]
, mapEntry ("notlessnorequal") [ 0x2270 ]
, mapEntry ("notparallel") [ 0x2226 ]
, mapEntry ("notprecedes") [ 0x2280 ]
]
def glyphEncs8 =
[ mapEntry ("notsubset") [ 0x2284 ]
, mapEntry ("notsucceeds") [ 0x2281 ]
, mapEntry ("notsuperset") [ 0x2285 ]
, mapEntry ("nowarmenian") [ 0x0576 ]
, mapEntry ("nparen") [ 0x24A9 ]
, mapEntry ("nssquare") [ 0x33B1 ]
, mapEntry ("nsuperior") [ 0x207F ]
, mapEntry ("ntilde") [ 0xF1 ]
, mapEntry ("nu") [ 0x03BD ]
, mapEntry ("nuhiragana") [ 0x306C ]
, mapEntry ("nukatakana") [ 0x30CC ]
, mapEntry ("nukatakanahalfwidth") [ 0xFF87 ]
, mapEntry ("nuktabengali") [ 0x09BC ]
, mapEntry ("nuktadeva") [ 0x093C ]
, mapEntry ("nuktagujarati") [ 0x0ABC ]
, mapEntry ("nuktagurmukhi") [ 0x0A3C ]
, mapEntry ("numbersign") [ 0x23 ]
, mapEntry ("numbersignmonospace") [ 0xFF03 ]
, mapEntry ("numbersignsmall") [ 0xFE5F ]
, mapEntry ("numeralsigngreek") [ 0x0374 ]
, mapEntry ("numeralsignlowergreek") [ 0x0375 ]
, mapEntry ("numero") [ 0x2116 ]
, mapEntry ("nun") [ 0x05E0 ]
, mapEntry ("nundagesh") [ 0xFB40 ]
, mapEntry ("nundageshhebrew") [ 0xFB40 ]
, mapEntry ("nunhebrew") [ 0x05E0 ]
, mapEntry ("nvsquare") [ 0x33B5 ]
, mapEntry ("nwsquare") [ 0x33BB ]
, mapEntry ("nyabengali") [ 0x099E ]
, mapEntry ("nyadeva") [ 0x091E ]
, mapEntry ("nyagujarati") [ 0x0A9E ]
, mapEntry ("nyagurmukhi") [ 0x0A1E ]
, mapEntry ("o") [ 0x6F ]
, mapEntry ("oacute") [ 0xF3 ]
, mapEntry ("oangthai") [ 0x0E2D ]
, mapEntry ("obarred") [ 0x0275 ]
, mapEntry ("obarredcyrillic") [ 0x04E9 ]
, mapEntry ("obarreddieresiscyrillic") [ 0x04EB ]
, mapEntry ("obengali") [ 0x0993 ]
, mapEntry ("obopomofo") [ 0x311B ]
, mapEntry ("obreve") [ 0x014F ]
, mapEntry ("ocandradeva") [ 0x0911 ]
, mapEntry ("ocandragujarati") [ 0x0A91 ]
, mapEntry ("ocandravowelsigndeva") [ 0x0949 ]
, mapEntry ("ocandravowelsigngujarati") [ 0x0AC9 ]
, mapEntry ("ocaron") [ 0x01D2 ]
, mapEntry ("ocircle") [ 0x24DE ]
, mapEntry ("ocircumflex") [ 0xF4 ]
, mapEntry ("ocircumflexacute") [ 0x1ED1 ]
, mapEntry ("ocircumflexdotbelow") [ 0x1ED9 ]
, mapEntry ("ocircumflexgrave") [ 0x1ED3 ]
, mapEntry ("ocircumflexhookabove") [ 0x1ED5 ]
, mapEntry ("ocircumflextilde") [ 0x1ED7 ]
, mapEntry ("ocyrillic") [ 0x043E ]
, mapEntry ("odblacute") [ 0x0151 ]
, mapEntry ("odblgrave") [ 0x020D ]
, mapEntry ("odeva") [ 0x0913 ]
, mapEntry ("odieresis") [ 0xF6 ]
, mapEntry ("odieresiscyrillic") [ 0x04E7 ]
, mapEntry ("odotbelow") [ 0x1ECD ]
, mapEntry ("oe") [ 0x0153 ]
, mapEntry ("oekorean") [ 0x315A ]
, mapEntry ("ogonek") [ 0x02DB ]
, mapEntry ("ogonekcmb") [ 0x0328 ]
, mapEntry ("ograve") [ 0xF2 ]
, mapEntry ("ogujarati") [ 0x0A93 ]
, mapEntry ("oharmenian") [ 0x0585 ]
, mapEntry ("ohiragana") [ 0x304A ]
, mapEntry ("ohookabove") [ 0x1ECF ]
, mapEntry ("ohorn") [ 0x01A1 ]
, mapEntry ("ohornacute") [ 0x1EDB ]
, mapEntry ("ohorndotbelow") [ 0x1EE3 ]
, mapEntry ("ohorngrave") [ 0x1EDD ]
, mapEntry ("ohornhookabove") [ 0x1EDF ]
, mapEntry ("ohorntilde") [ 0x1EE1 ]
, mapEntry ("ohungarumlaut") [ 0x0151 ]
, mapEntry ("oi") [ 0x01A3 ]
, mapEntry ("oinvertedbreve") [ 0x020F ]
, mapEntry ("okatakana") [ 0x30AA ]
, mapEntry ("okatakanahalfwidth") [ 0xFF75 ]
, mapEntry ("okorean") [ 0x3157 ]
, mapEntry ("olehebrew") [ 0x05AB ]
, mapEntry ("omacron") [ 0x014D ]
, mapEntry ("omacronacute") [ 0x1E53 ]
, mapEntry ("omacrongrave") [ 0x1E51 ]
, mapEntry ("omdeva") [ 0x0950 ]
, mapEntry ("omega") [ 0x03C9 ]
, mapEntry ("omega1") [ 0x03D6 ]
, mapEntry ("omegacyrillic") [ 0x0461 ]
, mapEntry ("omegalatinclosed") [ 0x0277 ]
, mapEntry ("omegaroundcyrillic") [ 0x047B ]
, mapEntry ("omegatitlocyrillic") [ 0x047D ]
, mapEntry ("omegatonos") [ 0x03CE ]
, mapEntry ("omgujarati") [ 0x0AD0 ]
, mapEntry ("omicron") [ 0x03BF ]
, mapEntry ("omicrontonos") [ 0x03CC ]
, mapEntry ("omonospace") [ 0xFF4F ]
, mapEntry ("one") [ 0x31 ]
, mapEntry ("onearabic") [ 0x0661 ]
, mapEntry ("onebengali") [ 0x09E7 ]
, mapEntry ("onecircle") [ 0x2460 ]
, mapEntry ("onecircleinversesansserif") [ 0x278A ]
, mapEntry ("onedeva") [ 0x0967 ]
, mapEntry ("onedotenleader") [ 0x2024 ]
, mapEntry ("oneeighth") [ 0x215B ]
, mapEntry ("onefitted") [ 0xF6DC ]
, mapEntry ("onegujarati") [ 0x0AE7 ]
, mapEntry ("onegurmukhi") [ 0x0A67 ]
, mapEntry ("onehackarabic") [ 0x0661 ]
, mapEntry ("onehalf") [ 0xBD ]
, mapEntry ("onehangzhou") [ 0x3021 ]
, mapEntry ("oneideographicparen") [ 0x3220 ]
, mapEntry ("oneinferior") [ 0x2081 ]
, mapEntry ("onemonospace") [ 0xFF11 ]
, mapEntry ("onenumeratorbengali") [ 0x09F4 ]
, mapEntry ("oneoldstyle") [ 0xF731 ]
, mapEntry ("oneparen") [ 0x2474 ]
, mapEntry ("oneperiod") [ 0x2488 ]
, mapEntry ("onepersian") [ 0x06F1 ]
, mapEntry ("onequarter") [ 0xBC ]
, mapEntry ("oneroman") [ 0x2170 ]
, mapEntry ("onesuperior") [ 0xB9 ]
, mapEntry ("onethai") [ 0x0E51 ]
, mapEntry ("onethird") [ 0x2153 ]
, mapEntry ("oogonek") [ 0x01EB ]
, mapEntry ("oogonekmacron") [ 0x01ED ]
, mapEntry ("oogurmukhi") [ 0x0A13 ]
, mapEntry ("oomatragurmukhi") [ 0x0A4B ]
, mapEntry ("oopen") [ 0x0254 ]
, mapEntry ("oparen") [ 0x24AA ]
, mapEntry ("openbullet") [ 0x25E6 ]
, mapEntry ("option") [ 0x2325 ]
, mapEntry ("ordfeminine") [ 0xAA ]
, mapEntry ("ordmasculine") [ 0xBA ]
, mapEntry ("orthogonal") [ 0x221F ]
, mapEntry ("oshortdeva") [ 0x0912 ]
, mapEntry ("oshortvowelsigndeva") [ 0x094A ]
, mapEntry ("oslash") [ 0xF8 ]
, mapEntry ("oslashacute") [ 0x01FF ]
, mapEntry ("osmallhiragana") [ 0x3049 ]
, mapEntry ("osmallkatakana") [ 0x30A9 ]
, mapEntry ("osmallkatakanahalfwidth") [ 0xFF6B ]
, mapEntry ("ostrokeacute") [ 0x01FF ]
, mapEntry ("osuperior") [ 0xF6F0 ]
, mapEntry ("otcyrillic") [ 0x047F ]
, mapEntry ("otilde") [ 0xF5 ]
, mapEntry ("otildeacute") [ 0x1E4D ]
, mapEntry ("otildedieresis") [ 0x1E4F ]
, mapEntry ("oubopomofo") [ 0x3121 ]
, mapEntry ("overline") [ 0x203E ]
, mapEntry ("overlinecenterline") [ 0xFE4A ]
, mapEntry ("overlinecmb") [ 0x0305 ]
, mapEntry ("overlinedashed") [ 0xFE49 ]
, mapEntry ("overlinedblwavy") [ 0xFE4C ]
, mapEntry ("overlinewavy") [ 0xFE4B ]
, mapEntry ("overscore") [ 0xAF ]
, mapEntry ("ovowelsignbengali") [ 0x09CB ]
, mapEntry ("ovowelsigndeva") [ 0x094B ]
, mapEntry ("ovowelsigngujarati") [ 0x0ACB ]
, mapEntry ("p") [ 0x70 ]
, mapEntry ("paampssquare") [ 0x3380 ]
, mapEntry ("paasentosquare") [ 0x332B ]
, mapEntry ("pabengali") [ 0x09AA ]
, mapEntry ("pacute") [ 0x1E55 ]
, mapEntry ("padeva") [ 0x092A ]
, mapEntry ("pagedown") [ 0x21DF ]
, mapEntry ("pageup") [ 0x21DE ]
, mapEntry ("pagujarati") [ 0x0AAA ]
, mapEntry ("pagurmukhi") [ 0x0A2A ]
, mapEntry ("pahiragana") [ 0x3071 ]
, mapEntry ("paiyannoithai") [ 0x0E2F ]
, mapEntry ("pakatakana") [ 0x30D1 ]
, mapEntry ("palatalizationcyrilliccmb") [ 0x0484 ]
, mapEntry ("palochkacyrillic") [ 0x04C0 ]
, mapEntry ("pansioskorean") [ 0x317F ]
, mapEntry ("paragraph") [ 0xB6 ]
, mapEntry ("parallel") [ 0x2225 ]
, mapEntry ("parenleft") [ 0x28 ]
, mapEntry ("parenleftaltonearabic") [ 0xFD3E ]
, mapEntry ("parenleftbt") [ 0xF8ED ]
, mapEntry ("parenleftex") [ 0xF8EC ]
, mapEntry ("parenleftinferior") [ 0x208D ]
, mapEntry ("parenleftmonospace") [ 0xFF08 ]
, mapEntry ("parenleftsmall") [ 0xFE59 ]
, mapEntry ("parenleftsuperior") [ 0x207D ]
, mapEntry ("parenlefttp") [ 0xF8EB ]
, mapEntry ("parenleftvertical") [ 0xFE35 ]
, mapEntry ("parenright") [ 0x29 ]
, mapEntry ("parenrightaltonearabic") [ 0xFD3F ]
, mapEntry ("parenrightbt") [ 0xF8F8 ]
, mapEntry ("parenrightex") [ 0xF8F7 ]
, mapEntry ("parenrightinferior") [ 0x208E ]
, mapEntry ("parenrightmonospace") [ 0xFF09 ]
, mapEntry ("parenrightsmall") [ 0xFE5A ]
, mapEntry ("parenrightsuperior") [ 0x207E ]
, mapEntry ("parenrighttp") [ 0xF8F6 ]
, mapEntry ("parenrightvertical") [ 0xFE36 ]
, mapEntry ("partialdiff") [ 0x2202 ]
, mapEntry ("paseqhebrew") [ 0x05C0 ]
, mapEntry ("pashtahebrew") [ 0x0599 ]
, mapEntry ("pasquare") [ 0x33A9 ]
, mapEntry ("patah") [ 0x05B7 ]
, mapEntry ("patah11") [ 0x05B7 ]
, mapEntry ("patah1d") [ 0x05B7 ]
, mapEntry ("patah2a") [ 0x05B7 ]
, mapEntry ("patahhebrew") [ 0x05B7 ]
, mapEntry ("patahnarrowhebrew") [ 0x05B7 ]
, mapEntry ("patahquarterhebrew") [ 0x05B7 ]
, mapEntry ("patahwidehebrew") [ 0x05B7 ]
, mapEntry ("pazerhebrew") [ 0x05A1 ]
, mapEntry ("pbopomofo") [ 0x3106 ]
, mapEntry ("pcircle") [ 0x24DF ]
, mapEntry ("pdotaccent") [ 0x1E57 ]
, mapEntry ("pe") [ 0x05E4 ]
, mapEntry ("pecyrillic") [ 0x043F ]
, mapEntry ("pedagesh") [ 0xFB44 ]
, mapEntry ("pedageshhebrew") [ 0xFB44 ]
, mapEntry ("peezisquare") [ 0x333B ]
, mapEntry ("pefinaldageshhebrew") [ 0xFB43 ]
, mapEntry ("peharabic") [ 0x067E ]
, mapEntry ("peharmenian") [ 0x057A ]
, mapEntry ("pehebrew") [ 0x05E4 ]
, mapEntry ("pehfinalarabic") [ 0xFB57 ]
, mapEntry ("pehinitialarabic") [ 0xFB58 ]
, mapEntry ("pehiragana") [ 0x307A ]
, mapEntry ("pehmedialarabic") [ 0xFB59 ]
, mapEntry ("pekatakana") [ 0x30DA ]
, mapEntry ("pemiddlehookcyrillic") [ 0x04A7 ]
, mapEntry ("perafehebrew") [ 0xFB4E ]
, mapEntry ("percent") [ 0x25 ]
, mapEntry ("percentarabic") [ 0x066A ]
, mapEntry ("percentmonospace") [ 0xFF05 ]
, mapEntry ("percentsmall") [ 0xFE6A ]
, mapEntry ("period") [ 0x2E ]
, mapEntry ("periodarmenian") [ 0x0589 ]
, mapEntry ("periodcentered") [ 0xB7 ]
, mapEntry ("periodhalfwidth") [ 0xFF61 ]
, mapEntry ("periodinferior") [ 0xF6E7 ]
, mapEntry ("periodmonospace") [ 0xFF0E ]
, mapEntry ("periodsmall") [ 0xFE52 ]
, mapEntry ("periodsuperior") [ 0xF6E8 ]
, mapEntry ("perispomenigreekcmb") [ 0x0342 ]
, mapEntry ("perpendicular") [ 0x22A5 ]
, mapEntry ("perthousand") [ 0x2030 ]
, mapEntry ("peseta") [ 0x20A7 ]
, mapEntry ("pfsquare") [ 0x338A ]
, mapEntry ("phabengali") [ 0x09AB ]
, mapEntry ("phadeva") [ 0x092B ]
, mapEntry ("phagujarati") [ 0x0AAB ]
, mapEntry ("phagurmukhi") [ 0x0A2B ]
, mapEntry ("phi") [ 0x03C6 ]
, mapEntry ("phi1") [ 0x03D5 ]
, mapEntry ("phieuphacirclekorean") [ 0x327A ]
, mapEntry ("phieuphaparenkorean") [ 0x321A ]
, mapEntry ("phieuphcirclekorean") [ 0x326C ]
, mapEntry ("phieuphkorean") [ 0x314D ]
, mapEntry ("phieuphparenkorean") [ 0x320C ]
, mapEntry ("philatin") [ 0x0278 ]
, mapEntry ("phinthuthai") [ 0x0E3A ]
, mapEntry ("phisymbolgreek") [ 0x03D5 ]
, mapEntry ("phook") [ 0x01A5 ]
, mapEntry ("phophanthai") [ 0x0E1E ]
, mapEntry ("phophungthai") [ 0x0E1C ]
, mapEntry ("phosamphaothai") [ 0x0E20 ]
, mapEntry ("pi") [ 0x03C0 ]
, mapEntry ("pieupacirclekorean") [ 0x3273 ]
, mapEntry ("pieupaparenkorean") [ 0x3213 ]
, mapEntry ("pieupcieuckorean") [ 0x3176 ]
, mapEntry ("pieupcirclekorean") [ 0x3265 ]
, mapEntry ("pieupkiyeokkorean") [ 0x3172 ]
, mapEntry ("pieupkorean") [ 0x3142 ]
, mapEntry ("pieupparenkorean") [ 0x3205 ]
, mapEntry ("pieupsioskiyeokkorean") [ 0x3174 ]
, mapEntry ("pieupsioskorean") [ 0x3144 ]
, mapEntry ("pieupsiostikeutkorean") [ 0x3175 ]
, mapEntry ("pieupthieuthkorean") [ 0x3177 ]
, mapEntry ("pieuptikeutkorean") [ 0x3173 ]
, mapEntry ("pihiragana") [ 0x3074 ]
, mapEntry ("pikatakana") [ 0x30D4 ]
, mapEntry ("pisymbolgreek") [ 0x03D6 ]
, mapEntry ("piwrarmenian") [ 0x0583 ]
, mapEntry ("plus") [ 0x2B ]
, mapEntry ("plusbelowcmb") [ 0x031F ]
, mapEntry ("pluscircle") [ 0x2295 ]
, mapEntry ("plusminus") [ 0xB1 ]
, mapEntry ("plusmod") [ 0x02D6 ]
, mapEntry ("plusmonospace") [ 0xFF0B ]
, mapEntry ("plussmall") [ 0xFE62 ]
, mapEntry ("plussuperior") [ 0x207A ]
, mapEntry ("pmonospace") [ 0xFF50 ]
, mapEntry ("pmsquare") [ 0x33D8 ]
, mapEntry ("pohiragana") [ 0x307D ]
, mapEntry ("pointingindexdownwhite") [ 0x261F ]
, mapEntry ("pointingindexleftwhite") [ 0x261C ]
, mapEntry ("pointingindexrightwhite") [ 0x261E ]
, mapEntry ("pointingindexupwhite") [ 0x261D ]
, mapEntry ("pokatakana") [ 0x30DD ]
, mapEntry ("poplathai") [ 0x0E1B ]
, mapEntry ("postalmark") [ 0x3012 ]
, mapEntry ("postalmarkface") [ 0x3020 ]
, mapEntry ("pparen") [ 0x24AB ]
, mapEntry ("precedes") [ 0x227A ]
, mapEntry ("prescription") [ 0x211E ]
, mapEntry ("primemod") [ 0x02B9 ]
, mapEntry ("primereversed") [ 0x2035 ]
, mapEntry ("product") [ 0x220F ]
, mapEntry ("projective") [ 0x2305 ]
, mapEntry ("prolongedkana") [ 0x30FC ]
, mapEntry ("propellor") [ 0x2318 ]
, mapEntry ("propersubset") [ 0x2282 ]
, mapEntry ("propersuperset") [ 0x2283 ]
, mapEntry ("proportion") [ 0x2237 ]
, mapEntry ("proportional") [ 0x221D ]
, mapEntry ("psi") [ 0x03C8 ]
, mapEntry ("psicyrillic") [ 0x0471 ]
, mapEntry ("psilipneumatacyrilliccmb") [ 0x0486 ]
, mapEntry ("pssquare") [ 0x33B0 ]
, mapEntry ("puhiragana") [ 0x3077 ]
, mapEntry ("pukatakana") [ 0x30D7 ]
, mapEntry ("pvsquare") [ 0x33B4 ]
, mapEntry ("pwsquare") [ 0x33BA ]
, mapEntry ("q") [ 0x71 ]
, mapEntry ("qadeva") [ 0x0958 ]
, mapEntry ("qadmahebrew") [ 0x05A8 ]
, mapEntry ("qafarabic") [ 0x0642 ]
, mapEntry ("qaffinalarabic") [ 0xFED6 ]
, mapEntry ("qafinitialarabic") [ 0xFED7 ]
, mapEntry ("qafmedialarabic") [ 0xFED8 ]
, mapEntry ("qamats") [ 0x05B8 ]
, mapEntry ("qamats10") [ 0x05B8 ]
, mapEntry ("qamats1a") [ 0x05B8 ]
, mapEntry ("qamats1c") [ 0x05B8 ]
, mapEntry ("qamats27") [ 0x05B8 ]
, mapEntry ("qamats29") [ 0x05B8 ]
, mapEntry ("qamats33") [ 0x05B8 ]
, mapEntry ("qamatsde") [ 0x05B8 ]
, mapEntry ("qamatshebrew") [ 0x05B8 ]
, mapEntry ("qamatsnarrowhebrew") [ 0x05B8 ]
, mapEntry ("qamatsqatanhebrew") [ 0x05B8 ]
, mapEntry ("qamatsqatannarrowhebrew") [ 0x05B8 ]
, mapEntry ("qamatsqatanquarterhebrew") [ 0x05B8 ]
, mapEntry ("qamatsqatanwidehebrew") [ 0x05B8 ]
, mapEntry ("qamatsquarterhebrew") [ 0x05B8 ]
, mapEntry ("qamatswidehebrew") [ 0x05B8 ]
, mapEntry ("qarneyparahebrew") [ 0x059F ]
, mapEntry ("qbopomofo") [ 0x3111 ]
, mapEntry ("qcircle") [ 0x24E0 ]
, mapEntry ("qhook") [ 0x02A0 ]
, mapEntry ("qmonospace") [ 0xFF51 ]
, mapEntry ("qof") [ 0x05E7 ]
, mapEntry ("qofdagesh") [ 0xFB47 ]
, mapEntry ("qofdageshhebrew") [ 0xFB47 ]
, mapEntry ("qofhatafpatah") [ 0x05E7, 0x05B2 ]
, mapEntry ("qofhatafpatahhebrew") [ 0x05E7, 0x05B2 ]
, mapEntry ("qofhatafsegol") [ 0x05E7, 0x05B1 ]
, mapEntry ("qofhatafsegolhebrew") [ 0x05E7, 0x05B1 ]
, mapEntry ("qofhebrew") [ 0x05E7 ]
, mapEntry ("qofhiriq") [ 0x05E7, 0x05B4 ]
, mapEntry ("qofhiriqhebrew") [ 0x05E7, 0x05B4 ]
, mapEntry ("qofholam") [ 0x05E7, 0x05B9 ]
, mapEntry ("qofholamhebrew") [ 0x05E7, 0x05B9 ]
, mapEntry ("qofpatah") [ 0x05E7, 0x05B7 ]
, mapEntry ("qofpatahhebrew") [ 0x05E7, 0x05B7 ]
, mapEntry ("qofqamats") [ 0x05E7, 0x05B8 ]
, mapEntry ("qofqamatshebrew") [ 0x05E7, 0x05B8 ]
, mapEntry ("qofqubuts") [ 0x05E7, 0x05BB ]
, mapEntry ("qofqubutshebrew") [ 0x05E7, 0x05BB ]
, mapEntry ("qofsegol") [ 0x05E7, 0x05B6 ]
, mapEntry ("qofsegolhebrew") [ 0x05E7, 0x05B6 ]
, mapEntry ("qofsheva") [ 0x05E7, 0x05B0 ]
, mapEntry ("qofshevahebrew") [ 0x05E7, 0x05B0 ]
, mapEntry ("qoftsere") [ 0x05E7, 0x05B5 ]
, mapEntry ("qoftserehebrew") [ 0x05E7, 0x05B5 ]
, mapEntry ("qparen") [ 0x24AC ]
, mapEntry ("quarternote") [ 0x2669 ]
, mapEntry ("qubuts") [ 0x05BB ]
, mapEntry ("qubuts18") [ 0x05BB ]
, mapEntry ("qubuts25") [ 0x05BB ]
, mapEntry ("qubuts31") [ 0x05BB ]
, mapEntry ("qubutshebrew") [ 0x05BB ]
, mapEntry ("qubutsnarrowhebrew") [ 0x05BB ]
, mapEntry ("qubutsquarterhebrew") [ 0x05BB ]
, mapEntry ("qubutswidehebrew") [ 0x05BB ]
, mapEntry ("question") [ 0x3F ]
, mapEntry ("questionarabic") [ 0x061F ]
, mapEntry ("questionarmenian") [ 0x055E ]
, mapEntry ("questiondown") [ 0xBF ]
, mapEntry ("questiondownsmall") [ 0xF7BF ]
, mapEntry ("questiongreek") [ 0x037E ]
, mapEntry ("questionmonospace") [ 0xFF1F ]
, mapEntry ("questionsmall") [ 0xF73F ]
, mapEntry ("quotedbl") [ 0x22 ]
, mapEntry ("quotedblbase") [ 0x201E ]
, mapEntry ("quotedblleft") [ 0x201C ]
, mapEntry ("quotedblmonospace") [ 0xFF02 ]
, mapEntry ("quotedblprime") [ 0x301E ]
, mapEntry ("quotedblprimereversed") [ 0x301D ]
, mapEntry ("quotedblright") [ 0x201D ]
, mapEntry ("quoteleft") [ 0x2018 ]
, mapEntry ("quoteleftreversed") [ 0x201B ]
]
def glyphEncs9 =
[ mapEntry ("quotereversed") [ 0x201B ]
, mapEntry ("quoteright") [ 0x2019 ]
, mapEntry ("quoterightn") [ 0x0149 ]
, mapEntry ("quotesinglbase") [ 0x201A ]
, mapEntry ("quotesingle") [ 0x27 ]
, mapEntry ("quotesinglemonospace") [ 0xFF07 ]
, mapEntry ("r") [ 0x72 ]
, mapEntry ("raarmenian") [ 0x057C ]
, mapEntry ("rabengali") [ 0x09B0 ]
, mapEntry ("racute") [ 0x0155 ]
, mapEntry ("radeva") [ 0x0930 ]
, mapEntry ("radical") [ 0x221A ]
, mapEntry ("radicalex") [ 0xF8E5 ]
, mapEntry ("radoverssquare") [ 0x33AE ]
, mapEntry ("radoverssquaredsquare") [ 0x33AF ]
, mapEntry ("radsquare") [ 0x33AD ]
, mapEntry ("rafe") [ 0x05BF ]
, mapEntry ("rafehebrew") [ 0x05BF ]
, mapEntry ("ragujarati") [ 0x0AB0 ]
, mapEntry ("ragurmukhi") [ 0x0A30 ]
, mapEntry ("rahiragana") [ 0x3089 ]
, mapEntry ("rakatakana") [ 0x30E9 ]
, mapEntry ("rakatakanahalfwidth") [ 0xFF97 ]
, mapEntry ("ralowerdiagonalbengali") [ 0x09F1 ]
, mapEntry ("ramiddlediagonalbengali") [ 0x09F0 ]
, mapEntry ("ramshorn") [ 0x0264 ]
, mapEntry ("ratio") [ 0x2236 ]
, mapEntry ("rbopomofo") [ 0x3116 ]
, mapEntry ("rcaron") [ 0x0159 ]
, mapEntry ("rcedilla") [ 0x0157 ]
, mapEntry ("rcircle") [ 0x24E1 ]
, mapEntry ("rcommaaccent") [ 0x0157 ]
, mapEntry ("rdblgrave") [ 0x0211 ]
, mapEntry ("rdotaccent") [ 0x1E59 ]
, mapEntry ("rdotbelow") [ 0x1E5B ]
, mapEntry ("rdotbelowmacron") [ 0x1E5D ]
, mapEntry ("referencemark") [ 0x203B ]
, mapEntry ("reflexsubset") [ 0x2286 ]
, mapEntry ("reflexsuperset") [ 0x2287 ]
, mapEntry ("registered") [ 0xAE ]
, mapEntry ("registersans") [ 0xF8E8 ]
, mapEntry ("registerserif") [ 0xF6DA ]
, mapEntry ("reharabic") [ 0x0631 ]
, mapEntry ("reharmenian") [ 0x0580 ]
, mapEntry ("rehfinalarabic") [ 0xFEAE ]
, mapEntry ("rehiragana") [ 0x308C ]
, mapEntry ("rehyehaleflamarabic") [ 0x0631, 0xFEF3, 0xFE8E, 0x0644 ]
, mapEntry ("rekatakana") [ 0x30EC ]
, mapEntry ("rekatakanahalfwidth") [ 0xFF9A ]
, mapEntry ("resh") [ 0x05E8 ]
, mapEntry ("reshdageshhebrew") [ 0xFB48 ]
, mapEntry ("reshhatafpatah") [ 0x05E8, 0x05B2 ]
, mapEntry ("reshhatafpatahhebrew") [ 0x05E8, 0x05B2 ]
, mapEntry ("reshhatafsegol") [ 0x05E8, 0x05B1 ]
, mapEntry ("reshhatafsegolhebrew") [ 0x05E8, 0x05B1 ]
, mapEntry ("reshhebrew") [ 0x05E8 ]
, mapEntry ("reshhiriq") [ 0x05E8, 0x05B4 ]
, mapEntry ("reshhiriqhebrew") [ 0x05E8, 0x05B4 ]
, mapEntry ("reshholam") [ 0x05E8, 0x05B9 ]
, mapEntry ("reshholamhebrew") [ 0x05E8, 0x05B9 ]
, mapEntry ("reshpatah") [ 0x05E8, 0x05B7 ]
, mapEntry ("reshpatahhebrew") [ 0x05E8, 0x05B7 ]
, mapEntry ("reshqamats") [ 0x05E8, 0x05B8 ]
, mapEntry ("reshqamatshebrew") [ 0x05E8, 0x05B8 ]
, mapEntry ("reshqubuts") [ 0x05E8, 0x05BB ]
, mapEntry ("reshqubutshebrew") [ 0x05E8, 0x05BB ]
, mapEntry ("reshsegol") [ 0x05E8, 0x05B6 ]
, mapEntry ("reshsegolhebrew") [ 0x05E8, 0x05B6 ]
, mapEntry ("reshsheva") [ 0x05E8, 0x05B0 ]
, mapEntry ("reshshevahebrew") [ 0x05E8, 0x05B0 ]
, mapEntry ("reshtsere") [ 0x05E8, 0x05B5 ]
, mapEntry ("reshtserehebrew") [ 0x05E8, 0x05B5 ]
, mapEntry ("reversedtilde") [ 0x223D ]
, mapEntry ("reviahebrew") [ 0x0597 ]
, mapEntry ("reviamugrashhebrew") [ 0x0597 ]
, mapEntry ("revlogicalnot") [ 0x2310 ]
, mapEntry ("rfishhook") [ 0x027E ]
, mapEntry ("rfishhookreversed") [ 0x027F ]
, mapEntry ("rhabengali") [ 0x09DD ]
, mapEntry ("rhadeva") [ 0x095D ]
, mapEntry ("rho") [ 0x03C1 ]
, mapEntry ("rhook") [ 0x027D ]
, mapEntry ("rhookturned") [ 0x027B ]
, mapEntry ("rhookturnedsuperior") [ 0x02B5 ]
, mapEntry ("rhosymbolgreek") [ 0x03F1 ]
, mapEntry ("rhotichookmod") [ 0x02DE ]
, mapEntry ("rieulacirclekorean") [ 0x3271 ]
, mapEntry ("rieulaparenkorean") [ 0x3211 ]
, mapEntry ("rieulcirclekorean") [ 0x3263 ]
, mapEntry ("rieulhieuhkorean") [ 0x3140 ]
, mapEntry ("rieulkiyeokkorean") [ 0x313A ]
, mapEntry ("rieulkiyeoksioskorean") [ 0x3169 ]
, mapEntry ("rieulkorean") [ 0x3139 ]
, mapEntry ("rieulmieumkorean") [ 0x313B ]
, mapEntry ("rieulpansioskorean") [ 0x316C ]
, mapEntry ("rieulparenkorean") [ 0x3203 ]
, mapEntry ("rieulphieuphkorean") [ 0x313F ]
, mapEntry ("rieulpieupkorean") [ 0x313C ]
, mapEntry ("rieulpieupsioskorean") [ 0x316B ]
, mapEntry ("rieulsioskorean") [ 0x313D ]
, mapEntry ("rieulthieuthkorean") [ 0x313E ]
, mapEntry ("rieultikeutkorean") [ 0x316A ]
, mapEntry ("rieulyeorinhieuhkorean") [ 0x316D ]
, mapEntry ("rightangle") [ 0x221F ]
, mapEntry ("righttackbelowcmb") [ 0x0319 ]
, mapEntry ("righttriangle") [ 0x22BF ]
, mapEntry ("rihiragana") [ 0x308A ]
, mapEntry ("rikatakana") [ 0x30EA ]
, mapEntry ("rikatakanahalfwidth") [ 0xFF98 ]
, mapEntry ("ring") [ 0x02DA ]
, mapEntry ("ringbelowcmb") [ 0x0325 ]
, mapEntry ("ringcmb") [ 0x030A ]
, mapEntry ("ringhalfleft") [ 0x02BF ]
, mapEntry ("ringhalfleftarmenian") [ 0x0559 ]
, mapEntry ("ringhalfleftbelowcmb") [ 0x031C ]
, mapEntry ("ringhalfleftcentered") [ 0x02D3 ]
, mapEntry ("ringhalfright") [ 0x02BE ]
, mapEntry ("ringhalfrightbelowcmb") [ 0x0339 ]
, mapEntry ("ringhalfrightcentered") [ 0x02D2 ]
, mapEntry ("rinvertedbreve") [ 0x0213 ]
, mapEntry ("rittorusquare") [ 0x3351 ]
, mapEntry ("rlinebelow") [ 0x1E5F ]
, mapEntry ("rlongleg") [ 0x027C ]
, mapEntry ("rlonglegturned") [ 0x027A ]
, mapEntry ("rmonospace") [ 0xFF52 ]
, mapEntry ("rohiragana") [ 0x308D ]
, mapEntry ("rokatakana") [ 0x30ED ]
, mapEntry ("rokatakanahalfwidth") [ 0xFF9B ]
, mapEntry ("roruathai") [ 0x0E23 ]
, mapEntry ("rparen") [ 0x24AD ]
, mapEntry ("rrabengali") [ 0x09DC ]
, mapEntry ("rradeva") [ 0x0931 ]
, mapEntry ("rragurmukhi") [ 0x0A5C ]
, mapEntry ("rreharabic") [ 0x0691 ]
, mapEntry ("rrehfinalarabic") [ 0xFB8D ]
, mapEntry ("rrvocalicbengali") [ 0x09E0 ]
, mapEntry ("rrvocalicdeva") [ 0x0960 ]
, mapEntry ("rrvocalicgujarati") [ 0x0AE0 ]
, mapEntry ("rrvocalicvowelsignbengali") [ 0x09C4 ]
, mapEntry ("rrvocalicvowelsigndeva") [ 0x0944 ]
, mapEntry ("rrvocalicvowelsigngujarati") [ 0x0AC4 ]
, mapEntry ("rsuperior") [ 0xF6F1 ]
, mapEntry ("rtblock") [ 0x2590 ]
, mapEntry ("rturned") [ 0x0279 ]
, mapEntry ("rturnedsuperior") [ 0x02B4 ]
, mapEntry ("ruhiragana") [ 0x308B ]
, mapEntry ("rukatakana") [ 0x30EB ]
, mapEntry ("rukatakanahalfwidth") [ 0xFF99 ]
, mapEntry ("rupeemarkbengali") [ 0x09F2 ]
, mapEntry ("rupeesignbengali") [ 0x09F3 ]
, mapEntry ("rupiah") [ 0xF6DD ]
, mapEntry ("ruthai") [ 0x0E24 ]
, mapEntry ("rvocalicbengali") [ 0x098B ]
, mapEntry ("rvocalicdeva") [ 0x090B ]
, mapEntry ("rvocalicgujarati") [ 0x0A8B ]
, mapEntry ("rvocalicvowelsignbengali") [ 0x09C3 ]
, mapEntry ("rvocalicvowelsigndeva") [ 0x0943 ]
, mapEntry ("rvocalicvowelsigngujarati") [ 0x0AC3 ]
, mapEntry ("s") [ 0x73 ]
, mapEntry ("sabengali") [ 0x09B8 ]
, mapEntry ("sacute") [ 0x015B ]
, mapEntry ("sacutedotaccent") [ 0x1E65 ]
, mapEntry ("sadarabic") [ 0x0635 ]
, mapEntry ("sadeva") [ 0x0938 ]
, mapEntry ("sadfinalarabic") [ 0xFEBA ]
, mapEntry ("sadinitialarabic") [ 0xFEBB ]
, mapEntry ("sadmedialarabic") [ 0xFEBC ]
, mapEntry ("sagujarati") [ 0x0AB8 ]
, mapEntry ("sagurmukhi") [ 0x0A38 ]
, mapEntry ("sahiragana") [ 0x3055 ]
, mapEntry ("sakatakana") [ 0x30B5 ]
, mapEntry ("sakatakanahalfwidth") [ 0xFF7B ]
, mapEntry ("sallallahoualayhewasallamarabic") [ 0xFDFA ]
, mapEntry ("samekh") [ 0x05E1 ]
, mapEntry ("samekhdagesh") [ 0xFB41 ]
, mapEntry ("samekhdageshhebrew") [ 0xFB41 ]
, mapEntry ("samekhhebrew") [ 0x05E1 ]
, mapEntry ("saraaathai") [ 0x0E32 ]
, mapEntry ("saraaethai") [ 0x0E41 ]
, mapEntry ("saraaimaimalaithai") [ 0x0E44 ]
, mapEntry ("saraaimaimuanthai") [ 0x0E43 ]
, mapEntry ("saraamthai") [ 0x0E33 ]
, mapEntry ("saraathai") [ 0x0E30 ]
, mapEntry ("saraethai") [ 0x0E40 ]
, mapEntry ("saraiileftthai") [ 0xF886 ]
, mapEntry ("saraiithai") [ 0x0E35 ]
, mapEntry ("saraileftthai") [ 0xF885 ]
, mapEntry ("saraithai") [ 0x0E34 ]
, mapEntry ("saraothai") [ 0x0E42 ]
, mapEntry ("saraueeleftthai") [ 0xF888 ]
, mapEntry ("saraueethai") [ 0x0E37 ]
, mapEntry ("saraueleftthai") [ 0xF887 ]
, mapEntry ("sarauethai") [ 0x0E36 ]
, mapEntry ("sarauthai") [ 0x0E38 ]
, mapEntry ("sarauuthai") [ 0x0E39 ]
, mapEntry ("sbopomofo") [ 0x3119 ]
, mapEntry ("scaron") [ 0x0161 ]
, mapEntry ("scarondotaccent") [ 0x1E67 ]
, mapEntry ("scedilla") [ 0x015F ]
, mapEntry ("schwa") [ 0x0259 ]
, mapEntry ("schwacyrillic") [ 0x04D9 ]
, mapEntry ("schwadieresiscyrillic") [ 0x04DB ]
, mapEntry ("schwahook") [ 0x025A ]
, mapEntry ("scircle") [ 0x24E2 ]
, mapEntry ("scircumflex") [ 0x015D ]
, mapEntry ("scommaaccent") [ 0x0219 ]
, mapEntry ("sdotaccent") [ 0x1E61 ]
, mapEntry ("sdotbelow") [ 0x1E63 ]
, mapEntry ("sdotbelowdotaccent") [ 0x1E69 ]
, mapEntry ("seagullbelowcmb") [ 0x033C ]
, mapEntry ("second") [ 0x2033 ]
, mapEntry ("secondtonechinese") [ 0x02CA ]
, mapEntry ("section") [ 0xA7 ]
, mapEntry ("seenarabic") [ 0x0633 ]
, mapEntry ("seenfinalarabic") [ 0xFEB2 ]
, mapEntry ("seeninitialarabic") [ 0xFEB3 ]
, mapEntry ("seenmedialarabic") [ 0xFEB4 ]
, mapEntry ("segol") [ 0x05B6 ]
, mapEntry ("segol13") [ 0x05B6 ]
, mapEntry ("segol1f") [ 0x05B6 ]
, mapEntry ("segol2c") [ 0x05B6 ]
, mapEntry ("segolhebrew") [ 0x05B6 ]
, mapEntry ("segolnarrowhebrew") [ 0x05B6 ]
, mapEntry ("segolquarterhebrew") [ 0x05B6 ]
, mapEntry ("segoltahebrew") [ 0x0592 ]
, mapEntry ("segolwidehebrew") [ 0x05B6 ]
, mapEntry ("seharmenian") [ 0x057D ]
, mapEntry ("sehiragana") [ 0x305B ]
, mapEntry ("sekatakana") [ 0x30BB ]
, mapEntry ("sekatakanahalfwidth") [ 0xFF7E ]
, mapEntry ("semicolon") [ 0x3B ]
, mapEntry ("semicolonarabic") [ 0x061B ]
, mapEntry ("semicolonmonospace") [ 0xFF1B ]
, mapEntry ("semicolonsmall") [ 0xFE54 ]
, mapEntry ("semivoicedmarkkana") [ 0x309C ]
, mapEntry ("semivoicedmarkkanahalfwidth") [ 0xFF9F ]
, mapEntry ("sentisquare") [ 0x3322 ]
, mapEntry ("sentosquare") [ 0x3323 ]
, mapEntry ("seven") [ 0x37 ]
, mapEntry ("sevenarabic") [ 0x0667 ]
, mapEntry ("sevenbengali") [ 0x09ED ]
, mapEntry ("sevencircle") [ 0x2466 ]
, mapEntry ("sevencircleinversesansserif") [ 0x2790 ]
, mapEntry ("sevendeva") [ 0x096D ]
, mapEntry ("seveneighths") [ 0x215E ]
, mapEntry ("sevengujarati") [ 0x0AED ]
, mapEntry ("sevengurmukhi") [ 0x0A6D ]
, mapEntry ("sevenhackarabic") [ 0x0667 ]
, mapEntry ("sevenhangzhou") [ 0x3027 ]
, mapEntry ("sevenideographicparen") [ 0x3226 ]
, mapEntry ("seveninferior") [ 0x2087 ]
, mapEntry ("sevenmonospace") [ 0xFF17 ]
, mapEntry ("sevenoldstyle") [ 0xF737 ]
, mapEntry ("sevenparen") [ 0x247A ]
, mapEntry ("sevenperiod") [ 0x248E ]
, mapEntry ("sevenpersian") [ 0x06F7 ]
, mapEntry ("sevenroman") [ 0x2176 ]
, mapEntry ("sevensuperior") [ 0x2077 ]
, mapEntry ("seventeencircle") [ 0x2470 ]
, mapEntry ("seventeenparen") [ 0x2484 ]
, mapEntry ("seventeenperiod") [ 0x2498 ]
, mapEntry ("seventhai") [ 0x0E57 ]
, mapEntry ("sfthyphen") [ 0xAD ]
, mapEntry ("shaarmenian") [ 0x0577 ]
, mapEntry ("shabengali") [ 0x09B6 ]
, mapEntry ("shacyrillic") [ 0x0448 ]
, mapEntry ("shaddaarabic") [ 0x0651 ]
, mapEntry ("shaddadammaarabic") [ 0xFC61 ]
, mapEntry ("shaddadammatanarabic") [ 0xFC5E ]
, mapEntry ("shaddafathaarabic") [ 0xFC60 ]
, mapEntry ("shaddafathatanarabic") [ 0x0651, 0x064B ]
, mapEntry ("shaddakasraarabic") [ 0xFC62 ]
, mapEntry ("shaddakasratanarabic") [ 0xFC5F ]
, mapEntry ("shade") [ 0x2592 ]
, mapEntry ("shadedark") [ 0x2593 ]
, mapEntry ("shadelight") [ 0x2591 ]
, mapEntry ("shademedium") [ 0x2592 ]
, mapEntry ("shadeva") [ 0x0936 ]
, mapEntry ("shagujarati") [ 0x0AB6 ]
, mapEntry ("shagurmukhi") [ 0x0A36 ]
, mapEntry ("shalshelethebrew") [ 0x0593 ]
, mapEntry ("shbopomofo") [ 0x3115 ]
, mapEntry ("shchacyrillic") [ 0x0449 ]
, mapEntry ("sheenarabic") [ 0x0634 ]
, mapEntry ("sheenfinalarabic") [ 0xFEB6 ]
, mapEntry ("sheeninitialarabic") [ 0xFEB7 ]
, mapEntry ("sheenmedialarabic") [ 0xFEB8 ]
, mapEntry ("sheicoptic") [ 0x03E3 ]
, mapEntry ("sheqel") [ 0x20AA ]
, mapEntry ("sheqelhebrew") [ 0x20AA ]
, mapEntry ("sheva") [ 0x05B0 ]
, mapEntry ("sheva115") [ 0x05B0 ]
, mapEntry ("sheva15") [ 0x05B0 ]
, mapEntry ("sheva22") [ 0x05B0 ]
, mapEntry ("sheva2e") [ 0x05B0 ]
, mapEntry ("shevahebrew") [ 0x05B0 ]
, mapEntry ("shevanarrowhebrew") [ 0x05B0 ]
, mapEntry ("shevaquarterhebrew") [ 0x05B0 ]
, mapEntry ("shevawidehebrew") [ 0x05B0 ]
, mapEntry ("shhacyrillic") [ 0x04BB ]
, mapEntry ("shimacoptic") [ 0x03ED ]
, mapEntry ("shin") [ 0x05E9 ]
, mapEntry ("shindagesh") [ 0xFB49 ]
, mapEntry ("shindageshhebrew") [ 0xFB49 ]
, mapEntry ("shindageshshindot") [ 0xFB2C ]
, mapEntry ("shindageshshindothebrew") [ 0xFB2C ]
, mapEntry ("shindageshsindot") [ 0xFB2D ]
, mapEntry ("shindageshsindothebrew") [ 0xFB2D ]
, mapEntry ("shindothebrew") [ 0x05C1 ]
, mapEntry ("shinhebrew") [ 0x05E9 ]
, mapEntry ("shinshindot") [ 0xFB2A ]
, mapEntry ("shinshindothebrew") [ 0xFB2A ]
, mapEntry ("shinsindot") [ 0xFB2B ]
, mapEntry ("shinsindothebrew") [ 0xFB2B ]
, mapEntry ("shook") [ 0x0282 ]
, mapEntry ("sigma") [ 0x03C3 ]
, mapEntry ("sigma1") [ 0x03C2 ]
, mapEntry ("sigmafinal") [ 0x03C2 ]
, mapEntry ("sigmalunatesymbolgreek") [ 0x03F2 ]
, mapEntry ("sihiragana") [ 0x3057 ]
, mapEntry ("sikatakana") [ 0x30B7 ]
, mapEntry ("sikatakanahalfwidth") [ 0xFF7C ]
, mapEntry ("siluqhebrew") [ 0x05BD ]
, mapEntry ("siluqlefthebrew") [ 0x05BD ]
, mapEntry ("similar") [ 0x223C ]
, mapEntry ("sindothebrew") [ 0x05C2 ]
, mapEntry ("siosacirclekorean") [ 0x3274 ]
, mapEntry ("siosaparenkorean") [ 0x3214 ]
, mapEntry ("sioscieuckorean") [ 0x317E ]
, mapEntry ("sioscirclekorean") [ 0x3266 ]
, mapEntry ("sioskiyeokkorean") [ 0x317A ]
, mapEntry ("sioskorean") [ 0x3145 ]
, mapEntry ("siosnieunkorean") [ 0x317B ]
, mapEntry ("siosparenkorean") [ 0x3206 ]
, mapEntry ("siospieupkorean") [ 0x317D ]
, mapEntry ("siostikeutkorean") [ 0x317C ]
, mapEntry ("six") [ 0x36 ]
, mapEntry ("sixarabic") [ 0x0666 ]
, mapEntry ("sixbengali") [ 0x09EC ]
, mapEntry ("sixcircle") [ 0x2465 ]
, mapEntry ("sixcircleinversesansserif") [ 0x278F ]
, mapEntry ("sixdeva") [ 0x096C ]
, mapEntry ("sixgujarati") [ 0x0AEC ]
, mapEntry ("sixgurmukhi") [ 0x0A6C ]
, mapEntry ("sixhackarabic") [ 0x0666 ]
, mapEntry ("sixhangzhou") [ 0x3026 ]
, mapEntry ("sixideographicparen") [ 0x3225 ]
, mapEntry ("sixinferior") [ 0x2086 ]
, mapEntry ("sixmonospace") [ 0xFF16 ]
, mapEntry ("sixoldstyle") [ 0xF736 ]
, mapEntry ("sixparen") [ 0x2479 ]
, mapEntry ("sixperiod") [ 0x248D ]
, mapEntry ("sixpersian") [ 0x06F6 ]
, mapEntry ("sixroman") [ 0x2175 ]
, mapEntry ("sixsuperior") [ 0x2076 ]
, mapEntry ("sixteencircle") [ 0x246F ]
, mapEntry ("sixteencurrencydenominatorbengali") [ 0x09F9 ]
, mapEntry ("sixteenparen") [ 0x2483 ]
, mapEntry ("sixteenperiod") [ 0x2497 ]
, mapEntry ("sixthai") [ 0x0E56 ]
, mapEntry ("slash") [ 0x2F ]
, mapEntry ("slashmonospace") [ 0xFF0F ]
, mapEntry ("slong") [ 0x017F ]
, mapEntry ("slongdotaccent") [ 0x1E9B ]
, mapEntry ("smileface") [ 0x263A ]
, mapEntry ("smonospace") [ 0xFF53 ]
, mapEntry ("sofpasuqhebrew") [ 0x05C3 ]
, mapEntry ("softhyphen") [ 0xAD ]
, mapEntry ("softsigncyrillic") [ 0x044C ]
, mapEntry ("sohiragana") [ 0x305D ]
, mapEntry ("sokatakana") [ 0x30BD ]
, mapEntry ("sokatakanahalfwidth") [ 0xFF7F ]
, mapEntry ("soliduslongoverlaycmb") [ 0x0338 ]
, mapEntry ("solidusshortoverlaycmb") [ 0x0337 ]
, mapEntry ("sorusithai") [ 0x0E29 ]
, mapEntry ("sosalathai") [ 0x0E28 ]
, mapEntry ("sosothai") [ 0x0E0B ]
, mapEntry ("sosuathai") [ 0x0E2A ]
, mapEntry ("space") [ 0x20 ]
, mapEntry ("spacehackarabic") [ 0x20 ]
, mapEntry ("spade") [ 0x2660 ]
, mapEntry ("spadesuitblack") [ 0x2660 ]
, mapEntry ("spadesuitwhite") [ 0x2664 ]
, mapEntry ("sparen") [ 0x24AE ]
, mapEntry ("squarebelowcmb") [ 0x033B ]
, mapEntry ("squarecc") [ 0x33C4 ]
, mapEntry ("squarecm") [ 0x339D ]
, mapEntry ("squarediagonalcrosshatchfill") [ 0x25A9 ]
, mapEntry ("squarehorizontalfill") [ 0x25A4 ]
, mapEntry ("squarekg") [ 0x338F ]
, mapEntry ("squarekm") [ 0x339E ]
, mapEntry ("squarekmcapital") [ 0x33CE ]
, mapEntry ("squareln") [ 0x33D1 ]
, mapEntry ("squarelog") [ 0x33D2 ]
, mapEntry ("squaremg") [ 0x338E ]
, mapEntry ("squaremil") [ 0x33D5 ]
, mapEntry ("squaremm") [ 0x339C ]
, mapEntry ("squaremsquared") [ 0x33A1 ]
, mapEntry ("squareorthogonalcrosshatchfill") [ 0x25A6 ]
, mapEntry ("squareupperlefttolowerrightfill") [ 0x25A7 ]
, mapEntry ("squareupperrighttolowerleftfill") [ 0x25A8 ]
]
def glyphEncs10 =
[ mapEntry ("squareverticalfill") [ 0x25A5 ]
, mapEntry ("squarewhitewithsmallblack") [ 0x25A3 ]
, mapEntry ("srsquare") [ 0x33DB ]
, mapEntry ("ssabengali") [ 0x09B7 ]
, mapEntry ("ssadeva") [ 0x0937 ]
, mapEntry ("ssagujarati") [ 0x0AB7 ]
, mapEntry ("ssangcieuckorean") [ 0x3149 ]
, mapEntry ("ssanghieuhkorean") [ 0x3185 ]
, mapEntry ("ssangieungkorean") [ 0x3180 ]
, mapEntry ("ssangkiyeokkorean") [ 0x3132 ]
, mapEntry ("ssangnieunkorean") [ 0x3165 ]
, mapEntry ("ssangpieupkorean") [ 0x3143 ]
, mapEntry ("ssangsioskorean") [ 0x3146 ]
, mapEntry ("ssangtikeutkorean") [ 0x3138 ]
, mapEntry ("ssuperior") [ 0xF6F2 ]
, mapEntry ("sterling") [ 0xA3 ]
, mapEntry ("sterlingmonospace") [ 0xFFE1 ]
, mapEntry ("strokelongoverlaycmb") [ 0x0336 ]
, mapEntry ("strokeshortoverlaycmb") [ 0x0335 ]
, mapEntry ("subset") [ 0x2282 ]
, mapEntry ("subsetnotequal") [ 0x228A ]
, mapEntry ("subsetorequal") [ 0x2286 ]
, mapEntry ("succeeds") [ 0x227B ]
, mapEntry ("suchthat") [ 0x220B ]
, mapEntry ("suhiragana") [ 0x3059 ]
, mapEntry ("sukatakana") [ 0x30B9 ]
, mapEntry ("sukatakanahalfwidth") [ 0xFF7D ]
, mapEntry ("sukunarabic") [ 0x0652 ]
, mapEntry ("summation") [ 0x2211 ]
, mapEntry ("sun") [ 0x263C ]
, mapEntry ("superset") [ 0x2283 ]
, mapEntry ("supersetnotequal") [ 0x228B ]
, mapEntry ("supersetorequal") [ 0x2287 ]
, mapEntry ("svsquare") [ 0x33DC ]
, mapEntry ("syouwaerasquare") [ 0x337C ]
, mapEntry ("t") [ 0x74 ]
, mapEntry ("tabengali") [ 0x09A4 ]
, mapEntry ("tackdown") [ 0x22A4 ]
, mapEntry ("tackleft") [ 0x22A3 ]
, mapEntry ("tadeva") [ 0x0924 ]
, mapEntry ("tagujarati") [ 0x0AA4 ]
, mapEntry ("tagurmukhi") [ 0x0A24 ]
, mapEntry ("taharabic") [ 0x0637 ]
, mapEntry ("tahfinalarabic") [ 0xFEC2 ]
, mapEntry ("tahinitialarabic") [ 0xFEC3 ]
, mapEntry ("tahiragana") [ 0x305F ]
, mapEntry ("tahmedialarabic") [ 0xFEC4 ]
, mapEntry ("taisyouerasquare") [ 0x337D ]
, mapEntry ("takatakana") [ 0x30BF ]
, mapEntry ("takatakanahalfwidth") [ 0xFF80 ]
, mapEntry ("tatweelarabic") [ 0x0640 ]
, mapEntry ("tau") [ 0x03C4 ]
, mapEntry ("tav") [ 0x05EA ]
, mapEntry ("tavdages") [ 0xFB4A ]
, mapEntry ("tavdagesh") [ 0xFB4A ]
, mapEntry ("tavdageshhebrew") [ 0xFB4A ]
, mapEntry ("tavhebrew") [ 0x05EA ]
, mapEntry ("tbar") [ 0x0167 ]
, mapEntry ("tbopomofo") [ 0x310A ]
, mapEntry ("tcaron") [ 0x0165 ]
, mapEntry ("tccurl") [ 0x02A8 ]
, mapEntry ("tcedilla") [ 0x0163 ]
, mapEntry ("tcheharabic") [ 0x0686 ]
, mapEntry ("tchehfinalarabic") [ 0xFB7B ]
, mapEntry ("tchehinitialarabic") [ 0xFB7C ]
, mapEntry ("tchehmedialarabic") [ 0xFB7D ]
, mapEntry ("tchehmeeminitialarabic") [ 0xFB7C, 0xFEE4 ]
, mapEntry ("tcircle") [ 0x24E3 ]
, mapEntry ("tcircumflexbelow") [ 0x1E71 ]
, mapEntry ("tcommaaccent") [ 0x0163 ]
, mapEntry ("tdieresis") [ 0x1E97 ]
, mapEntry ("tdotaccent") [ 0x1E6B ]
, mapEntry ("tdotbelow") [ 0x1E6D ]
, mapEntry ("tecyrillic") [ 0x0442 ]
, mapEntry ("tedescendercyrillic") [ 0x04AD ]
, mapEntry ("teharabic") [ 0x062A ]
, mapEntry ("tehfinalarabic") [ 0xFE96 ]
, mapEntry ("tehhahinitialarabic") [ 0xFCA2 ]
, mapEntry ("tehhahisolatedarabic") [ 0xFC0C ]
, mapEntry ("tehinitialarabic") [ 0xFE97 ]
, mapEntry ("tehiragana") [ 0x3066 ]
, mapEntry ("tehjeeminitialarabic") [ 0xFCA1 ]
, mapEntry ("tehjeemisolatedarabic") [ 0xFC0B ]
, mapEntry ("tehmarbutaarabic") [ 0x0629 ]
, mapEntry ("tehmarbutafinalarabic") [ 0xFE94 ]
, mapEntry ("tehmedialarabic") [ 0xFE98 ]
, mapEntry ("tehmeeminitialarabic") [ 0xFCA4 ]
, mapEntry ("tehmeemisolatedarabic") [ 0xFC0E ]
, mapEntry ("tehnoonfinalarabic") [ 0xFC73 ]
, mapEntry ("tekatakana") [ 0x30C6 ]
, mapEntry ("tekatakanahalfwidth") [ 0xFF83 ]
, mapEntry ("telephone") [ 0x2121 ]
, mapEntry ("telephoneblack") [ 0x260E ]
, mapEntry ("telishagedolahebrew") [ 0x05A0 ]
, mapEntry ("telishaqetanahebrew") [ 0x05A9 ]
, mapEntry ("tencircle") [ 0x2469 ]
, mapEntry ("tenideographicparen") [ 0x3229 ]
, mapEntry ("tenparen") [ 0x247D ]
, mapEntry ("tenperiod") [ 0x2491 ]
, mapEntry ("tenroman") [ 0x2179 ]
, mapEntry ("tesh") [ 0x02A7 ]
, mapEntry ("tet") [ 0x05D8 ]
, mapEntry ("tetdagesh") [ 0xFB38 ]
, mapEntry ("tetdageshhebrew") [ 0xFB38 ]
, mapEntry ("tethebrew") [ 0x05D8 ]
, mapEntry ("tetsecyrillic") [ 0x04B5 ]
, mapEntry ("tevirhebrew") [ 0x059B ]
, mapEntry ("tevirlefthebrew") [ 0x059B ]
, mapEntry ("thabengali") [ 0x09A5 ]
, mapEntry ("thadeva") [ 0x0925 ]
, mapEntry ("thagujarati") [ 0x0AA5 ]
, mapEntry ("thagurmukhi") [ 0x0A25 ]
, mapEntry ("thalarabic") [ 0x0630 ]
, mapEntry ("thalfinalarabic") [ 0xFEAC ]
, mapEntry ("thanthakhatlowleftthai") [ 0xF898 ]
, mapEntry ("thanthakhatlowrightthai") [ 0xF897 ]
, mapEntry ("thanthakhatthai") [ 0x0E4C ]
, mapEntry ("thanthakhatupperleftthai") [ 0xF896 ]
, mapEntry ("theharabic") [ 0x062B ]
, mapEntry ("thehfinalarabic") [ 0xFE9A ]
, mapEntry ("thehinitialarabic") [ 0xFE9B ]
, mapEntry ("thehmedialarabic") [ 0xFE9C ]
, mapEntry ("thereexists") [ 0x2203 ]
, mapEntry ("therefore") [ 0x2234 ]
, mapEntry ("theta") [ 0x03B8 ]
, mapEntry ("theta1") [ 0x03D1 ]
, mapEntry ("thetasymbolgreek") [ 0x03D1 ]
, mapEntry ("thieuthacirclekorean") [ 0x3279 ]
, mapEntry ("thieuthaparenkorean") [ 0x3219 ]
, mapEntry ("thieuthcirclekorean") [ 0x326B ]
, mapEntry ("thieuthkorean") [ 0x314C ]
, mapEntry ("thieuthparenkorean") [ 0x320B ]
, mapEntry ("thirteencircle") [ 0x246C ]
, mapEntry ("thirteenparen") [ 0x2480 ]
, mapEntry ("thirteenperiod") [ 0x2494 ]
, mapEntry ("thonangmonthothai") [ 0x0E11 ]
, mapEntry ("thook") [ 0x01AD ]
, mapEntry ("thophuthaothai") [ 0x0E12 ]
, mapEntry ("thorn") [ 0xFE ]
, mapEntry ("thothahanthai") [ 0x0E17 ]
, mapEntry ("thothanthai") [ 0x0E10 ]
, mapEntry ("thothongthai") [ 0x0E18 ]
, mapEntry ("thothungthai") [ 0x0E16 ]
, mapEntry ("thousandcyrillic") [ 0x0482 ]
, mapEntry ("thousandsseparatorarabic") [ 0x066C ]
, mapEntry ("thousandsseparatorpersian") [ 0x066C ]
, mapEntry ("three") [ 0x33 ]
, mapEntry ("threearabic") [ 0x0663 ]
, mapEntry ("threebengali") [ 0x09E9 ]
, mapEntry ("threecircle") [ 0x2462 ]
, mapEntry ("threecircleinversesansserif") [ 0x278C ]
, mapEntry ("threedeva") [ 0x0969 ]
, mapEntry ("threeeighths") [ 0x215C ]
, mapEntry ("threegujarati") [ 0x0AE9 ]
, mapEntry ("threegurmukhi") [ 0x0A69 ]
, mapEntry ("threehackarabic") [ 0x0663 ]
, mapEntry ("threehangzhou") [ 0x3023 ]
, mapEntry ("threeideographicparen") [ 0x3222 ]
, mapEntry ("threeinferior") [ 0x2083 ]
, mapEntry ("threemonospace") [ 0xFF13 ]
, mapEntry ("threenumeratorbengali") [ 0x09F6 ]
, mapEntry ("threeoldstyle") [ 0xF733 ]
, mapEntry ("threeparen") [ 0x2476 ]
, mapEntry ("threeperiod") [ 0x248A ]
, mapEntry ("threepersian") [ 0x06F3 ]
, mapEntry ("threequarters") [ 0xBE ]
, mapEntry ("threequartersemdash") [ 0xF6DE ]
, mapEntry ("threeroman") [ 0x2172 ]
, mapEntry ("threesuperior") [ 0xB3 ]
, mapEntry ("threethai") [ 0x0E53 ]
, mapEntry ("thzsquare") [ 0x3394 ]
, mapEntry ("tihiragana") [ 0x3061 ]
, mapEntry ("tikatakana") [ 0x30C1 ]
, mapEntry ("tikatakanahalfwidth") [ 0xFF81 ]
, mapEntry ("tikeutacirclekorean") [ 0x3270 ]
, mapEntry ("tikeutaparenkorean") [ 0x3210 ]
, mapEntry ("tikeutcirclekorean") [ 0x3262 ]
, mapEntry ("tikeutkorean") [ 0x3137 ]
, mapEntry ("tikeutparenkorean") [ 0x3202 ]
, mapEntry ("tilde") [ 0x02DC ]
, mapEntry ("tildebelowcmb") [ 0x0330 ]
, mapEntry ("tildecmb") [ 0x0303 ]
, mapEntry ("tildecomb") [ 0x0303 ]
, mapEntry ("tildedoublecmb") [ 0x0360 ]
, mapEntry ("tildeoperator") [ 0x223C ]
, mapEntry ("tildeoverlaycmb") [ 0x0334 ]
, mapEntry ("tildeverticalcmb") [ 0x033E ]
, mapEntry ("timescircle") [ 0x2297 ]
, mapEntry ("tipehahebrew") [ 0x0596 ]
, mapEntry ("tipehalefthebrew") [ 0x0596 ]
, mapEntry ("tippigurmukhi") [ 0x0A70 ]
, mapEntry ("titlocyrilliccmb") [ 0x0483 ]
, mapEntry ("tiwnarmenian") [ 0x057F ]
, mapEntry ("tlinebelow") [ 0x1E6F ]
, mapEntry ("tmonospace") [ 0xFF54 ]
, mapEntry ("toarmenian") [ 0x0569 ]
, mapEntry ("tohiragana") [ 0x3068 ]
, mapEntry ("tokatakana") [ 0x30C8 ]
, mapEntry ("tokatakanahalfwidth") [ 0xFF84 ]
, mapEntry ("tonebarextrahighmod") [ 0x02E5 ]
, mapEntry ("tonebarextralowmod") [ 0x02E9 ]
, mapEntry ("tonebarhighmod") [ 0x02E6 ]
, mapEntry ("tonebarlowmod") [ 0x02E8 ]
, mapEntry ("tonebarmidmod") [ 0x02E7 ]
, mapEntry ("tonefive") [ 0x01BD ]
, mapEntry ("tonesix") [ 0x0185 ]
, mapEntry ("tonetwo") [ 0x01A8 ]
, mapEntry ("tonos") [ 0x0384 ]
, mapEntry ("tonsquare") [ 0x3327 ]
, mapEntry ("topatakthai") [ 0x0E0F ]
, mapEntry ("tortoiseshellbracketleft") [ 0x3014 ]
, mapEntry ("tortoiseshellbracketleftsmall") [ 0xFE5D ]
, mapEntry ("tortoiseshellbracketleftvertical") [ 0xFE39 ]
, mapEntry ("tortoiseshellbracketright") [ 0x3015 ]
, mapEntry ("tortoiseshellbracketrightsmall") [ 0xFE5E ]
, mapEntry ("tortoiseshellbracketrightvertical") [ 0xFE3A ]
, mapEntry ("totaothai") [ 0x0E15 ]
, mapEntry ("tpalatalhook") [ 0x01AB ]
, mapEntry ("tparen") [ 0x24AF ]
, mapEntry ("trademark") [ 0x2122 ]
, mapEntry ("trademarksans") [ 0xF8EA ]
, mapEntry ("trademarkserif") [ 0xF6DB ]
, mapEntry ("tretroflexhook") [ 0x0288 ]
, mapEntry ("triagdn") [ 0x25BC ]
, mapEntry ("triaglf") [ 0x25C4 ]
, mapEntry ("triagrt") [ 0x25BA ]
, mapEntry ("triagup") [ 0x25B2 ]
, mapEntry ("ts") [ 0x02A6 ]
, mapEntry ("tsadi") [ 0x05E6 ]
, mapEntry ("tsadidagesh") [ 0xFB46 ]
, mapEntry ("tsadidageshhebrew") [ 0xFB46 ]
, mapEntry ("tsadihebrew") [ 0x05E6 ]
, mapEntry ("tsecyrillic") [ 0x0446 ]
, mapEntry ("tsere") [ 0x05B5 ]
, mapEntry ("tsere12") [ 0x05B5 ]
, mapEntry ("tsere1e") [ 0x05B5 ]
, mapEntry ("tsere2b") [ 0x05B5 ]
, mapEntry ("tserehebrew") [ 0x05B5 ]
, mapEntry ("tserenarrowhebrew") [ 0x05B5 ]
, mapEntry ("tserequarterhebrew") [ 0x05B5 ]
, mapEntry ("tserewidehebrew") [ 0x05B5 ]
, mapEntry ("tshecyrillic") [ 0x045B ]
, mapEntry ("tsuperior") [ 0xF6F3 ]
, mapEntry ("ttabengali") [ 0x099F ]
, mapEntry ("ttadeva") [ 0x091F ]
, mapEntry ("ttagujarati") [ 0x0A9F ]
, mapEntry ("ttagurmukhi") [ 0x0A1F ]
, mapEntry ("tteharabic") [ 0x0679 ]
, mapEntry ("ttehfinalarabic") [ 0xFB67 ]
, mapEntry ("ttehinitialarabic") [ 0xFB68 ]
, mapEntry ("ttehmedialarabic") [ 0xFB69 ]
, mapEntry ("tthabengali") [ 0x09A0 ]
, mapEntry ("tthadeva") [ 0x0920 ]
, mapEntry ("tthagujarati") [ 0x0AA0 ]
, mapEntry ("tthagurmukhi") [ 0x0A20 ]
, mapEntry ("tturned") [ 0x0287 ]
, mapEntry ("tuhiragana") [ 0x3064 ]
, mapEntry ("tukatakana") [ 0x30C4 ]
, mapEntry ("tukatakanahalfwidth") [ 0xFF82 ]
, mapEntry ("tusmallhiragana") [ 0x3063 ]
, mapEntry ("tusmallkatakana") [ 0x30C3 ]
, mapEntry ("tusmallkatakanahalfwidth") [ 0xFF6F ]
, mapEntry ("twelvecircle") [ 0x246B ]
, mapEntry ("twelveparen") [ 0x247F ]
, mapEntry ("twelveperiod") [ 0x2493 ]
, mapEntry ("twelveroman") [ 0x217B ]
, mapEntry ("twentycircle") [ 0x2473 ]
, mapEntry ("twentyhangzhou") [ 0x5344 ]
, mapEntry ("twentyparen") [ 0x2487 ]
, mapEntry ("twentyperiod") [ 0x249B ]
, mapEntry ("two") [ 0x32 ]
, mapEntry ("twoarabic") [ 0x0662 ]
, mapEntry ("twobengali") [ 0x09E8 ]
, mapEntry ("twocircle") [ 0x2461 ]
, mapEntry ("twocircleinversesansserif") [ 0x278B ]
, mapEntry ("twodeva") [ 0x0968 ]
, mapEntry ("twodotenleader") [ 0x2025 ]
, mapEntry ("twodotleader") [ 0x2025 ]
, mapEntry ("twodotleadervertical") [ 0xFE30 ]
, mapEntry ("twogujarati") [ 0x0AE8 ]
, mapEntry ("twogurmukhi") [ 0x0A68 ]
, mapEntry ("twohackarabic") [ 0x0662 ]
, mapEntry ("twohangzhou") [ 0x3022 ]
, mapEntry ("twoideographicparen") [ 0x3221 ]
, mapEntry ("twoinferior") [ 0x2082 ]
, mapEntry ("twomonospace") [ 0xFF12 ]
, mapEntry ("twonumeratorbengali") [ 0x09F5 ]
, mapEntry ("twooldstyle") [ 0xF732 ]
, mapEntry ("twoparen") [ 0x2475 ]
, mapEntry ("twoperiod") [ 0x2489 ]
, mapEntry ("twopersian") [ 0x06F2 ]
, mapEntry ("tworoman") [ 0x2171 ]
, mapEntry ("twostroke") [ 0x01BB ]
, mapEntry ("twosuperior") [ 0xB2 ]
, mapEntry ("twothai") [ 0x0E52 ]
, mapEntry ("twothirds") [ 0x2154 ]
, mapEntry ("u") [ 0x75 ]
, mapEntry ("uacute") [ 0xFA ]
, mapEntry ("ubar") [ 0x0289 ]
, mapEntry ("ubengali") [ 0x0989 ]
, mapEntry ("ubopomofo") [ 0x3128 ]
, mapEntry ("ubreve") [ 0x016D ]
, mapEntry ("ucaron") [ 0x01D4 ]
, mapEntry ("ucircle") [ 0x24E4 ]
, mapEntry ("ucircumflex") [ 0xFB ]
, mapEntry ("ucircumflexbelow") [ 0x1E77 ]
, mapEntry ("ucyrillic") [ 0x0443 ]
, mapEntry ("udattadeva") [ 0x0951 ]
, mapEntry ("udblacute") [ 0x0171 ]
, mapEntry ("udblgrave") [ 0x0215 ]
, mapEntry ("udeva") [ 0x0909 ]
, mapEntry ("udieresis") [ 0xFC ]
, mapEntry ("udieresisacute") [ 0x01D8 ]
, mapEntry ("udieresisbelow") [ 0x1E73 ]
, mapEntry ("udieresiscaron") [ 0x01DA ]
, mapEntry ("udieresiscyrillic") [ 0x04F1 ]
, mapEntry ("udieresisgrave") [ 0x01DC ]
, mapEntry ("udieresismacron") [ 0x01D6 ]
, mapEntry ("udotbelow") [ 0x1EE5 ]
, mapEntry ("ugrave") [ 0xF9 ]
, mapEntry ("ugujarati") [ 0x0A89 ]
, mapEntry ("ugurmukhi") [ 0x0A09 ]
, mapEntry ("uhiragana") [ 0x3046 ]
, mapEntry ("uhookabove") [ 0x1EE7 ]
, mapEntry ("uhorn") [ 0x01B0 ]
, mapEntry ("uhornacute") [ 0x1EE9 ]
, mapEntry ("uhorndotbelow") [ 0x1EF1 ]
, mapEntry ("uhorngrave") [ 0x1EEB ]
, mapEntry ("uhornhookabove") [ 0x1EED ]
, mapEntry ("uhorntilde") [ 0x1EEF ]
, mapEntry ("uhungarumlaut") [ 0x0171 ]
, mapEntry ("uhungarumlautcyrillic") [ 0x04F3 ]
, mapEntry ("uinvertedbreve") [ 0x0217 ]
, mapEntry ("ukatakana") [ 0x30A6 ]
, mapEntry ("ukatakanahalfwidth") [ 0xFF73 ]
, mapEntry ("ukcyrillic") [ 0x0479 ]
, mapEntry ("ukorean") [ 0x315C ]
, mapEntry ("umacron") [ 0x016B ]
, mapEntry ("umacroncyrillic") [ 0x04EF ]
, mapEntry ("umacrondieresis") [ 0x1E7B ]
, mapEntry ("umatragurmukhi") [ 0x0A41 ]
, mapEntry ("umonospace") [ 0xFF55 ]
, mapEntry ("underscore") [ 0x5F ]
, mapEntry ("underscoredbl") [ 0x2017 ]
, mapEntry ("underscoremonospace") [ 0xFF3F ]
, mapEntry ("underscorevertical") [ 0xFE33 ]
, mapEntry ("underscorewavy") [ 0xFE4F ]
, mapEntry ("union") [ 0x222A ]
, mapEntry ("universal") [ 0x2200 ]
, mapEntry ("uogonek") [ 0x0173 ]
, mapEntry ("uparen") [ 0x24B0 ]
, mapEntry ("upblock") [ 0x2580 ]
, mapEntry ("upperdothebrew") [ 0x05C4 ]
, mapEntry ("upsilon") [ 0x03C5 ]
, mapEntry ("upsilondieresis") [ 0x03CB ]
, mapEntry ("upsilondieresistonos") [ 0x03B0 ]
, mapEntry ("upsilonlatin") [ 0x028A ]
, mapEntry ("upsilontonos") [ 0x03CD ]
, mapEntry ("uptackbelowcmb") [ 0x031D ]
, mapEntry ("uptackmod") [ 0x02D4 ]
, mapEntry ("uragurmukhi") [ 0x0A73 ]
, mapEntry ("uring") [ 0x016F ]
, mapEntry ("ushortcyrillic") [ 0x045E ]
, mapEntry ("usmallhiragana") [ 0x3045 ]
, mapEntry ("usmallkatakana") [ 0x30A5 ]
, mapEntry ("usmallkatakanahalfwidth") [ 0xFF69 ]
, mapEntry ("ustraightcyrillic") [ 0x04AF ]
, mapEntry ("ustraightstrokecyrillic") [ 0x04B1 ]
, mapEntry ("utilde") [ 0x0169 ]
, mapEntry ("utildeacute") [ 0x1E79 ]
, mapEntry ("utildebelow") [ 0x1E75 ]
, mapEntry ("uubengali") [ 0x098A ]
, mapEntry ("uudeva") [ 0x090A ]
, mapEntry ("uugujarati") [ 0x0A8A ]
, mapEntry ("uugurmukhi") [ 0x0A0A ]
, mapEntry ("uumatragurmukhi") [ 0x0A42 ]
, mapEntry ("uuvowelsignbengali") [ 0x09C2 ]
, mapEntry ("uuvowelsigndeva") [ 0x0942 ]
, mapEntry ("uuvowelsigngujarati") [ 0x0AC2 ]
, mapEntry ("uvowelsignbengali") [ 0x09C1 ]
, mapEntry ("uvowelsigndeva") [ 0x0941 ]
, mapEntry ("uvowelsigngujarati") [ 0x0AC1 ]
, mapEntry ("v") [ 0x76 ]
, mapEntry ("vadeva") [ 0x0935 ]
, mapEntry ("vagujarati") [ 0x0AB5 ]
, mapEntry ("vagurmukhi") [ 0x0A35 ]
, mapEntry ("vakatakana") [ 0x30F7 ]
, mapEntry ("vav") [ 0x05D5 ]
, mapEntry ("vavdagesh") [ 0xFB35 ]
, mapEntry ("vavdagesh65") [ 0xFB35 ]
, mapEntry ("vavdageshhebrew") [ 0xFB35 ]
, mapEntry ("vavhebrew") [ 0x05D5 ]
, mapEntry ("vavholam") [ 0xFB4B ]
, mapEntry ("vavholamhebrew") [ 0xFB4B ]
, mapEntry ("vavvavhebrew") [ 0x05F0 ]
, mapEntry ("vavyodhebrew") [ 0x05F1 ]
, mapEntry ("vcircle") [ 0x24E5 ]
, mapEntry ("vdotbelow") [ 0x1E7F ]
, mapEntry ("vecyrillic") [ 0x0432 ]
, mapEntry ("veharabic") [ 0x06A4 ]
]
def glyphEncs11 =
[ mapEntry ("vehfinalarabic") [ 0xFB6B ]
, mapEntry ("vehinitialarabic") [ 0xFB6C ]
, mapEntry ("vehmedialarabic") [ 0xFB6D ]
, mapEntry ("vekatakana") [ 0x30F9 ]
, mapEntry ("venus") [ 0x2640 ]
, mapEntry ("verticalbar") [ 0x7C ]
, mapEntry ("verticallineabovecmb") [ 0x030D ]
, mapEntry ("verticallinebelowcmb") [ 0x0329 ]
, mapEntry ("verticallinelowmod") [ 0x02CC ]
, mapEntry ("verticallinemod") [ 0x02C8 ]
, mapEntry ("vewarmenian") [ 0x057E ]
, mapEntry ("vhook") [ 0x028B ]
, mapEntry ("vikatakana") [ 0x30F8 ]
, mapEntry ("viramabengali") [ 0x09CD ]
, mapEntry ("viramadeva") [ 0x094D ]
, mapEntry ("viramagujarati") [ 0x0ACD ]
, mapEntry ("visargabengali") [ 0x0983 ]
, mapEntry ("visargadeva") [ 0x0903 ]
, mapEntry ("visargagujarati") [ 0x0A83 ]
, mapEntry ("vmonospace") [ 0xFF56 ]
, mapEntry ("voarmenian") [ 0x0578 ]
, mapEntry ("voicediterationhiragana") [ 0x309E ]
, mapEntry ("voicediterationkatakana") [ 0x30FE ]
, mapEntry ("voicedmarkkana") [ 0x309B ]
, mapEntry ("voicedmarkkanahalfwidth") [ 0xFF9E ]
, mapEntry ("vokatakana") [ 0x30FA ]
, mapEntry ("vparen") [ 0x24B1 ]
, mapEntry ("vtilde") [ 0x1E7D ]
, mapEntry ("vturned") [ 0x028C ]
, mapEntry ("vuhiragana") [ 0x3094 ]
, mapEntry ("vukatakana") [ 0x30F4 ]
, mapEntry ("w") [ 0x77 ]
, mapEntry ("wacute") [ 0x1E83 ]
, mapEntry ("waekorean") [ 0x3159 ]
, mapEntry ("wahiragana") [ 0x308F ]
, mapEntry ("wakatakana") [ 0x30EF ]
, mapEntry ("wakatakanahalfwidth") [ 0xFF9C ]
, mapEntry ("wakorean") [ 0x3158 ]
, mapEntry ("wasmallhiragana") [ 0x308E ]
, mapEntry ("wasmallkatakana") [ 0x30EE ]
, mapEntry ("wattosquare") [ 0x3357 ]
, mapEntry ("wavedash") [ 0x301C ]
, mapEntry ("wavyunderscorevertical") [ 0xFE34 ]
, mapEntry ("wawarabic") [ 0x0648 ]
, mapEntry ("wawfinalarabic") [ 0xFEEE ]
, mapEntry ("wawhamzaabovearabic") [ 0x0624 ]
, mapEntry ("wawhamzaabovefinalarabic") [ 0xFE86 ]
, mapEntry ("wbsquare") [ 0x33DD ]
, mapEntry ("wcircle") [ 0x24E6 ]
, mapEntry ("wcircumflex") [ 0x0175 ]
, mapEntry ("wdieresis") [ 0x1E85 ]
, mapEntry ("wdotaccent") [ 0x1E87 ]
, mapEntry ("wdotbelow") [ 0x1E89 ]
, mapEntry ("wehiragana") [ 0x3091 ]
, mapEntry ("weierstrass") [ 0x2118 ]
, mapEntry ("wekatakana") [ 0x30F1 ]
, mapEntry ("wekorean") [ 0x315E ]
, mapEntry ("weokorean") [ 0x315D ]
, mapEntry ("wgrave") [ 0x1E81 ]
, mapEntry ("whitebullet") [ 0x25E6 ]
, mapEntry ("whitecircle") [ 0x25CB ]
, mapEntry ("whitecircleinverse") [ 0x25D9 ]
, mapEntry ("whitecornerbracketleft") [ 0x300E ]
, mapEntry ("whitecornerbracketleftvertical") [ 0xFE43 ]
, mapEntry ("whitecornerbracketright") [ 0x300F ]
, mapEntry ("whitecornerbracketrightvertical") [ 0xFE44 ]
, mapEntry ("whitediamond") [ 0x25C7 ]
, mapEntry ("whitediamondcontainingblacksmalldiamond") [ 0x25C8 ]
, mapEntry ("whitedownpointingsmalltriangle") [ 0x25BF ]
, mapEntry ("whitedownpointingtriangle") [ 0x25BD ]
, mapEntry ("whiteleftpointingsmalltriangle") [ 0x25C3 ]
, mapEntry ("whiteleftpointingtriangle") [ 0x25C1 ]
, mapEntry ("whitelenticularbracketleft") [ 0x3016 ]
, mapEntry ("whitelenticularbracketright") [ 0x3017 ]
, mapEntry ("whiterightpointingsmalltriangle") [ 0x25B9 ]
, mapEntry ("whiterightpointingtriangle") [ 0x25B7 ]
, mapEntry ("whitesmallsquare") [ 0x25AB ]
, mapEntry ("whitesmilingface") [ 0x263A ]
, mapEntry ("whitesquare") [ 0x25A1 ]
, mapEntry ("whitestar") [ 0x2606 ]
, mapEntry ("whitetelephone") [ 0x260F ]
, mapEntry ("whitetortoiseshellbracketleft") [ 0x3018 ]
, mapEntry ("whitetortoiseshellbracketright") [ 0x3019 ]
, mapEntry ("whiteuppointingsmalltriangle") [ 0x25B5 ]
, mapEntry ("whiteuppointingtriangle") [ 0x25B3 ]
, mapEntry ("wihiragana") [ 0x3090 ]
, mapEntry ("wikatakana") [ 0x30F0 ]
, mapEntry ("wikorean") [ 0x315F ]
, mapEntry ("wmonospace") [ 0xFF57 ]
, mapEntry ("wohiragana") [ 0x3092 ]
, mapEntry ("wokatakana") [ 0x30F2 ]
, mapEntry ("wokatakanahalfwidth") [ 0xFF66 ]
, mapEntry ("won") [ 0x20A9 ]
, mapEntry ("wonmonospace") [ 0xFFE6 ]
, mapEntry ("wowaenthai") [ 0x0E27 ]
, mapEntry ("wparen") [ 0x24B2 ]
, mapEntry ("wring") [ 0x1E98 ]
, mapEntry ("wsuperior") [ 0x02B7 ]
, mapEntry ("wturned") [ 0x028D ]
, mapEntry ("wynn") [ 0x01BF ]
, mapEntry ("x") [ 0x78 ]
, mapEntry ("xabovecmb") [ 0x033D ]
, mapEntry ("xbopomofo") [ 0x3112 ]
, mapEntry ("xcircle") [ 0x24E7 ]
, mapEntry ("xdieresis") [ 0x1E8D ]
, mapEntry ("xdotaccent") [ 0x1E8B ]
, mapEntry ("xeharmenian") [ 0x056D ]
, mapEntry ("xi") [ 0x03BE ]
, mapEntry ("xmonospace") [ 0xFF58 ]
, mapEntry ("xparen") [ 0x24B3 ]
, mapEntry ("xsuperior") [ 0x02E3 ]
, mapEntry ("y") [ 0x79 ]
, mapEntry ("yaadosquare") [ 0x334E ]
, mapEntry ("yabengali") [ 0x09AF ]
, mapEntry ("yacute") [ 0xFD ]
, mapEntry ("yadeva") [ 0x092F ]
, mapEntry ("yaekorean") [ 0x3152 ]
, mapEntry ("yagujarati") [ 0x0AAF ]
, mapEntry ("yagurmukhi") [ 0x0A2F ]
, mapEntry ("yahiragana") [ 0x3084 ]
, mapEntry ("yakatakana") [ 0x30E4 ]
, mapEntry ("yakatakanahalfwidth") [ 0xFF94 ]
, mapEntry ("yakorean") [ 0x3151 ]
, mapEntry ("yamakkanthai") [ 0x0E4E ]
, mapEntry ("yasmallhiragana") [ 0x3083 ]
, mapEntry ("yasmallkatakana") [ 0x30E3 ]
, mapEntry ("yasmallkatakanahalfwidth") [ 0xFF6C ]
, mapEntry ("yatcyrillic") [ 0x0463 ]
, mapEntry ("ycircle") [ 0x24E8 ]
, mapEntry ("ycircumflex") [ 0x0177 ]
, mapEntry ("ydieresis") [ 0xFF ]
, mapEntry ("ydotaccent") [ 0x1E8F ]
, mapEntry ("ydotbelow") [ 0x1EF5 ]
, mapEntry ("yeharabic") [ 0x064A ]
, mapEntry ("yehbarreearabic") [ 0x06D2 ]
, mapEntry ("yehbarreefinalarabic") [ 0xFBAF ]
, mapEntry ("yehfinalarabic") [ 0xFEF2 ]
, mapEntry ("yehhamzaabovearabic") [ 0x0626 ]
, mapEntry ("yehhamzaabovefinalarabic") [ 0xFE8A ]
, mapEntry ("yehhamzaaboveinitialarabic") [ 0xFE8B ]
, mapEntry ("yehhamzaabovemedialarabic") [ 0xFE8C ]
, mapEntry ("yehinitialarabic") [ 0xFEF3 ]
, mapEntry ("yehmedialarabic") [ 0xFEF4 ]
, mapEntry ("yehmeeminitialarabic") [ 0xFCDD ]
, mapEntry ("yehmeemisolatedarabic") [ 0xFC58 ]
, mapEntry ("yehnoonfinalarabic") [ 0xFC94 ]
, mapEntry ("yehthreedotsbelowarabic") [ 0x06D1 ]
, mapEntry ("yekorean") [ 0x3156 ]
, mapEntry ("yen") [ 0xA5 ]
, mapEntry ("yenmonospace") [ 0xFFE5 ]
, mapEntry ("yeokorean") [ 0x3155 ]
, mapEntry ("yeorinhieuhkorean") [ 0x3186 ]
, mapEntry ("yerahbenyomohebrew") [ 0x05AA ]
, mapEntry ("yerahbenyomolefthebrew") [ 0x05AA ]
, mapEntry ("yericyrillic") [ 0x044B ]
, mapEntry ("yerudieresiscyrillic") [ 0x04F9 ]
, mapEntry ("yesieungkorean") [ 0x3181 ]
, mapEntry ("yesieungpansioskorean") [ 0x3183 ]
, mapEntry ("yesieungsioskorean") [ 0x3182 ]
, mapEntry ("yetivhebrew") [ 0x059A ]
, mapEntry ("ygrave") [ 0x1EF3 ]
, mapEntry ("yhook") [ 0x01B4 ]
, mapEntry ("yhookabove") [ 0x1EF7 ]
, mapEntry ("yiarmenian") [ 0x0575 ]
, mapEntry ("yicyrillic") [ 0x0457 ]
, mapEntry ("yikorean") [ 0x3162 ]
, mapEntry ("yinyang") [ 0x262F ]
, mapEntry ("yiwnarmenian") [ 0x0582 ]
, mapEntry ("ymonospace") [ 0xFF59 ]
, mapEntry ("yod") [ 0x05D9 ]
, mapEntry ("yoddagesh") [ 0xFB39 ]
, mapEntry ("yoddageshhebrew") [ 0xFB39 ]
, mapEntry ("yodhebrew") [ 0x05D9 ]
, mapEntry ("yodyodhebrew") [ 0x05F2 ]
, mapEntry ("yodyodpatahhebrew") [ 0xFB1F ]
, mapEntry ("yohiragana") [ 0x3088 ]
, mapEntry ("yoikorean") [ 0x3189 ]
, mapEntry ("yokatakana") [ 0x30E8 ]
, mapEntry ("yokatakanahalfwidth") [ 0xFF96 ]
, mapEntry ("yokorean") [ 0x315B ]
, mapEntry ("yosmallhiragana") [ 0x3087 ]
, mapEntry ("yosmallkatakana") [ 0x30E7 ]
, mapEntry ("yosmallkatakanahalfwidth") [ 0xFF6E ]
, mapEntry ("yotgreek") [ 0x03F3 ]
, mapEntry ("yoyaekorean") [ 0x3188 ]
, mapEntry ("yoyakorean") [ 0x3187 ]
, mapEntry ("yoyakthai") [ 0x0E22 ]
, mapEntry ("yoyingthai") [ 0x0E0D ]
, mapEntry ("yparen") [ 0x24B4 ]
, mapEntry ("ypogegrammeni") [ 0x037A ]
, mapEntry ("ypogegrammenigreekcmb") [ 0x0345 ]
, mapEntry ("yr") [ 0x01A6 ]
, mapEntry ("yring") [ 0x1E99 ]
, mapEntry ("ysuperior") [ 0x02B8 ]
, mapEntry ("ytilde") [ 0x1EF9 ]
, mapEntry ("yturned") [ 0x028E ]
, mapEntry ("yuhiragana") [ 0x3086 ]
, mapEntry ("yuikorean") [ 0x318C ]
, mapEntry ("yukatakana") [ 0x30E6 ]
, mapEntry ("yukatakanahalfwidth") [ 0xFF95 ]
, mapEntry ("yukorean") [ 0x3160 ]
, mapEntry ("yusbigcyrillic") [ 0x046B ]
, mapEntry ("yusbigiotifiedcyrillic") [ 0x046D ]
, mapEntry ("yuslittlecyrillic") [ 0x0467 ]
, mapEntry ("yuslittleiotifiedcyrillic") [ 0x0469 ]
, mapEntry ("yusmallhiragana") [ 0x3085 ]
, mapEntry ("yusmallkatakana") [ 0x30E5 ]
, mapEntry ("yusmallkatakanahalfwidth") [ 0xFF6D ]
, mapEntry ("yuyekorean") [ 0x318B ]
, mapEntry ("yuyeokorean") [ 0x318A ]
, mapEntry ("yyabengali") [ 0x09DF ]
, mapEntry ("yyadeva") [ 0x095F ]
, mapEntry ("z") [ 0x7A ]
, mapEntry ("zaarmenian") [ 0x0566 ]
, mapEntry ("zacute") [ 0x017A ]
, mapEntry ("zadeva") [ 0x095B ]
, mapEntry ("zagurmukhi") [ 0x0A5B ]
, mapEntry ("zaharabic") [ 0x0638 ]
, mapEntry ("zahfinalarabic") [ 0xFEC6 ]
, mapEntry ("zahinitialarabic") [ 0xFEC7 ]
, mapEntry ("zahiragana") [ 0x3056 ]
, mapEntry ("zahmedialarabic") [ 0xFEC8 ]
, mapEntry ("zainarabic") [ 0x0632 ]
, mapEntry ("zainfinalarabic") [ 0xFEB0 ]
, mapEntry ("zakatakana") [ 0x30B6 ]
, mapEntry ("zaqefgadolhebrew") [ 0x0595 ]
, mapEntry ("zaqefqatanhebrew") [ 0x0594 ]
, mapEntry ("zarqahebrew") [ 0x0598 ]
, mapEntry ("zayin") [ 0x05D6 ]
, mapEntry ("zayindagesh") [ 0xFB36 ]
, mapEntry ("zayindageshhebrew") [ 0xFB36 ]
, mapEntry ("zayinhebrew") [ 0x05D6 ]
, mapEntry ("zbopomofo") [ 0x3117 ]
, mapEntry ("zcaron") [ 0x017E ]
, mapEntry ("zcircle") [ 0x24E9 ]
, mapEntry ("zcircumflex") [ 0x1E91 ]
, mapEntry ("zcurl") [ 0x0291 ]
, mapEntry ("zdot") [ 0x017C ]
, mapEntry ("zdotaccent") [ 0x017C ]
, mapEntry ("zdotbelow") [ 0x1E93 ]
, mapEntry ("zecyrillic") [ 0x0437 ]
, mapEntry ("zedescendercyrillic") [ 0x0499 ]
, mapEntry ("zedieresiscyrillic") [ 0x04DF ]
, mapEntry ("zehiragana") [ 0x305C ]
, mapEntry ("zekatakana") [ 0x30BC ]
, mapEntry ("zero") [ 0x30 ]
, mapEntry ("zeroarabic") [ 0x0660 ]
, mapEntry ("zerobengali") [ 0x09E6 ]
, mapEntry ("zerodeva") [ 0x0966 ]
, mapEntry ("zerogujarati") [ 0x0AE6 ]
, mapEntry ("zerogurmukhi") [ 0x0A66 ]
, mapEntry ("zerohackarabic") [ 0x0660 ]
, mapEntry ("zeroinferior") [ 0x2080 ]
, mapEntry ("zeromonospace") [ 0xFF10 ]
, mapEntry ("zerooldstyle") [ 0xF730 ]
, mapEntry ("zeropersian") [ 0x06F0 ]
, mapEntry ("zerosuperior") [ 0x2070 ]
, mapEntry ("zerothai") [ 0x0E50 ]
, mapEntry ("zerowidthjoiner") [ 0xFEFF ]
, mapEntry ("zerowidthnonjoiner") [ 0x200C ]
, mapEntry ("zerowidthspace") [ 0x200B ]
, mapEntry ("zeta") [ 0x03B6 ]
, mapEntry ("zhbopomofo") [ 0x3113 ]
, mapEntry ("zhearmenian") [ 0x056A ]
, mapEntry ("zhebrevecyrillic") [ 0x04C2 ]
, mapEntry ("zhecyrillic") [ 0x0436 ]
, mapEntry ("zhedescendercyrillic") [ 0x0497 ]
, mapEntry ("zhedieresiscyrillic") [ 0x04DD ]
, mapEntry ("zihiragana") [ 0x3058 ]
, mapEntry ("zikatakana") [ 0x30B8 ]
, mapEntry ("zinorhebrew") [ 0x05AE ]
, mapEntry ("zlinebelow") [ 0x1E95 ]
, mapEntry ("zmonospace") [ 0xFF5A ]
, mapEntry ("zohiragana") [ 0x305E ]
, mapEntry ("zokatakana") [ 0x30BE ]
, mapEntry ("zparen") [ 0x24B5 ]
, mapEntry ("zretroflexhook") [ 0x0290 ]
, mapEntry ("zstroke") [ 0x01B6 ]
, mapEntry ("zuhiragana") [ 0x305A ]
, mapEntry ("zukatakana") [ 0x30BA ]
]
|
# --- !Ups
ALTER TABLE CLIENT_CASE ADD COLUMN CASE_KEY varchar(10) NOT NULL;
ALTER TABLE CLIENT_CASE_VERSION ADD COLUMN CASE_KEY varchar(10) NOT NULL;
CREATE UNIQUE INDEX IDX_CLIENT_CASE_KEY ON CLIENT_CASE (CASE_KEY);
CREATE TABLE CLIENT_CASE_CLIENT (
CASE_ID uuid NOT NULL,
UNIVERSITY_ID VARCHAR(10) NOT NULL,
VERSION_UTC timestamp(3) NOT NULL,
CONSTRAINT PK_CASE_CLIENT PRIMARY KEY (CASE_ID, UNIVERSITY_ID),
CONSTRAINT FK_CASE_CLIENT FOREIGN KEY (CASE_ID) REFERENCES CLIENT_CASE (ID) ON DELETE RESTRICT
);
CREATE INDEX IDX_CASE_CLIENT ON CLIENT_CASE_CLIENT (CASE_ID);
CREATE INDEX IDX_CASE_CLIENT_UNIVERSITY_ID ON CLIENT_CASE_CLIENT (UNIVERSITY_ID);
CREATE TABLE CLIENT_CASE_CLIENT_VERSION (
CASE_ID uuid NOT NULL,
UNIVERSITY_ID VARCHAR(10) NOT NULL,
VERSION_UTC timestamp(3) NOT NULL,
VERSION_OPERATION char(6) NOT NULL,
VERSION_TIMESTAMP_UTC timestamp(3) NOT NULL,
CONSTRAINT PK_CASE_CLIENT_VERSION PRIMARY KEY (CASE_ID, UNIVERSITY_ID, VERSION_TIMESTAMP_UTC)
);
CREATE INDEX IDX_CASE_CLIENT_VERSION ON CLIENT_CASE_CLIENT_VERSION (CASE_ID, UNIVERSITY_ID, VERSION_UTC);
# --- !Downs
ALTER TABLE CLIENT_CASE DROP COLUMN CASE_KEY;
ALTER TABLE CLIENT_CASE_VERSION DROP COLUMN CASE_KEY;
DROP TABLE CLIENT_CASE_CLIENT_VERSION;
DROP TABLE CLIENT_CASE_CLIENT;
|
<filename>SQLSteward.sql
PRINT 'SQL server evaluation script @ 24 May 2019 <EMAIL> ' + NCHAR(65021)
IF NOT EXISTS (SELECT * FROM sys.objects WHERE type = 'P' AND OBJECT_ID = OBJECT_ID('dbo.sqlsteward'))
exec('CREATE PROCEDURE [dbo].[sqlsteward] AS BEGIN SET NOCOUNT ON; END')
GO
/* Sample command
EXEC [dbo].[sqlsteward]
@TopQueries = 50
, @FTECost = 60000
, @ShowQueryPlan = 1
, @PrepForExport = 1
, @Export = 'Screen'
, @ExportSchema = 'dbo'
, @ExportDBName = 'master'
, @ExportTableName = 'sqlsteward_output'
, @ExportCleanupDays = 180
, @ShowMigrationRelatedOutputs = 1
*/
ALTER PROCEDURE [dbo].[sqlsteward]
/*@TopQueries. How many queries need to be looked at, TOP xx*/
@TopQueries TINYINT = 50
/*@FTECost. Average price in $$$ that you pay someone at your company every year.*/
, @FTECost MONEY = 70000
/*@MinExecutionCount. This can go to 0 for more details, but first attend to often used queries. Run this with 0 before making any big decisions*/
, @MinExecutionCount TINYINT = 1
/*@ShowQueryPlan. Set to 1 to include the Query plan in the output*/
, @ShowQueryPlan TINYINT = 1
/*@PrepForExport. When the intent of this script is to use this for some type of hocus-pocus magic metrics, set this to 1*/
, @PrepForExport TINYINT = 1
/*@ShowMigrationRelatedOutputs. When you need to show migration stuff, like possible breaking connections and DMA script outputs, set to 1 to show information*/
, @ShowMigrationRelatedOutputs TINYINT = 0
/*Screen / Table*/
, @Export NVARCHAR(10) = 'Table'
, @ShowOnScreenWhenResultsToTable TINYINT = 1
, @ExportSchema NVARCHAR(10) = 'dbo'
, @ExportDBName NVARCHAR(20) = 'master'
, @ExportTableName NVARCHAR(20) = 'sqlsteward_output'
, @ExportCleanupDays INT = 180
/* @PrintMatrixHeader. Added to turn it off since some control chars coming through stopping a copy/paste from the messages window in SSMS */
, @PrintMatrixHeader TINYINT = 0
WITH RECOMPILE
AS
BEGIN
DECLARE @License NVARCHAR(4000)
SET @License = '----------------
MIT License
Copyright (c) ' + CONVERT(VARCHAR(4),DATEPART(YEAR,GETDATE())) + ' <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
----------------
'
SET NOCOUNT ON;
/* Guidelines:
1. Each declare on a new line
2. Each column on a new line
3. "," in from of new lines
4. All (table columns) have ( and ) in new lines with tab indent
5. All ends with ";"
6. All comments in / * * / not --
7. All descriptive comments above DECLAREs
Comments can also be in SET @comment = ''
8. All Switches are 0=off and 1=on and TINYINT type
9. SELECT -option- <first column>
, <column>
FROM.. where more than 1 column is returned, or whatever reads better
OPTION (RECOMPILE)
Section:
DECLARE section variables
--------
Do stuff
*/
DECLARE @Result_Good NVARCHAR(2);
DECLARE @Result_NA NVARCHAR(2);
DECLARE @Result_Warning NVARCHAR(2);
DECLARE @Result_Bad NVARCHAR(2);
DECLARE @Result_ReallyBad NVARCHAR(2);
DECLARE @Result_YourServerIsDead NVARCHAR(2);
SET @Result_Good = NCHAR(10004);
SET @Result_NA = NCHAR(9940);
SET @Result_Warning = NCHAR(9888);
SET @Result_Bad = NCHAR(10006);
SET @Result_ReallyBad = NCHAR(9763);
SET @Result_YourServerIsDead = NCHAR(9760);
IF (@PrintMatrixHeader <> 0)
BEGIN
DECLARE @matrixthis BIGINT ;
SET @matrixthis = 0;
DECLARE @matrixthisline INT ;
SET @matrixthisline= 0;
DECLARE @sliverofawesome NVARCHAR(200);
DECLARE @thischar NVARCHAR(1);
WHILE @matrixthis < 25
BEGIN
SET @matrixthisline = 0;
SET @sliverofawesome = '';
WHILE @matrixthisline < 90
BEGIN
SET @thischar = NCHAR(CONVERT(INT,RAND() * 1252));
IF LEN(@thischar) = 0 OR RAND() < 0.8
SET @thischar = ' ';
SET @sliverofawesome = @sliverofawesome + @thischar;
SET @matrixthisline = @matrixthisline + 1;
END
PRINT (@sliverofawesome) ;
SET @matrixthis = @matrixthis + 1;
WAITFOR DELAY '00:00:00.011';
END
DECLARE @c_r AS CHAR(2) ;
SET @c_r = CHAR(13) + CHAR(10);
PRINT REPLACE(REPLACE(REPLACE(REPLACE(''+@c_r+' [ ....,,:,,....[[ '+@c_r+'[ ,???????????????????:.[ '+@c_r+'[ .???????????????????????,[ '+@c_r+'s=. ??????&&&$$??????. .7s '+@c_r+'s~$.. ...&&&&&... ..7Is '+@c_r+'s~&$+....[[.. =7777Is '+@c_r+'s~&&&&$$7I777Iv7777I[[ '+@c_r+'s~&&&&$$Ivv7777Is '+@c_r+'s~&$$... &$.. ..777?..vIs '+@c_r+'s~&$ &$$. 77?..77? .vIs '+@c_r+'s~&$. .&$ $I77= 7? .vIs '+@c_r+'s~&$$,. .$$ .$I777..7? .vIs '+@c_r+'s~&&$+ .$ ~I77. ,7? .vIs '+@c_r+'s~&$.. & ... :77? ....77Is '+@c_r+'s~&&&&$$I:..vv7I[ '+@c_r+'s~&&&&$$Ivv7777Is '+@c_r+'s.&&&&$$Ivv7777.s '+@c_r+'s .&&&&$Ivv777.['+@c_r+'[ ..7&&&Ivv..[ '+@c_r+'[[........... ..[[ ', '&','$$$'),'v', '77777'),'[', ' '),'s',' ')
PRINT REPLACE(REPLACE(REPLACE(REPLACE('.m__._. _.m__. __.__.. _.. _. _. m_..m_.m_. m.m_.m__ '+@c_r+' |_. _|g g| m_g.\/.i / \. | \ g / mi/ m|i_ \ |_ _|i_ \|_. _|'+@c_r+'. g.g_gi_i g\/g./ _ \.i\g \m \ g..g_) g g |_) g i'+@c_r+'. g.i_.|gm.g.g / m \ g\.im) |gm i_ <.g i__/.g.'+@c_r+'. |_i|_g_||m__g_i|_|/_/. \_\|_| \_gm_/.\m_||_| \_\|m||_i. |_i'+@c_r+'........................................... ','i','|.'),'.',' '),'m','___'),'g','| |')
END
PRINT @License;
PRINT 'Let''s do this!';
/*@ShowWarnings = 0 > Only show warnings */
DECLARE @ShowWarnings TINYINT ;
SET @ShowWarnings = 0;
/*Script wide variables*/
DECLARE @DaysUptime NUMERIC(23,2);
DECLARE @dynamicSQL NVARCHAR(4000) ;
SET @dynamicSQL = N'';
DECLARE @MinWorkerTime BIGINT ;
SET @MinWorkerTime = 0.01 * 1000000;
DECLARE @MinChangePercentage MONEY;
DECLARE @DoStatistics MONEY;
SET @MinChangePercentage = 0.1;
DECLARE @LeftText INT ;
SET @LeftText = 50; /*The length that you want to trim text*/
DECLARE @oldestcachequery DATETIME ;
DECLARE @minutesSinceRestart BIGINT;
DECLARE @CPUcount INT;
DECLARE @CPUsocketcount INT;
DECLARE @CPUHyperthreadratio MONEY;
DECLARE @TempDBFileCount INT;
DECLARE @lastservericerestart DATETIME;
DECLARE @DaysOldestCachedQuery MONEY;
DECLARE @CachevsUpdate MONEY;
DECLARE @Databasei_Count INT;
DECLARE @Databasei_Max INT;
DECLARE @DatabaseName SYSNAME;
DECLARE @DatabaseState TINYINT;
DECLARE @RecoveryModel TINYINT;
DECLARE @comment NVARCHAR(MAX);
DECLARE @StartTest DATETIME
DECLARE @EndTest DATETIME;
DECLARE @ThisistoStandardisemyOperatorCostMate INT;
DECLARE @secondsperoperator FLOAT;
DECLARE @totalMemoryGB MONEY
DECLARE @AvailableMemoryGB MONEY
DECLARE @UsedMemory MONEY;
DECLARE @VMType NVARCHAR(200)
DECLARE @ServerType NVARCHAR(20);
DECLARE @MaxRamServer INT,@SQLVersion tinyint;
DECLARE @ts BIGINT;
DECLARE @Kb FLOAT;
DECLARE @PageSize FLOAT;
DECLARE @VLFcount INT;
DECLARE @starttime DATETIME;
DECLARE @ErrorSeverity int;
DECLARE @ErrorState int;
DECLARE @ErrorMessage NVARCHAR(4000);
/*Performance section variables*/
DECLARE @cnt INT;
DECLARE @record_count INT;
DECLARE @dbid INT;
DECLARE @objectid INT;
DECLARE @cmd nvarchar(MAX);
DECLARE @grand_total_worker_time FLOAT ;
DECLARE @grand_total_IO FLOAT ;
DECLARE @evaldate DATETIME;
DECLARE @TotalIODailyWorkload MONEY;
SET @evaldate = GETDATE();
SET @starttime = GETDATE()
SELECT @SQLVersion = @@MicrosoftVersion / 0x01000000 OPTION (RECOMPILE)-- Get major version
DECLARE @sqlrun NVARCHAR(4000), @rebuildonline NVARCHAR(30), @isEnterprise INT, @i_Count INT, @i_Max INT;
DECLARE @FileSize TABLE
(
DatabaseName sysname
, [FileName] NVARCHAR(4000) NULL
, FileSize BIGINT NULL
, FileGroupName NVARCHAR(4000)NULL
, LogicalName NVARCHAR(4000) NULL
, maxsize MONEY NULL
, growth MONEY NULL
);
DECLARE @FileStats TABLE
(
FileID INT
, FileGroup INT NULL
, TotalExtents INT NULL
, UsedExtents INT NULL
, LogicalName NVARCHAR(4000) NULL
, FileName NVARCHAR(4000) NULL
);
DECLARE @LogSpace TABLE
(
DatabaseName NVARCHAR(500) NULL
, LogSize FLOAT NULL
, SpaceUsedPercent FLOAT NULL
, Status bit NULL
);
IF OBJECT_ID('tempdb..#NeverUsedIndex') IS NOT NULL
DROP TABLE #NeverUsedIndex;
CREATE TABLE #NeverUsedIndex
(
DB NVARCHAR(250)
,Consideration NVARCHAR(50)
,TableName NVARCHAR(50)
,TypeDesc NVARCHAR(50)
,IndexName NVARCHAR(250)
,Updates BIGINT
,last_user_scan DATETIME
,last_user_seek DATETIME
)
IF OBJECT_ID('tempdb..#HeapTable') IS NOT NULL
DROP TABLE #HeapTable;
CREATE TABLE #HeapTable
(
DB NVARCHAR(250)
, [schema] NVARCHAR(250)
, [table] NVARCHAR(250)
, [rows] BIGINT
, user_seeks BIGINT
, user_scans BIGINT
, user_lookups BIGINT
, user_updates BIGINT
, last_user_seek DATETIME
, last_user_scan DATETIME
, last_user_lookup DATETIME
);
IF OBJECT_ID('tempdb..#LogSpace') IS NOT NULL
DROP TABLE #LogSpace;
CREATE TABLE #LogSpace
(
DatabaseName sysname NULL
, LogSize FLOAT NULL
, SpaceUsedPercent FLOAT NULL
, Status bit NULL
, VLFCount INT NULL
);
IF OBJECT_ID('tempdb..#Action_Statistics') IS NOT NULL
DROP TABLE #Action_Statistics;
CREATE TABLE #Action_Statistics
(
Id INT IDENTITY(1,1)
, DBname NVARCHAR(100)
, TableName NVARCHAR(100)
, StatsID TINYINT
, StatisticsName NVARCHAR(500)
, SchemaName NVARCHAR(100)
, ModificationCount BIGINT
, LastUpdated DATETIME
, [Rows] BIGINT
, [ModPerc] MONEY
);
IF OBJECT_ID('tempdb..#MissingIndex') IS NOT NULL
DROP TABLE #MissingIndex;
CREATE TABLE #MissingIndex
(
DB NVARCHAR(250)
, magic_benefit_number FLOAT
, [Table] NVARCHAR(2000)
, ChangeIndexStatement NVARCHAR(4000)
, equality_columns NVARCHAR(4000)
, inequality_columns NVARCHAR(4000)
, included_columns NVARCHAR(4000)
, [BeingClever] NVARCHAR(4000)
);
/*Note, if you add columns to this table, please make sure to add them in the ADD Column clause at the bottom of the script where it writes outputs to a table.*/
IF OBJECT_ID('tempdb..#output_man_script') IS NOT NULL
DROP TABLE #output_man_script;
CREATE TABLE #output_man_script
(
evaldate DATETIME DEFAULT GETDATE()
, domain NVARCHAR(505) DEFAULT DEFAULT_DOMAIN()
, SQLInstance NVARCHAR(505) DEFAULT @@SERVERNAME
, SectionID TINYINT NULL
, Section NVARCHAR(4000)
, Summary NVARCHAR(4000)
, Severity NVARCHAR(5)
, Details NVARCHAR(4000)
, QueryPlan XML NULL
, HoursToResolveWithTesting MONEY NULL
, ID INT IDENTITY(1,1)
)
IF OBJECT_ID('tempdb..#ConfigurationDefaults') IS NOT NULL
DROP TABLE #ConfigurationDefaults;
CREATE TABLE #ConfigurationDefaults
(
name NVARCHAR(128) ,
DefaultValue BIGINT,
CheckID INT
);
IF OBJECT_ID('tempdb..#db_sps') IS NOT NULL
DROP TABLE #db_sps;
CREATE TABLE #db_sps
(
[dbname] NVARCHAR(500)
, [SP Name] NVARCHAR(4000)
, [TotalLogicalWrites] BIGINT
, [AvgLogicalWrites] BIGINT
, execution_count BIGINT
, [Calls/Second] INT
, [total_elapsed_time] BIGINT
, [avg_elapsed_time] BIGINT
, cached_time DATETIME
);
IF OBJECT_ID('tempdb..#querystats') IS NOT NULL
DROP TABLE #querystats
CREATE TABLE #querystats
(
Id INT IDENTITY(1,1)
, [execution_count] [bigint] NOT NULL
, [total_logical_reads] [bigint] NOT NULL
, [Total_MBsRead] [money] NULL
, [total_logical_writes] [bigint] NOT NULL
, [Total_MBsWrite] [money] NULL
, [total_worker_time] [bigint] NOT NULL
, [total_elapsed_time_in_S] [money] NULL
, [total_elapsed_time] [money] NULL
, [last_execution_time] [datetime] NOT NULL
, [plan_handle] [varbinary](64) NOT NULL
, [sql_handle] [varbinary](64) NOT NULL
);
IF OBJECT_ID('tempdb..#notrust') IS NOT NULL
DROP TABLE #notrust
CREATE TABLE #notrust
(
KeyType NVARCHAR(20)
, Tablename NVARCHAR(500)
, KeyName NVARCHAR(500)
, DBCCcommand NVARCHAR(2000)
, Fix NVARCHAR(2000)
)
IF OBJECT_ID('tempdb..#whatsets') IS NOT NULL
DROP TABLE #whatsets
CREATE TABLE #whatsets
(
DBname NVARCHAR(500)
, [compatibility_level] NVARCHAR(10)
, [SETs] NVARCHAR(500)
)
IF OBJECT_ID('tempdb..#dbccloginfo') IS NOT NULL
DROP TABLE #dbccloginfo
CREATE TABLE #dbccloginfo
(
id INT IDENTITY(1,1)
)
IF OBJECT_ID('tempdb..#SQLVersionsDump') IS NOT NULL
DROP TABLE #SQLVersionsDump
CREATE TABLE #SQLVersionsDump
(
ID INT IDENTITY(0,1)
, Output NVARCHAR(250)
)
IF OBJECT_ID('tempdb..#SQLVersions') IS NOT NULL
DROP TABLE #SQLVersions
CREATE TABLE #SQLVersions
(
Id TINYINT
, [Products Released] NVARCHAR(250)
, [Lifecycle Start Date] NVARCHAR(250)
, [Mainstream Support End Date] NVARCHAR(250)
, [Extended Support End Date] NVARCHAR(250)
, [Service Pack Support End Date] NVARCHAR(250)
)
IF CONVERT(TINYINT,@SQLVersion) >= 11 -- post-SQL2012
BEGIN
SET @dynamicSQL = 'Alter table #dbccloginfo Add [RecoveryUnitId] int'
EXEC sp_executesql @dynamicSQL;
END
Alter table #dbccloginfo Add fileid smallint
Alter table #dbccloginfo Add file_size BIGINT
Alter table #dbccloginfo Add start_offset BIGINT
Alter table #dbccloginfo Add fseqno int
Alter table #dbccloginfo Add [status] tinyint
Alter table #dbccloginfo Add parity tinyint
Alter table #dbccloginfo Add create_lsn numeric(25,0)
DECLARE @msversion TABLE([Index] INT, Name NVARCHAR(50), [Internal_Value] NVARCHAR(50), [Character_Value] NVARCHAR(250))
INSERT @msversion
EXEC xp_msver /*Rather useful this one*/
--DECLARE @quicksql NVARCHAR(500)
--SET @quicksql = N'EXEC Get_xp_msver '
--
--EXEC sp_executesql @quicksql
--SELECT CONVERT(MONEY,LEFT(Character_Value,3)) FROM @msversion WHERE Name = 'WindowsVersion'
DECLARE @value NVARCHAR(64);
DECLARE @key NVARCHAR(512);
DECLARE @WindowsVersion NVARCHAR(50);
DECLARE @PowerPlan NVARCHAR(20)
SET @key = 'SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes';
SELECT @WindowsVersion = CONVERT(MONEY,LEFT(Character_Value,3)) FROM @msversion WHERE Name = 'WindowsVersion'
/*CASE WHEN windows_release IN ('6.3','10.0') AND (@@VERSION LIKE '%Build 10586%' OR @@VERSION LIKE '%Build 14393%')THEN '10.0' ELSE CONVERT(VARCHAR(5),windows_release) END
FROM sys.dm_os_windows_info (NOLOCK);*/
IF CONVERT(DECIMAL(3,1), @WindowsVersion) >= 6.0
BEGIN
DECLARE @cpu_name NVARCHAR(150)
DECLARE @cpu_ghz NVARCHAR(50)
EXEC master.sys.xp_regread @rootkey = 'HKEY_LOCAL_MACHINE',
@key = 'HARDWARE\DESCRIPTION\System\CentralProcessor\0',
@value_name = 'ProcessorNameString',
@value = @cpu_name OUTPUT;
SELECT @cpu_ghz = CASE WHEN LEFT(@cpu_name,3) = 'AMD' THEN 'AMD' ELSE RIGHT(@cpu_name, LEN(@cpu_name)- PATINDEX('%@ %', @cpu_name) -1) END
EXEC master..xp_regread
@rootkey = 'HKEY_LOCAL_MACHINE',
@key = @key,
@value_name = 'ActivePowerScheme',
@value = @value OUTPUT;
IF @value = '8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c'
SET @PowerPlan = 'High-Performance'
IF @value <> '8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c'
SET @PowerPlan = '!Not Optimal! Check Power Options'
RAISERROR (N'Power Options checked',0,1) WITH NOWAIT;
PRINT @PowerPlan
END
SET @rebuildonline = 'OFF'; /* Assume this is not Enterprise, we will test in the next line and if it is , woohoo. */
SELECT @isEnterprise = PATINDEX('%enterprise%',@@Version) OPTION (RECOMPILE);
IF (@isEnterprise > 0)
BEGIN
SET @rebuildonline = 'ON'; /*Can also use CAST(SERVERPROPERTY('EngineEdition') AS INT), thanks http://www.brentozar.com/ */
END
SELECT @CPUcount = cpu_count
, @CPUsocketcount = [cpu_count] / [hyperthread_ratio]
, @CPUHyperthreadratio = [hyperthread_ratio]
FROM sys.dm_os_sys_info;
SELECT @TempDBFileCount = COUNT(*)
FROM [tempdb].sys.database_files
WHERE state = 0 /*Online*/ AND type = 0 /*Rows*/
INSERT #output_man_script (SectionID,Section,Summary, Details) SELECT 0,'@' + CONVERT(VARCHAR(20),GETDATE(),120),'------','------'
INSERT #output_man_script (SectionID,Section,Summary)
SELECT 0,'Domain',DEFAULT_DOMAIN()
INSERT #output_man_script (SectionID,Section,Summary)
SELECT 0,'Server', @@SERVERNAME
INSERT #output_man_script (SectionID,Section,Summary)
SELECT 0,'User',CURRENT_USER
INSERT #output_man_script (SectionID,Section,Summary)
SELECT 0,'Logged in', SYSTEM_USER
INSERT #output_man_script (SectionID,Section,Summary, Severity)
SELECT 0, 'Power Plan', @PowerPlan, CASE WHEN @PowerPlan = 'High-Performance' THEN @Result_Good ELSE @Result_Warning END
IF @CPUHyperthreadratio <> @CPUcount
BEGIN
INSERT #output_man_script (SectionID,Section,Summary, Severity)
SELECT 0, 'Bad CPU balance', '['+REPLICATE('#', CONVERT(MONEY,(@CPUcount / @CPUHyperthreadratio))) +'] CPU Sockets ['+REPLICATE('+', CONVERT(MONEY,(@CPUcount))) +'] CPUs', @Result_Warning
END
IF @TempDBFileCount >= @CPUsocketcount AND @CPUsocketcount > 1
BEGIN
INSERT #output_man_script (SectionID,Section,Summary, Severity, Details )
SELECT 0, +'Interesting TempDB file count'
,'['+REPLICATE('#', @CPUsocketcount) +'] CPU Sockets ['+REPLICATE('*', CONVERT(MONEY,(@TempDBFileCount))) +'] TempDB Files'
,@Result_Warning, 'Migth lead to slow disk latency on the TempDB files'
END
IF EXISTS(SELECT 1 FROM sys.dm_os_waiting_tasks
Where wait_type Like 'PAGE%LATCH_%'
And resource_description Like '2:%')
BEGIN
INSERT #output_man_script (SectionID,Section,Summary, Severity, Details )
Select 0, 'Testing latches in TempDB', 'Session: ' + CONVERT(VARCHAR(10),ISNULL(session_id,''))
+ '; Wait Type: ' + CONVERT(VARCHAR(50), ISNULL(wait_type,''))
+ '; Wait Duraion: ' + CONVERT(VARCHAR(25), ISNULL(wait_duration_ms,''))
+ '; Blocking SPID: ' + CONVERT(VARCHAR(20), ISNULL(blocking_session_id,''))
+ '; Description: ' + CONVERT(VARCHAR(200), ISNULL(resource_description,''))
, Case
When Cast(Right(resource_description, Len(resource_description) - Charindex(':', resource_description, 3)) As Int) - 1 % 8088 = 0 Then @Result_Warning
When Cast(Right(resource_description, Len(resource_description) - Charindex(':', resource_description, 3)) As Int) - 2 % 511232 = 0 Then @Result_Warning
When Cast(Right(resource_description, Len(resource_description) - Charindex(':', resource_description, 3)) As Int) - 3 % 511232 = 0 Then @Result_Warning
Else @Result_Good
End
, CONVERT(VARCHAR(200), Case
When Cast(Right(resource_description, Len(resource_description) - Charindex(':', resource_description, 3)) As Int) - 1 % 8088 = 0 Then 'Is PFS Page'
When Cast(Right(resource_description, Len(resource_description) - Charindex(':', resource_description, 3)) As Int) - 2 % 511232 = 0 Then 'Is GAM Page'
When Cast(Right(resource_description, Len(resource_description) - Charindex(':', resource_description, 3)) As Int) - 3 % 511232 = 0 Then 'Is SGAM Page'
Else 'Is Not PFS, GAM, or SGAM page'
End
)
From sys.dm_os_waiting_tasks
Where wait_type Like 'PAGE%LATCH_%'
And resource_description Like '2:%'
END
DECLARE @xp_errorlog TABLE(LogDate DATETIME, ProcessInfo NVARCHAR(250), Text NVARCHAR(500))
INSERT @xp_errorlog
EXEC sys.xp_readerrorlog 0, 1, N'locked pages'
INSERT @xp_errorlog
EXEC sys.xp_readerrorlog 0, 1, N'Database Instant File Initialization: enabled';
IF EXISTS ( SELECT * FROM @xp_errorlog WHERE [Text] LIKE '%locked pages%')
BEGIN
INSERT #output_man_script (SectionID,Section,Summary,Severity)
SELECT 0,'Locked Pages in Memory','Consider changing. This was old best practice, not valid for VMs or post 2008.',@Result_Warning
END
IF NOT EXISTS ( SELECT * FROM @xp_errorlog WHERE [Text] LIKE '%File Initialization%')
BEGIN
INSERT #output_man_script (SectionID,Section,Summary,Severity)
SELECT 0,'Instant File Initialization is OFF','Consider enabling this. Speeds up database data file growth.',@Result_Warning
END
/*----------------------------------------
--Check for current service account
----------------------------------------*/
DECLARE @SQLsn NVARCHAR(128);
EXEC master.dbo.xp_regread
'HKEY_LOCAL_MACHINE',
'SYSTEM\CurrentControlSet\services\MSSQLSERVER',
'ObjectName',
@SQLsn OUTPUT;
INSERT #output_man_script (SectionID,Section,Summary)
SELECT 0,'SQL Service Account',@SQLsn
DECLARE @Agentsn NVARCHAR(128);
EXEC master.dbo.xp_regread
'HKEY_LOCAL_MACHINE',
'SYSTEM\CurrentControlSet\services\SQLSERVERAGENT',
'ObjectName',
@Agentsn OUTPUT;
INSERT #output_man_script (SectionID,Section,Summary)
SELECT 0,'SQL Service Agent Account',@Agentsn
/*----------------------------------------
--Check for current supported build of SQL server
----------------------------------------*/
/* To DO .. use powershell
SELECT @@VERSION
Microsoft%20SQL%20Server%202012%20Enterprise%20Service%20Pack%201
(SP1) - 11.0.3339.0 (X64)
Jan 14 2013 19:02:10
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
https://support.microsoft.com/api/lifecycle/GetProductsLifecycle?query=%7B"names":%5B"Microsoft%2520SQL%2520Server%25202012%2520Service%2520Pack"%5D,"years":"0","gdsId":0,"export":true%7D
*/
DECLARE @CurrentBuild NVARCHAR(50)
SELECT @CurrentBuild = [Character_Value] FROM @msversion
WHERE [Name] = 'ProductVersion'
DECLARE @pstext NVARCHAR(4000)
/* <NAME>
SET @pstext = '$h=@(''SQL Server'',''Service Pack'',''Cumulative Update'',''Release Date'',''Build'', ''Support Ends'');$o=@();'
SET @pstext = @pstext + '$vs=(''2016'',''2014'',''2012'',''2008'',''2008-r2'',''2017'');foreach($v in $vs){'
SET @pstext = @pstext + '$url="https://sqlserverupdates.com/sql-server-$v-updates/";$AllProtocols = [System.Net.SecurityProtocolType]''Ssl3,Tls, Tls11, Tls12'';[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols;'
SET @pstext = @pstext + '[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true};$webclient = new-object System.Net.WebClient;$webClient.UseDefaultCredentials = $true;'
SET @pstext = @pstext + '$Raw = $webclient.DownloadString("$url");'
SET @pstext = @pstext + '$RawCut1 = $Raw.Indexof(''table-responsive'');'
SET @pstext = @pstext + '$RawCut = $Raw.Substring($RawCut1, $Raw.Length - $RawCut1);'
SET @pstext = @pstext + '$RawCut2 = $RawCut.Indexof(''/table'');'
SET @pstext = @pstext + '$RawCut3 = $RawCut.Substring($0, $RawCut2);'
SET @pstext = @pstext + '$rows = $RawCut3 -split ''<tr>'' -replace ''`n|`r'','''';'
SET @pstext = @pstext + 'foreach($row in $rows){'
SET @pstext = @pstext + '$tr = $row.replace(''<td >'',''<td>'').replace(''<th >'',''<th>'').replace(''–'','''').Replace(''<strong>'','''').Replace(''</strong>'','''').Replace(''`n'','' '').TrimStart();'
SET @pstext = @pstext + 'if($tr.IndexOf(''table class'') -gt 0 -OR $tr.IndexOf(''</th>'') -gt 0 -OR $tr.IndexOf(''<table'') -gt 0){}'
SET @pstext = @pstext + 'else{$obj=New-Object PSObject;$i=1;foreach($column in $tr -split ''</td>''){'
SET @pstext = @pstext + 'if($v -like ''2008*'' -AND $i -eq 1){$i++};$ch=$h[$i];$cell=$column.Replace(''<td> '','''').Replace('' '','''').Replace(''<td>'','''');'
SET @pstext = @pstext + '$c=$cell -replace ''`n|`r'';'
SET @pstext = @pstext + 'if($c.indexof(''</a>'') -gt 0 )'
SET @pstext = @pstext + '{if($c.Indexof(''<a'') -gt 0){'
SET @pstext = @pstext + '$c=$c.Substring(0,$c.Indexof(''<a'')-1) + $c.Substring($c.Indexof(''>'')+1, $c.Indexof(''</a>'')-$c.Indexof(''>'')-1)};'
SET @pstext = @pstext + 'if($c.Indexof(''<a'') -eq 0){'
SET @pstext = @pstext + '$c=$c.Substring($c.Indexof(''>'')+1, $c.Indexof(''</a>'')-$c.Indexof(''>'')-1)}};$c=$c.Replace(''('','''').Replace('')'','''');'
SET @pstext = @pstext + 'if($ch){$c.Replace(''`n'' ,'' '').TrimStart();}$i++}}}}'
SET @pstext=REPLACE(REPLACE(@pstext,'"','"""'),';;',';')
SET @pstext='powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command "' + @pstext + '" '
INSERT INTO #SQLVersionsDump
EXEC xp_cmdshell @pstext
INSERT INTO #SQLVersions ([Id], [Service Pack],[Cumulative Update],[Release Date],[Build],[Support Ends])
SELECT
T1.ID / 5 + 1 [Id]
, T1.Output [Service Pack]
, T2.Output [Cumulative Update]
, T3.Output [Release Date]
, T4.Output [Build]
, T5.Output [Support Ends]
FROM #SQLVersionsDump T1
LEFT OUTER JOIN #SQLVersionsDump T2 ON T2.Id -1 = T1.ID
LEFT OUTER JOIN #SQLVersionsDump T3 ON T3.Id -2 = T1.ID
LEFT OUTER JOIN #SQLVersionsDump T4 ON T4.Id -3 = T1.ID
LEFT OUTER JOIN #SQLVersionsDump T5 ON T5.Id -4 = T1.ID
WHERE T1.ID % 5 = 0
*/
/*What does Microsoft say about support*/
DECLARE @SQLproductlevel NVARCHAR(50)
DECLARE @SQLVersionText NVARCHAR(200)
SELECT @SQLproductlevel = CONVERT(VARCHAR(50),SERVERPROPERTY ('productlevel'))
IF @SQLproductlevel = 'RTM'
SET @SQLproductlevel = '';
DECLARE @TrimVersion NVARCHAR(250)
SET @TrimVersion = RTRIM(LTRIM(REPLACE(LEFT(@@VERSION,PATINDEX('% - %',@@VERSION)), 'Microsoft SQL Server ','')))
SELECT @SQLVersionText = 'Microsoft SQL Server ' +
CASE
WHEN CHARINDEX('(',@TrimVersion) > 0
THEN LEFT(@TrimVersion,CHARINDEX('(',@TrimVersion)-2)
ELSE @TrimVersion
END
+ REPLACE( @SQLproductlevel ,'SP',' Service Pack ')
DECLARE @URLofAwesomeUpdateInformation NVARCHAR(500);
--https://support.microsoft.com/api/lifecycle/GetProductsLifecycle?query=%7B"names":%5B"Microsoft%2520SQL%2520Server%25202012%2520Service%2520Pack%25203"%5D,"years":"0","gdsId":0,"export":true%7D
SET @URLofAwesomeUpdateInformation = 'https://support.microsoft.com/api/lifecycle/GetProductsLifecycle?query=%7B%22names%22:%5B%22' + REPLACE(@SQLVersionText,' ' ,'%2520') + '%22%5D,%22years%22:%220%22,%22gdsId%22:0,%22export%22:true%7D'
SET @pstext = '$url=''' + @URLofAwesomeUpdateInformation + ''';$output =''C:\temp\sqlversiontest.csv'' ;'
SET @pstext = @pstext + 'Out-File -FilePath $output ;'
SET @pstext = @pstext + '$Acl = Get-Acl $output;'
SET @pstext = @pstext + '$Ar = New-Object system.security.accesscontrol.filesystemaccessrule(''everyone'',''FullControl'',''Allow'');'
SET @pstext = @pstext + '$Acl.SetAccessRule($Ar);'
SET @pstext = @pstext + 'Set-Acl $output $Acl;'
SET @pstext = @pstext + ';$Download = (new-object System.Net.WebClient).DownloadFile($url, $output);'
SET @pstext = @pstext + '$new = Import-Csv $output; foreach($r in $new){'
SET @pstext = @pstext + '$r.''Products Released''; $r.''Lifecycle Start Date''; $r.''Mainstream Support End Date'';$r.''Extended Support End Date'';$r.''Service Pack Support End Date''};'
--SET @pstext=REPLACE(REPLACE(@pstext,'"','""'),';;',';')
SET @pstext='powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command "' + @pstext + '" '
INSERT INTO #SQLVersionsDump
EXEC xp_cmdshell @pstext
INSERT INTO #SQLVersions ([Id], [Products Released],[Lifecycle Start Date],[Mainstream Support End Date],[Extended Support End Date],[Service Pack Support End Date])
SELECT
T1.ID / 5 + 1 [Id]
, T1.Output [Products Released]
, T2.Output [Lifecycle Start Date]
, CASE WHEN LEFT(T3.Output,3) = 'Not' THEN NULL ELSE T3.Output END [Mainstream Support End Date]
, CASE WHEN LEFT(T4.Output,3) = 'Not' THEN NULL ELSE T4.Output END [Extended Support End Date]
, CASE WHEN LEFT(T5.Output,3) = 'Not' THEN NULL ELSE T5.Output END [Service Pack Support End Date]
FROM #SQLVersionsDump T1
LEFT OUTER JOIN #SQLVersionsDump T2 ON T2.ID -1 = T1.ID
LEFT OUTER JOIN #SQLVersionsDump T3 ON T3.ID -2 = T1.ID
LEFT OUTER JOIN #SQLVersionsDump T4 ON T4.ID -3 = T1.ID
LEFT OUTER JOIN #SQLVersionsDump T5 ON T5.ID -4 = T1.ID
WHERE T1.ID % 5 = 0
AND T1.Output IS NOT NULL
/*This step requires administrative permissions on the local machine for SQL server Service account, at least it does not play nicely with "NT xx" accounts*/
INSERT #output_man_script (SectionID, Section,Summary,Severity)
SELECT 0
, CASE WHEN CONVERT(DATETIME,ISNULL(ISNULL([Mainstream Support End Date],[Extended Support End Date]),[Service Pack Support End Date])) < GETDATE() THEN '!BUILD NOT SUPPORTED!' ELSE 'Build in support' END
, 'Build:' + @SQLproductlevel
+ ISNULL('; [Mainstream Support End Date]:' + [Mainstream Support End Date],'')
+ ISNULL('; [Extended Support End Date]:' + [Extended Support End Date],'')
+ ISNULL('; [Service Pack Support End Date]:' + [Service Pack Support End Date],'')
, CASE WHEN CONVERT(DATETIME,ISNULL(ISNULL([Mainstream Support End Date],[Extended Support End Date]),[Service Pack Support End Date])) < GETDATE() THEN @Result_YourServerIsDead ELSE @Result_Good END
FROM #SQLVersions
WHERE [Products Released] =
CASE
WHEN @SQLproductlevel = ''
THEN @SQLVersionText + ' Standard'
ELSE @SQLVersionText
END
RAISERROR (N'Evaluated build support end date',0,1) WITH NOWAIT;
/*----------------------------------------
--Check for high worker thread usage
----------------------------------------*/
DECLARE @workerthreadspercentage FLOAT;
SELECT @workerthreadspercentage = (SELECT CONVERT(MONEY,SUM(current_workers_count)) as [Current worker thread] FROM sys.dm_os_schedulers)*100/max_workers_count FROM sys.dm_os_sys_info
INSERT #output_man_script (SectionID, Section,Summary) SELECT 0, 'HIGH Worker Thread Usage','------'
INSERT #output_man_script (SectionID, Section,Summary, Severity)
SELECT 0, 'Worker threads',
CONVERT(VARCHAR(20),(
SELECT CONVERT(MONEY,SUM(current_workers_count)) as [Current worker thread] FROM sys.dm_os_schedulers)*100/max_workers_count)
+ '% workes used. With average work queue count'
+ CONVERT(VARCHAR(15),(SELECT AVG (CONVERT(MONEY,work_queue_count))
FROM sys.dm_os_schedulers WHERE STATUS = 'VISIBLE ONLINE' ))
, CASE WHEN @workerthreadspercentage > 65 THEN @Result_Warning ELSE @Result_Good END
FROM sys.dm_os_sys_info
RAISERROR (N'Looked at worker thread usage',0,1) WITH NOWAIT;
/*----------------------------------------
--Performance counters
----------------------------------------*/
SELECT @ts =(
SELECT cpu_ticks/(cpu_ticks/ms_ticks)
FROM sys.dm_os_sys_info
) OPTION (RECOMPILE)
DECLARE @PerformanceCounterList TABLE(
[counter_name] [VARCHAR](500) NOT NULL,
[is_captured_ind] [BIT] NOT NULL
)
DECLARE @PerformanceCounter TABLE(
[CounterName] [VARCHAR](250) NOT NULL,
[CounterValue] [VARCHAR](250) NOT NULL,
[DateSampled] [DATETIME] NOT NULL
)
DECLARE @loops INT;
SET @loops = 5;
BEGIN TRY
DECLARE @perfStr VARCHAR(100)
DECLARE @instStr VARCHAR(100)
SELECT @instStr = @@SERVICENAME
IF(@instStr = 'MSSQLSERVER')
SET @perfStr = '\SQLServer'
ELSE
SET @perfStr = '\MSSQL$' + @instStr
INSERT INTO @PerformanceCounterList(counter_name,is_captured_ind)
VALUES ('\Memory\Pages/sec',1)
, ('\Memory\Pages Input/sec',1)
, ('\Memory\Available MBytes',1)
, ('\Processor(_Total)\% Processor Time',1)
, ('\Processor(_Total)\% Privileged Time',1)
, ('\Process(sqlservr)\% Privileged Time',1)
, ('\Process(sqlservr)\% Processor Time',1)
, ('\Paging File(_Total)\% Usage',1)
, ('\Paging File(_Total)\% Usage Peak',1)
, ('\PhysicalDisk(_Total)\Avg. Disk sec/Read',1)
, ('\PhysicalDisk(_Total)\Avg. Disk sec/Write',1)
, ('\PhysicalDisk(_Total)\Disk Reads/sec',1)
, ('\PhysicalDisk(_Total)\Disk Writes/sec',1)
, ('\System\Processor Queue Length',1)
, ('\System\Context Switches/sec',1)
, (@perfStr + ':Buffer Manager\Page life expectancy',1)
, (@perfStr + ':Buffer Manager\Buffer cache hit ratio',1)
, (@perfStr + ':Buffer Manager\Checkpoint Pages/Sec',1)
, (@perfStr + ':Buffer Manager\Lazy Writes/Sec',1)
, (@perfStr + ':Buffer Manager\Page Reads/Sec',1)
, (@perfStr + ':Buffer Manager\Page Writes/Sec',1)
, (@perfStr + ':Buffer Manager\Page Lookups/Sec',1)
, (@perfStr + ':Buffer Manager\Free List Stalls/sec',1)
, (@perfStr + ':Buffer Manager\Readahead pages/sec',1)
, (@perfStr + ':Buffer Manager\Database Pages',1)
, (@perfStr + ':Buffer Manager\Target Pages',1)
, (@perfStr + ':Buffer Manager\Total Pages',1)
, (@perfStr + ':Buffer Manager\Stolen Pages',1)
, (@perfStr + ':General Statistics\User Connections',1)
, (@perfStr + ':General Statistics\Processes blocked',1)
, (@perfStr + ':General Statistics\Logins/Sec',1)
, (@perfStr + ':General Statistics\Logouts/Sec',1)
, (@perfStr + ':Memory Manager\Memory Grants Pending',1)
, (@perfStr + ':Memory Manager\Total Server Memory (KB)',1)
, (@perfStr + ':Memory Manager\Target Server Memory (KB)',1)
, (@perfStr + ':Memory Manager\Granted Workspace Memory (KB)',1)
, (@perfStr + ':Memory Manager\Maximum Workspace Memory (KB)',1)
, (@perfStr + ':Memory Manager\Memory Grants Outstanding',1)
, (@perfStr + ':SQL Statistics\Batch Requests/sec',1)
, (@perfStr + ':SQL Statistics\SQL Compilations/sec',1)
, (@perfStr + ':SQL Statistics\SQL Re-Compilations/sec',1)
, (@perfStr + ':SQL Statistics\Auto-Param Attempts/sec',1)
, (@perfStr + ':Locks(_Total)\Lock Waits/sec',1)
, (@perfStr + ':Locks(_Total)\Lock Requests/sec',1)
, (@perfStr + ':Locks(_Total)\Lock Timeouts/sec',1)
, (@perfStr + ':Locks(_Total)\Number of Deadlocks/sec',1)
, (@perfStr + ':Locks(_Total)\Lock Wait Time (ms)',1)
, (@perfStr + ':Locks(_Total)\Average Wait Time (ms)',1)
, (@perfStr + ':Latches\Total Latch Wait Time (ms)',1)
, (@perfStr + ':Latches\Latch Waits/sec',1)
, (@perfStr + ':Latches\Average Latch Wait Time (ms)',1)
, (@perfStr + ':Access Methods\Forwarded Records/Sec',1)
, (@perfStr + ':Access Methods\Full Scans/Sec',1)
, (@perfStr + ':Access Methods\Page Splits/Sec',1)
, (@perfStr + ':Access Methods\Index Searches/Sec',1)
, (@perfStr + ':Access Methods\Workfiles Created/Sec',1)
, (@perfStr + ':Access Methods\Worktables Created/Sec',1)
, (@perfStr + ':Access Methods\Table Lock Escalations/sec',1)
, (@perfStr + ':Cursor Manager by Type(_Total)\Active cursors',1)
, (@perfStr + ':Transactions\Longest Transaction Running Time',1)
, (@perfStr + ':Transactions\Free Space in tempdb (KB)',1)
, (@perfStr + ':Transactions\Version Store Size (KB)',1)
, ('\LogicalDisk(*)\Avg. Disk Queue Length',1)
, ('\LogicalDisk(*)\Avg. Disk sec/Read',1)
, ('\LogicalDisk(*)\Avg. Disk sec/Transfer',1)
, ('\LogicalDisk(*)\Avg. Disk sec/Write',1)
, ('\LogicalDisk(*)\Current Disk Queue Length',1)
, ('\Paging File(*)\*',1)
, ('\LogicalDisk(_Total)\Disk Reads/sec',1)
, ('\LogicalDisk(_Total)\Disk Writes/sec',1)
, ('\SQLServer:Databases(_Total)\Log Bytes Flushed/sec',1)
END TRY
BEGIN CATCH
DECLARE @errMessage varchar(MAX) = ERROR_MESSAGE()
PRINT @errMessage
END CATCH
BEGIN
DECLARE @syscounters NVARCHAR(4000)
SET @syscounters=STUFF((SELECT DISTINCT ''',''' +LTRIM([counter_name])
FROM @PerformanceCounterList
WHERE [is_captured_ind] = 1 FOR XML PATH('')), 1, 2, '')+''''
DECLARE @syscountertable TABLE (id INT IDENTITY(1,1), [output] VARCHAR(500))
DECLARE @syscountervaluestable TABLE (id INT IDENTITY(1,1), [value] VARCHAR(500))
DECLARE @cmdpowershell NVARCHAR(4000)
SET @cmdpowershell = 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe "& get-counter -counter '+ @syscounters +' | Select-Object -ExpandProperty Readings"'
DECLARE @LoopCounter TINYINT
SET @LoopCounter = 1
WHILE @LoopCounter <= @loops
BEGIN
INSERT @syscountertable
EXEC master..xp_cmdshell @cmdpowershell
WAITFOR DELAY '00:00:02';
SET @LoopCounter = @LoopCounter + 1
END
declare @sqlnamedinstance sysname
declare @networkname sysname
if (select CHARINDEX('\',@@SERVERNAME)) = 0
begin
INSERT @PerformanceCounter (CounterName, CounterValue, DateSampled)
SELECT REPLACE(REPLACE(REPLACE(ct.[output],'\\'+@@SERVERNAME+'\',''),' :',''),'sqlserver:','')[CounterName] , CONVERT(varchar(20),ct2.[output]) [CounterValue], GETDATE() [DateSampled]
FROM @syscountertable ct
LEFT OUTER JOIN (
SELECT id - 1 [id], [output]
FROM @syscountertable
WHERE PATINDEX('%[0-9]%', LEFT([output],1)) > 0
) ct2 ON ct.id = ct2.id
WHERE ct.[output] LIKE '\\%'
ORDER BY [CounterName] ASC
end
else
begin
select @networkname=RTRIM(left(@@SERVERNAME, CHARINDEX('\', @@SERVERNAME) - 1))
select @sqlnamedinstance=RIGHT(@@SERVERNAME,CHARINDEX('\',REVERSE(@@SERVERNAME))-1)
INSERT @PerformanceCounter (CounterName, CounterValue, DateSampled)
SELECT REPLACE(REPLACE(REPLACE(ct.[output],'\\'+@networkname+'\',''),' :',''),'mssql$'+@sqlnamedinstance+':','')[CounterName] , CONVERT(varchar(20),ct2.[output]) [CounterValue], GETDATE() [DateSampled]
FROM @syscountertable ct
LEFT OUTER JOIN (
SELECT id - 1 [id], [output]
FROM @syscountertable
WHERE PATINDEX('%[0-9]%', LEFT([output],1)) > 0
) ct2 ON ct.id = ct2.id
WHERE ct.[output] LIKE '\\%'
ORDER BY [CounterName] ASC
END
END
/*Generate DTU calculations*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 0,'For Azure Calculations','------','------'
INSERT #output_man_script (SectionID, Section,Summary)
SELECT 0, 'Number of CPUs exposed to OS' [Measure], CONVERT(VARCHAR(3),@CPUcount) [Value]
UNION ALL
SELECT 0, 'Databases(_total)\log bytes flushed/sec (MB)', AVG(CONVERT(MONEY,CounterValue))/1024/1024
FROM @PerformanceCounter T1
WHERE T1.CounterName LIKE '%databases(_total)\log bytes flushed/sec'
UNION ALL
SELECT 0, 'Average IOPS', SUM(CONVERT(MONEY,CounterValue))/@loops
FROM @PerformanceCounter T1
WHERE T1.CounterName LIKE '%LogicalDisk(_Total)\Disk Reads/sec'
OR T1.CounterName LIKE '%LogicalDisk(_Total)\Disk Writes/sec'
UNION ALL
SELECT 0, 'Disk Read IOPS', AVG(CONVERT(MONEY,CounterValue))
FROM @PerformanceCounter T1
WHERE T1.CounterName LIKE '%LogicalDisk(_Total)\Disk Reads/sec'
UNION ALL
SELECT 0, 'Disk Write IOPS', AVG(CONVERT(MONEY,CounterValue))
FROM @PerformanceCounter T1
WHERE T1.CounterName LIKE '%LogicalDisk(_Total)\Disk Writes/sec'
UNION ALL
SELECT 0 ,'SQL Avg Usage %. From: ' + CONVERT(VARCHAR, MIN([Event_Time]),120) + ' to: ' + CONVERT(VARCHAR, MAX([Event_Time]),120) , AVG(SQLProcessUtilization)
FROM
(
SELECT SQLProcessUtilization
, SystemIdle
, DATEADD(ms,-1 *(@ts - [timestamp]), GETDATE())AS [Event_Time]
FROM
(
SELECT
record.value('(./Record/@id)[1]','int') AS record_id
, record.value('(./Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]','int') AS [SystemIdle]
, record.value('(./Record/SchedulerMonitorEvent/SystemHealth/ProcessUtilization)[1]','int') AS [SQLProcessUtilization]
, [timestamp]
FROM
(
SELECT
[timestamp]
, convert(xml, record) AS [record]
FROM sys.dm_os_ring_buffers
WHERE ring_buffer_type = N'RING_BUFFER_SCHEDULER_MONITOR'
AND record LIKE'%%'
)AS x
) as y
) T1
RAISERROR (N'Finished rough IOPS calculation',0,1) WITH NOWAIT;
/*----------------------------------------
--Check for any pages marked suspect for corruption
----------------------------------------*/
DECLARE @syspectpagescount FLOAT
SELECT @syspectpagescount = COUNT(*) FROM msdb.dbo.suspect_pages
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 0, 'SUSPECT PAGES','------','------'
INSERT #output_man_script (SectionID, Section,Summary,Severity, Details)
SELECT 0,
'DB: ' + db_name(database_id)
+ '; FileID: ' + CONVERT(VARCHAR(20),file_id)
+ '; PageID: ' + CONVERT(VARCHAR(20), page_id)
, 'Event Type: ' + CONVERT(VARCHAR(20),event_type)
+ '; Count: ' + CONVERT(VARCHAR(20),error_count)
, CASE WHEN @syspectpagescount > 0 THEN @Result_YourServerIsDead WHEN @syspectpagescount = 0 THEN @Result_Good END
, 'Last Update: ' + CONVERT(VARCHAR(20),last_update_date,120)
FROM msdb.dbo.suspect_pages
OPTION (RECOMPILE)
RAISERROR (N'Included Suspect Pages, if any',0,1) WITH NOWAIT;
/*----------------------------------------
--Before anything else, look for things that might point to breaking behaviour. Look for out of support SQL bits floating around
--WORKAROUND - create all indexes using the deafult SET settings of the applications connecting into the server
--DANGER <NAME>
----------------------------------------*/
IF EXISTS(SELECT 1 FROM sys.dm_exec_sessions T
WHERE ((
quoted_identifier = 0
OR ansi_nulls = 0
OR ansi_padding= 0
OR ansi_warnings= 0
OR arithabort= 0
OR concat_null_yields_null= 0
) AND LEN(T.nt_user_name) > 1 AND T.program_name NOT LIKE 'SQLAgent - %' ) OR T.client_version < 6)
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 1,'!!! WARNING - CHECK SET - MAKES INDEXES BREAK THINGS!!!','------','------'
INSERT #output_man_script (SectionID, Section,Summary,Severity, Details)
SELECT DISTINCT 1
, ISNULL(CASE
WHEN T.client_version < 3 THEN '!!! WARNING !!! Pre SQL 7'
WHEN T.client_version = 3 THEN '!!! WARNING !!! SQL 7'
WHEN T.client_version = 4 THEN '!!! WARNING !!! SQL 2000'
WHEN T.client_version = 5 THEN '!!! WARNING !!! SQL 2005'
WHEN T.client_version = 6 THEN 'SQL 2008'
WHEN T.client_version = 7 THEN 'SQL 2012'
ELSE 'SQL 2014+'
END,'') [Section]
, ISNULL(CASE
WHEN T.client_version < 6 THEN 'SQL Stick and clay tablets'
WHEN T.client_version = 6 THEN 'SQL 2008'
WHEN T.client_version = 7 THEN 'SQL 2012'
ELSE 'SQL 2014+'
END ,'')
+ '; App: [' + ISNULL(T.program_name,'')
+ ']; Driver: [' + ISNULL(
CASE SUBSTRING(CAST(C.protocol_version AS BINARY(4)), 1,1)
WHEN 0x04 THEN 'Pre-version SQL Server 7.0 - DBLibrary/ ISQL'
WHEN 0x70 THEN 'SQL Server 7.0'
WHEN 0x71 THEN 'SQL Server 2000'
WHEN 0x72 THEN 'SQL Server 2005'
WHEN 0x73 THEN 'SQL Server 2008'
WHEN 0x74 THEN 'SQL Server 2012/14/16'
ELSE 'Unknown driver'
END ,'')
+ ']; Interface: '+ ISNULL(T.client_interface_name,'')
+ '; User: ' + ISNULL(T.nt_user_name,'')
+ '; Host: ' + ISNULL(T.host_name,'') [Summary]
, @Result_Warning
, '' + ISNULL(CASE WHEN quoted_identifier = 0 THEN ';quoted_identifier = OFF' ELSE '' END
+ ''+ CASE WHEN ansi_nulls = 0 THEN ';ansi_nulls = OFF' ELSE '' END
+ ''+ CASE WHEN ansi_padding = 0 THEN ';ansi_padding = OFF' ELSE '' END
+ ''+ CASE WHEN ansi_warnings = 0 THEN ';ansi_warnings = OFF' ELSE '' END
+ ''+ CASE WHEN arithabort = 0 THEN ';arithabort = OFF' ELSE '' END
+ ''+ CASE WHEN concat_null_yields_null = 0 THEN ';concat_null_yields_null = OFF' ELSE '' END,'')
FROM sys.dm_exec_sessions T
INNER JOIN sys.dm_exec_connections C ON C.session_id = T.session_id
WHERE ((
quoted_identifier = 0
OR ansi_nulls = 0
OR ansi_padding= 0
OR ansi_warnings= 0
OR arithabort= 0
OR concat_null_yields_null= 0
)
AND LEN(T.nt_user_name) > 1
AND T.program_name NOT LIKE 'SQLAgent - %' )
OR T.client_version < 6
ORDER BY Section, [Summary];
PRINT N'WARNING! You have SET options that might break stuff on SQL 2005+. DANGER WILL ROBINSON';
IF @ShowMigrationRelatedOutputs = 1
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 1,'!!! WARNING - MAY BREAK UPGRADE !!!','Database;App/Interface;Driver;User;Host','------'
INSERT #output_man_script (SectionID, Section,Summary, Details)
SELECT DISTINCT 1
, ISNULL(CASE
WHEN T.client_version < 3 THEN '!!! UPGRADE ISSUE !!! Pre SQL 7'
WHEN T.client_version = 3 THEN '!!! UPGRADE ISSUE !!! SQL 7'
WHEN T.client_version = 4 THEN '!!! UPGRADE ISSUE !!! SQL 2000'
WHEN T.client_version = 5 THEN '!!! UPGRADE ISSUE !!! SQL 2005'
WHEN T.client_version = 6 THEN 'SQL 2008'
WHEN T.client_version = 7 THEN 'SQL 2012'
ELSE 'SQL 2014+'
END,'') [Section]
, '[' + ISNULL(d.name ,'')+ ']'
+';[' + ISNULL(T.program_name,ISNULL(T.client_interface_name,''))
+ ']; [' + ISNULL(
CASE SUBSTRING(CAST(C.protocol_version AS BINARY(4)), 1,1)
WHEN 0x04 THEN 'Pre-version SQL 7.0 - DBLibrary/ ISQL'
WHEN 0x70 THEN 'SQL 7.0'
WHEN 0x71 THEN 'SQL 2000'
WHEN 0x72 THEN 'SQL 2005'
WHEN 0x73 THEN 'SQL 2008'
WHEN 0x74 THEN 'SQL 2012/14/16'
ELSE 'Unknown driver'
END ,'')
+ '];[' + ISNULL(T.nt_user_name,ISNULL(T.original_login_name,''))
+ '][;' + ISNULL(T.host_name,'') + ']' [Summary]
, '' + ISNULL(CASE WHEN T.quoted_identifier = 0 THEN ';quoted_identifier = OFF' ELSE '' END
+ ''+ CASE WHEN T.ansi_nulls = 0 THEN ';ansi_nulls = OFF' ELSE '' END
+ ''+ CASE WHEN T.ansi_padding = 0 THEN ';ansi_padding = OFF' ELSE '' END
+ ''+ CASE WHEN T.ansi_warnings = 0 THEN ';ansi_warnings = OFF' ELSE '' END
+ ''+ CASE WHEN T.arithabort = 0 THEN ';arithabort = OFF' ELSE '' END
+ ''+ CASE WHEN T.concat_null_yields_null = 0 THEN ';concat_null_yields_null = OFF' ELSE '' END,'')
FROM sys.dm_exec_sessions T
INNER JOIN sys.dm_exec_connections C ON C.session_id = T.session_id
LEFT OUTER JOIN sys.dm_exec_requests r on T.session_id = r.session_id
LEFT OUTER JOIN sys.databases d ON r.database_id = d.database_id
WHERE ( 1 = 1)
--AND LEN(ISNULL(T.nt_user_name,0)) > 1
AND T.program_name NOT LIKE 'SQLAgent - %'
AND T.client_version < 6
ORDER BY Section, [Summary];
PRINT N'WARNING! Upgrades may break clients connecting in';
END
END
RAISERROR (N'Done checking for possible breaking SQL 2000 things',0,1) WITH NOWAIT;
/*----------------------------------------
--Before anything else, look for things that might point to breaking behaviour. Like database with bad default settings
----------------------------------------*/
IF EXISTS(SELECT 1
FROM sys.databases
WHERE is_ansi_nulls_on = 0
OR is_ansi_padding_on= 0
OR is_ansi_warnings_on= 0
OR is_arithabort_on= 0
OR is_concat_null_yields_null_on= 0
OR is_numeric_roundabort_on= 0
OR is_quoted_identifier_on= 1)
BEGIN
INSERT INTO #whatsets(DBname, [compatibility_level],[SETs])
SELECT '[' + name + ']'
, [compatibility_level]
, ''+ CASE WHEN is_quoted_identifier_on = 0 THEN '; SET quoted_identifier OFF' ELSE '' END
+ ''+ CASE WHEN is_ansi_nulls_on = 0 THEN '; SET ansi_nulls OFF' ELSE '' END
+ ''+ CASE WHEN is_ansi_padding_on = 0 THEN '; SET ansi_padding OFF' ELSE '' END
+ ''+ CASE WHEN is_ansi_warnings_on = 0 THEN '; SET ansi_warnings OFF' ELSE '' END
+ ''+ CASE WHEN is_arithabort_on = 0 THEN '; SET arithabort OFF' ELSE '' END
+ ''+ CASE WHEN is_concat_null_yields_null_on = 0 THEN '; SET concat_null_yields_null OFF' ELSE '' END
+ ''+ CASE WHEN is_numeric_roundabort_on = 1 THEN '; SET is_numeric_roundabort_on ON' ELSE '' END
FROM sys.databases
END
IF EXISTS(SELECT * FROM #whatsets)
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 1,'!!! WARNING - POTENTIALLY BREAKING DB SETTINGS!!!','------','------'
INSERT #output_man_script (SectionID, Section,Summary)
SELECT 1
, DBname + ' [' + CONVERT(VARCHAR(10), [compatibility_level]) + ']'
, [SETs]
FROM #whatsets
ORDER BY DBname DESC
END
RAISERROR (N'Done checking compatability levels and sets for database things',0,1) WITH NOWAIT;
/*----------------------------------------
--Benchmark, not for anything else besides getting a number
----------------------------------------*/
SET @StartTest = GETDATE();
WITH E00(N) AS (SELECT 1 UNION ALL SELECT 1)
, E02(N) AS (SELECT 1 FROM E00 a, E00 b)
, E04(N) AS (SELECT 1 FROM E02 a, E02 b)
, E08(N) AS (SELECT 1 FROM E04 a, E04 b)
, E16(N) AS (SELECT 1 FROM E08 a, E08 b)
, cteTally(N) AS (SELECT ROW_NUMBER() OVER (ORDER BY N) FROM E16)
SELECT
@ThisistoStandardisemyOperatorCostMate = count(N)
FROM cteTally OPTION (RECOMPILE);
SET @EndTest = GETDATE();
SELECT TOP 1
@secondsperoperator = (qs.total_worker_time/qs.execution_count/1000)/0.7248/1000
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt
WHERE qs.total_logical_reads = 0
AND qs.last_execution_time BETWEEN @StartTest AND @EndTest
AND PATINDEX('%ThisistoStandardisemyOperatorCostMate%',CAST(qt.TEXT AS NVARCHAR(MAX))) > 0
--OPTION (RECOMPILE);
PRINT N'Your cost (in seconds) per operator roughly equates to around '+ CONVERT(VARCHAR(20),ISNULL(@secondsperoperator,0)) + ' seconds' ;
RAISERROR (N'Benchmarking done',0,1) WITH NOWAIT;
/*----------------------------------------
--Build database table to use throughout this script
----------------------------------------*/
DECLARE @Databases TABLE
(
id INT IDENTITY(1,1)
, databasename NVARCHAR(250)
, [compatibility_level] BIGINT
, user_access BIGINT
, user_access_desc NVARCHAR(50)
, [state] BIGINT
, state_desc NVARCHAR(50)
, recovery_model BIGINT
, recovery_model_desc NVARCHAR(50)
, create_date DATETIME
);
SET @dynamicSQL = 'SELECT
db.name
, db.compatibility_level
, db.user_access
, db.user_access_desc
, db.state
, db.state_desc
, db.recovery_model
, db.recovery_model_desc
, db.create_date
FROM
sys.databases db '
IF (SELECT OBJECT_ID('master.sys.availability_groups')) IS NOT NULL /*You have active AGs*/
SET @dynamicSQL = @dynamicSQL + '
LEFT OUTER JOIN(
SELECT top 100 percent
AG.name AS [AvailabilityGroupName],
ISNULL(agstates.primary_replica, NULL) AS [PrimaryReplicaServerName],
ISNULL(arstates.role, 3) AS [LocalReplicaRole],
dbcs.database_name AS [DatabaseName],
ISNULL(dbrs.synchronization_state, 0) AS [SynchronizationState],
ISNULL(dbrs.is_suspended, 0) AS [IsSuspended],
ISNULL(dbcs.is_database_joined, 0) AS [IsJoined]
FROM master.sys.availability_groups AS AG
LEFT OUTER JOIN master.sys.dm_hadr_availability_group_states as agstates
ON AG.group_id = agstates.group_id
INNER JOIN master.sys.availability_replicas AS AR
ON AG.group_id = AR.group_id
INNER JOIN master.sys.dm_hadr_availability_replica_states AS arstates
ON AR.replica_id = arstates.replica_id AND arstates.is_local = 1
INNER JOIN master.sys.dm_hadr_database_replica_cluster_states AS dbcs
ON arstates.replica_id = dbcs.replica_id
LEFT OUTER JOIN master.sys.dm_hadr_database_replica_states AS dbrs
ON dbcs.replica_id = dbrs.replica_id AND dbcs.group_database_id = dbrs.group_database_id
WHERE agstates.primary_replica = @@SERVERNAME OR agstates.primary_replica IS NULL
ORDER BY AG.name ASC, dbcs.database_name
) t1 on t1.DatabaseName = db.name'
SET @dynamicSQL = @dynamicSQL + '
WHERE db.database_id > 4 AND db.user_access = 0 AND db.State = 0 '
IF (SELECT OBJECT_ID('master.sys.availability_groups')) IS NOT NULL /*You have active AGs*/
SET @dynamicSQL = @dynamicSQL + ' AND t1.LocalReplicaRole IS NOT NULL'
SET @dynamicSQL = @dynamicSQL + ' OPTION (RECOMPILE);'
INSERT INTO @Databases
EXEC sp_executesql @dynamicSQL ;
SET @Databasei_Max = (SELECT MAX(id) FROM @Databases );
/*----------------------------------------
--Get uptime and cache age
----------------------------------------*/
SET @oldestcachequery = (SELECT ISNULL( MIN(creation_time),0.1) FROM sys.dm_exec_query_stats WITH (NOLOCK));
SET @lastservericerestart = (SELECT create_date FROM sys.databases WHERE name = 'tempdb');
SET @minutesSinceRestart = (SELECT DATEDIFF(MINUTE,@lastservericerestart,GETDATE()));
SELECT @DaysUptime = CAST(DATEDIFF(hh,@lastservericerestart,GETDATE())/24. AS NUMERIC (23,2)) OPTION (RECOMPILE);
SELECT @DaysOldestCachedQuery = CAST(DATEDIFF(hh,@oldestcachequery,GETDATE())/24. AS NUMERIC (23,2)) OPTION (RECOMPILE);
IF @DaysUptime = 0
SET @DaysUptime = .1;
IF @DaysOldestCachedQuery = 0
SET @DaysOldestCachedQuery = .1;
SET @CachevsUpdate = @DaysOldestCachedQuery*100/@DaysUptime
IF @CachevsUpdate < 1
SET @CachevsUpdate = 1
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 2,'CACHE - Cache Age As portion of Overall Uptime','------','------'
INSERT #output_man_script (SectionID, Section,Summary,HoursToResolveWithTesting )
SELECT 2,'['+REPLICATE('|', @CachevsUpdate) + REPLICATE('''',100-@CachevsUpdate ) +']'
, 'Uptime:'
+ CONVERT(VARCHAR(20),@DaysUptime)
+ '; Oldest Cache:'
+ CONVERT(VARCHAR(20),@DaysOldestCachedQuery )
+ '; Cache Timestamp:'
+ CONVERT(VARCHAR(20),@oldestcachequery,120)
, CASE WHEN @CachevsUpdate > 50 AND @DaysUptime > 1 THEN 0.5 ELSE 2 END
RAISERROR (N'Server uptime and cache age established',0,1) WITH NOWAIT;
/*----------------------------------------
--Internals and Memory usage
----------------------------------------*/
SELECT @UsedMemory = CONVERT(MONEY,physical_memory_in_use_kb)/1024 /1000
FROM sys.dm_os_process_memory WITH (NOLOCK) OPTION (RECOMPILE)
SELECT @totalMemoryGB = CONVERT(MONEY,total_physical_memory_kb)/1024/1000
, @AvailableMemoryGB = CONVERT(MONEY,available_physical_memory_kb)/1024/1000
FROM sys.dm_os_sys_memory WITH (NOLOCK) OPTION (RECOMPILE);
SELECT @VMType = RIGHT(@@version,CHARINDEX('(',REVERSE(@@version)))
IF @SQLVersion = 11
BEGIN
EXEC sp_executesql N'set @_MaxRamServer= (select physical_memory_kb/1024 from sys.dm_os_sys_info);', N'@_MaxRamServer INT OUTPUT', @_MaxRamServer = @MaxRamServer OUTPUT
END
ELSE
IF @SQLVersion in (10,9)
BEGIN
EXEC sp_executesql N'set @_MaxRamServer= (select physical_memory_in_bytes/1024/1024 from sys.dm_os_sys_info) ;', N'@_MaxRamServer INT OUTPUT', @_MaxRamServer = @MaxRamServer OUTPUT
END
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 3,'MEMORY - SQL Memory usage of total allocated','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Details )
SELECT 3,'['+REPLICATE('|', CONVERT(MONEY,CONVERT(FLOAT,@UsedMemory)/CONVERT(FLOAT,@totalMemoryGB)) * 100) + REPLICATE('''',100-(CONVERT(MONEY,CONVERT(FLOAT,@UsedMemory)/CONVERT(FLOAT,@totalMemoryGB)) * 100) ) +']'
, 'Sockets:' + ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,CONVERT(VARCHAR(20),(@CPUsocketcount ) )), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' '),'')
+'; Virtual CPUs:' + ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,CONVERT(VARCHAR(20),@CPUcount )), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; VM Type:' + ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,ISNULL(@VMType,'')), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; CPU Affinity:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,ISNULL('','')), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; MemoryGB:' + ISNULL(CONVERT(VARCHAR(20), CONVERT(MONEY,CONVERT(FLOAT,@totalMemoryGB))),'')
+'; SQL Allocated:' +ISNULL(CONVERT(VARCHAR(20), CONVERT(MONEY,CONVERT(FLOAT,@UsedMemory))) ,'')
+'; Suggested MAX:' + ISNULL( CONVERT(VARCHAR(20), CASE
WHEN @MaxRamServer < = 1024*2 THEN @MaxRamServer - 512 /*When the RAM is Less than or equal to 2GB*/
WHEN @MaxRamServer < = 1024*4 THEN @MaxRamServer - 1024 /*When the RAM is Less than or equal to 4GB*/
WHEN @MaxRamServer < = 1024*16 THEN @MaxRamServer - 1024 - Ceiling((@MaxRamServer-4096) / (4.0*1024))*1024 /*When the RAM is Less than or equal to 16GB*/
-- My machines memory calculation
-- RAM= 16GB
-- Case 3 as above:- 16384 RAM-> MaxMem= 16384-1024-[(16384-4096)/4096] *1024
-- MaxMem= 12106
WHEN @MaxRamServer > 1024*16 THEN @MaxRamServer - 4096 - Ceiling((@MaxRamServer-1024*16) / (8.0*1024))*1024 /*When the RAM is Greater than or equal to 16GB*/
END) ,'')
+'; Used by SQL:'+ ISNULL(CONVERT(VARCHAR(20), CONVERT(FLOAT,@UsedMemory)),'')
+'; Memory State:' + ISNULL((SELECT system_memory_state_desc from sys.dm_os_sys_memory),'') [Internals: Details]
, ('ServerName:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,SERVERPROPERTY('ServerName')), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; Version:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,LEFT( @@version, PATINDEX('%-%',( @@version))-2) ), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; VersionNr:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,SERVERPROPERTY('ProductVersion')), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; OS:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,RIGHT( @@version, LEN(@@version) - PATINDEX('% on %',( @@version))-3) ), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; Edition:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,SERVERPROPERTY('Edition')), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; HADR:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,SERVERPROPERTY('IsHadrEnabled')), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; SA:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,SERVERPROPERTY('IsIntegratedSecurityOnly' )), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' '),'')
+'; Licenses:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,SERVERPROPERTY('NumLicenses' )), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') ,'')
+'; Level:'+ ISNULL(replace(replace(replace(replace(CONVERT(NVARCHAR,SERVERPROPERTY('ProductLevel')), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' '),'')) [More Details]
FROM [sys].[dm_os_sys_info] OPTION (RECOMPILE);
/*----------------------------------------
--Get some CPU history
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 4,'CPU - Average CPU usage of SQL process as % of total CPU usage','Speed; Avg CPU; CPU Idle; Other; From; To; Full Details','------'
INSERT #output_man_script (SectionID, Section,Summary, HoursToResolveWithTesting )
SELECT 4, '['+REPLICATE('|', AVG(CONVERT(MONEY,SQLProcessUtilization))) + REPLICATE('''',100-(AVG(CONVERT(MONEY,SQLProcessUtilization)) )) +']'
,(@cpu_ghz
+';'+ CONVERT(VARCHAR(20),AVG(SQLProcessUtilization))
+'%;' + CONVERT(VARCHAR(20),AVG(SystemIdle))
+'%; '+ CONVERT(VARCHAR(20), 100 - AVG(SQLProcessUtilization) - AVG(SystemIdle))
+'%;'+ CONVERT(VARCHAR(20), MIN([Event_Time]),120)
+';' + CONVERT(VARCHAR(20), MAX([Event_Time]),120)
+';' + @cpu_name
)
, CASE WHEN AVG(SQLProcessUtilization) > 50 THEN 2 ELSE 0 END
FROM
(
SELECT SQLProcessUtilization
, SystemIdle
, DATEADD(ms,-1 *(@ts - [timestamp])
, GETDATE())AS [Event_Time]
FROM
(
SELECT
record.value('(./Record/@id)[1]','int') AS record_id
, record.value('(./Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]','int') AS [SystemIdle]
, record.value('(./Record/SchedulerMonitorEvent/SystemHealth/ProcessUtilization)[1]','int') AS [SQLProcessUtilization]
, [timestamp]
FROM
(
SELECT
[timestamp]
, convert(xml, record) AS [record]
FROM sys.dm_os_ring_buffers
WHERE ring_buffer_type = N'RING_BUFFER_SCHEDULER_MONITOR'
AND record LIKE'%%'
)AS x
) as y
) T1
HAVING AVG(T1.SQLProcessUtilization) >= (CASE WHEN @ShowWarnings = 1 THEN 20 ELSE 0 END)
OPTION (RECOMPILE)
RAISERROR (N'Checked CPU usage for the last 5 hours',0,1) WITH NOWAIT;
/*----------------------------------------
--Failed logins on the server
----------------------------------------*/
DECLARE @LoginLog TABLE( LogDate DATETIME, ProcessInfo NVARCHAR(200), [Text] NVARCHAR(MAX))
IF @ShowWarnings = 0
BEGIN
SET @dynamicSQL = 'EXEC sp_readerrorlog 0, 1, ''Login failed'' '
INSERT @LoginLog
EXEC sp_executesql @dynamicSQL
IF EXISTS (SELECT 1 FROM @LoginLog)
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 5, 'LOGINS - Failed Logins','------','------'
INSERT #output_man_script (SectionID, Section,Summary, Severity, HoursToResolveWithTesting )
SELECT TOP 15 5, 'Date:'
+ CONVERT(VARCHAR(20),LogDate,120)
,replace(replace(replace(replace(CONVERT(NVARCHAR(500),Text), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ')
,@Result_Warning , 0.25
FROM @LoginLog ORDER BY LogDate DESC
OPTION (RECOMPILE)
END
END
RAISERROR (N'Server logins have been checked from the log',0,1) WITH NOWAIT;
/*----------------------------------------
--Agent log for errors
----------------------------------------*/
DECLARE @Errorlog TABLE( LogDate DATETIME, ErrorLevel INT, [Text] NVARCHAR(4000))
/*Ignore the agent logs if you cannot find it, else errors will come*/
BEGIN TRY
IF DATEADD(MINUTE,5,@lastservericerestart) < (SELECT MIN(Login_time) FROM master.dbo.sysprocesses WHERE LEFT(program_name, 8) = 'SQLAgent')
BEGIN
PRINT 'Agent started much later than Service. Might point to Agent never being restarted before. If you see the following error, just restart the agent and run this script again >>'
RAISERROR (N'Msg 0, Level 11, State 0, Line 2032
A severe error occurred on the current command. The results, if any, should be discarded.',0,1) WITH NOWAIT;
END
IF EXISTS (SELECT 1,* FROM master.dbo.sysprocesses WHERE LEFT(program_name, 8) = 'SQLAgent')
BEGIN
SET @dynamicSQL = 'EXEC sp_readerrorlog 1, 2, ''Error:'' '
INSERT @Errorlog
EXEC sp_executesql @dynamicSQL
END
BEGIN
SET @dynamicSQL = 'EXEC sp_readerrorlog 1, 1, ''Error:'' '
INSERT @Errorlog
EXEC sp_executesql @dynamicSQL
END
IF EXISTS (SELECT * FROM @Errorlog)
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 6,'AGENT LOG Errors','------','------'
INSERT #output_man_script (SectionID, Section,Summary, Severity, Details,HoursToResolveWithTesting )
SELECT 6, 'Date:'+ CONVERT(VARCHAR(20),LogDate ,120)
, 'ErrorLevel:'+ CONVERT(VARCHAR(20),ErrorLevel)
, @Result_Warning ,[Text], 1
FROM @Errorlog ORDER BY LogDate DESC
OPTION (RECOMPILE)
END
END TRY
BEGIN CATCH
RAISERROR (N'Error reading agent log',0,1) WITH NOWAIT;
END CATCH
RAISERROR (N'Agent log parsed for errors',0,1) WITH NOWAIT;
/*----------------------------------------
--Look for failed agent jobs
----------------------------------------*/
IF EXISTS (
SELECT *
FROM msdb.dbo.sysjobhistory DBSysJobHistory
JOIN (
SELECT DBSysJobHistory.job_id
, DBSysJobHistory.step_id
, MAX(DBSysJobHistory.instance_id) as instance_id
FROM msdb.dbo.sysjobhistory DBSysJobHistory
GROUP BY DBSysJobHistory.job_id
, DBSysJobHistory.step_id
) AS Instance ON DBSysJobHistory.instance_id = Instance.instance_id
WHERE DBSysJobHistory.run_status <> 1
)
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 7, 'FAILED AGENT JOBS','------','------'
INSERT #output_man_script (SectionID, Section,Summary, Severity, Details,HoursToResolveWithTesting )
SELECT 7,'Job Name:' + SysJobs.name
+'; Step:'+ SysJobSteps.step_name
+ ' - '+ Job.run_status
, 'MessageId: ' +CONVERT(VARCHAR(20),Job.sql_message_id)
+ '; Severity:'+ CONVERT(VARCHAR(20),Job.sql_severity)
, @Result_Warning
, 'Message:'+ Job.message
+'; Date:' + CONVERT(VARCHAR(20), Job.exec_date,120)
, 2
/*, Job.run_duration
, Job.server
, SysJobSteps.output_file_name
*/
FROM
(
SELECT Instance.instance_id
,DBSysJobHistory.job_id
,DBSysJobHistory.step_id
,DBSysJobHistory.sql_message_id
,DBSysJobHistory.sql_severity
,DBSysJobHistory.message
,(CASE DBSysJobHistory.run_status
WHEN 0 THEN 'Failed'
WHEN 1 THEN 'Succeeded'
WHEN 2 THEN 'Retry'
WHEN 3 THEN 'Canceled'
WHEN 4 THEN 'In progress'
END
) as run_status
,((SUBSTRING(CAST(DBSysJobHistory.run_date AS NVARCHAR(8)), 5, 2) + '/'
+ SUBSTRING(CAST(DBSysJobHistory.run_date AS NVARCHAR(8)), 7, 2) + '/'
+ SUBSTRING(CAST(DBSysJobHistory.run_date AS NVARCHAR(8)), 1, 4) + ' '
+ SUBSTRING((REPLICATE('0',6-LEN(CAST(DBSysJobHistory.run_time AS NVARCHAR)))
+ CAST(DBSysJobHistory.run_time AS NVARCHAR)), 1, 2) + ':'
+ SUBSTRING((REPLICATE('0',6-LEN(CAST(DBSysJobHistory.run_time AS NVARCHAR)))
+ CAST(DBSysJobHistory.run_time AS NVARCHAR)), 3, 2) + ':'
+ SUBSTRING((REPLICATE('0',6-LEN(CAST(DBSysJobHistory.run_time as NVARCHAR)))
+ CAST(DBSysJobHistory.run_time AS NVARCHAR)), 5, 2))) [exec_date]
,DBSysJobHistory.run_duration
,DBSysJobHistory.retries_attempted
,DBSysJobHistory.server
FROM msdb.dbo.sysjobhistory DBSysJobHistory
JOIN (
SELECT DBSysJobHistory.job_id
, DBSysJobHistory.step_id
, MAX(DBSysJobHistory.instance_id) as instance_id
FROM msdb.dbo.sysjobhistory DBSysJobHistory
GROUP BY DBSysJobHistory.job_id
, DBSysJobHistory.step_id
) AS Instance ON DBSysJobHistory.instance_id = Instance.instance_id
WHERE DBSysJobHistory.run_status <> 1
) AS Job
JOIN msdb.dbo.sysjobs SysJobs
ON (Job.job_id = SysJobs.job_id)
JOIN msdb.dbo.sysjobsteps SysJobSteps
ON (Job.job_id = SysJobSteps.job_id
AND Job.step_id = SysJobSteps.step_id)
OPTION (RECOMPILE);
RAISERROR (N'Checked for failed agent jobs',0,1) WITH NOWAIT;
/*----------------------------------------
--Look for failed backups
----------------------------------------*/
IF EXISTS
(
SELECT *
FROM (
SELECT *
FROM msdb.dbo.backupset x
WHERE backup_finish_date = (
SELECT max(backup_finish_date)
FROM msdb.dbo.backupset
WHERE database_name = x.database_name
)
) a
RIGHT OUTER JOIN sys.databases b ON a.database_name = b.name
WHERE b.name <> 'tempdb' /*Exclude tempdb*/
AND (backup_finish_date < DATEADD(d,-1,GETDATE())
OR backup_finish_date IS NULL)
)
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 8,'DATABASE - No recent Backups','------','------'
INSERT #output_man_script (SectionID, Section,Summary, Severity, HoursToResolveWithTesting )
SELECT 8, name [Section] , ('; Backup Finish Date:' + ISNULL(CONVERT(VARCHAR(20),backup_finish_date,120),'')
+ '; Type:' +coalesce(type,'NO BACKUP')) [Summary]
, @Result_YourServerIsDead
, 2
FROM (
SELECT database_name
, backup_finish_date
, CASE WHEN type = 'D' THEN 'Full'
WHEN type = 'I' THEN 'Differential'
WHEN type = 'L' THEN 'Transaction Log'
WHEN type = 'F' THEN 'File'
WHEN type = 'G' THEN 'Differential File'
WHEN type = 'P' THEN 'Partial'
WHEN type = 'Q' THEN 'Differential partial'
END AS type
FROM msdb.dbo.backupset x
WHERE backup_finish_date = (
SELECT max(backup_finish_date)
FROM msdb.dbo.backupset
WHERE database_name = x.database_name
)
) a
RIGHT OUTER JOIN sys.databases b ON a.database_name = b.name
WHERE b.name <> 'tempdb' /*Exclude tempdb*/
AND (backup_finish_date < DATEADD(d,-1,GETDATE())
OR backup_finish_date IS NULL)
OPTION (RECOMPILE);
RAISERROR (N'Checked for failed backups',0,1) WITH NOWAIT;
/*----------------------------------------
--Look for backups and recovery model information
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 9, 'DATABASE - RPO in minutes and RTO in 15 min slices'
,'DB;Compat;recovery_model;Best RTO HH:MM:SS ;Last Full;Last TL','MM:SS'
INSERT #output_man_script (SectionID, Section,Summary, HoursToResolveWithTesting ) /* Had to change to DAYS thanks to some clients*/
SELECT 9, REPLICATE('|',DATEDIFF(DAY,CASE
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] > x.[Last Full] THEN x.[Last Transaction Log]
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] <= x.[Last Full] THEN [Last Full]
ELSE x.[Last Full] END, GETDATE())) +' ' +
CONVERT(VARCHAR(20),DATEDIFF(HOUR,CASE
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] > x.[Last Full] THEN x.[Last Transaction Log]
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] <= x.[Last Full] THEN [Last Full]
ELSE x.[Last Full] END, GETDATE())) + ' hours'
, (database_name
+ '; ' +CONVERT(VARCHAR(10),[compatibility_level])
+ '; ' + recovery_model
+ '; ' + LEFT(CONVERT(VARCHAR(20),DATEADD(SECOND,x.Timetaken,0) ,114),8)
+ '; ' + CONVERT(VARCHAR(20),x.[Last Full],120)
+ '; ' + CONVERT(VARCHAR(20),x.[Last Transaction Log],120)
)
,
CONVERT(VARCHAR(20),CASE
WHEN
DATEDIFF(HOUR,CASE
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] > x.[Last Full] THEN x.[Last Transaction Log]
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] <= x.[Last Full] THEN [Last Full]
ELSE x.[Last Full] END, GETDATE()) < 1 THEN 0
WHEN
DATEDIFF(HOUR,CASE
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] > x.[Last Full] THEN x.[Last Transaction Log]
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] <= x.[Last Full] THEN [Last Full]
ELSE x.[Last Full] END, GETDATE()) BETWEEN 1 AND 2 THEN 2
WHEN
DATEDIFF(HOUR,CASE
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] > x.[Last Full] THEN x.[Last Transaction Log]
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] <= x.[Last Full] THEN [Last Full]
ELSE x.[Last Full] END, GETDATE()) BETWEEN 2 AND 8 THEN 4
WHEN
DATEDIFF(HOUR,CASE
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] > x.[Last Full] THEN x.[Last Transaction Log]
WHEN recovery_model = 'FULL' AND x.[Last Transaction Log] <= x.[Last Full] THEN [Last Full]
ELSE x.[Last Full] END, GETDATE()) BETWEEN 8 AND 24 THEN 6
ELSE 8 END
)
FROM
(
SELECT database_name, dbs.[compatibility_level] , bs.recovery_model
, MAX(DATEDIFF(SECOND,backup_start_date, backup_finish_date)) 'Timetaken'
, MAX(CASE WHEN type = 'D' THEN backup_finish_date ELSE 0 END) 'Last Full'
, MIN(CASE WHEN type = 'D' THEN backup_start_date ELSE 0 END) 'First Full'
, MAX(CASE WHEN type = 'L' THEN backup_finish_date ELSE 0 END) 'Last Transaction Log'
, MIN(CASE WHEN type = 'L' THEN backup_start_date ELSE 0 END) 'First Transaction Log'
FROM msdb.sys.databases dbs
LEFT OUTER JOIN msdb.dbo.backupset bs WITH (NOLOCK) ON dbs.name = bs.database_name
AND dbs.recovery_model_desc COLLATE DATABASE_DEFAULT = bs.recovery_model COLLATE DATABASE_DEFAULT
WHERE type IN ('D', 'L')
GROUP BY database_name, dbs.[compatibility_level],bs.recovery_model
) x
ORDER BY [Last Full] ASC
OPTION (RECOMPILE);
RAISERROR (N'Recovery Model information matched with backups',0,1) WITH NOWAIT;
/*----------------------------------------
--Check for disk space and latency on the server
----------------------------------------*/
DECLARE @fixeddrives TABLE(drive NVARCHAR(5), FreeSpaceMB MONEY)
INSERT @fixeddrives
EXEC master..xp_fixeddrives
/* more useful info
SELECT * FROM sys.dm_os_sys_info
EXEC xp_msver
*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 10, 'Disk Latency and Space','------','------'
/* Deprecated @ 09-04-2018 Adrian
INSERT #output_man_script (SectionID, Section,Summary,HoursToResolveWithTesting )
SELECT 10, UPPER([Drive]) + '\ ' + REPLICATE('|',CASE WHEN (num_of_reads = 0 AND num_of_writes = 0) THEN 0 ELSE (io_stall/(num_of_reads + num_of_writes)) END) +' '+ CONVERT(VARCHAR(20), CASE WHEN (num_of_reads = 0 AND num_of_writes = 0) THEN 0 ELSE (io_stall/(num_of_reads + num_of_writes)) END) + ' ms'
, 'FreeSpace:'+ CONVERT(VARCHAR(20),[AvailableGBs]) + 'GB'
+ '; Read:' + CONVERT(VARCHAR(20),CASE WHEN num_of_reads = 0 THEN 0 ELSE (io_stall_read_ms/num_of_reads) END )
+ '; Write:' + CONVERT(VARCHAR(20), CASE WHEN io_stall_write_ms = 0 THEN 0 ELSE (io_stall_write_ms/num_of_writes) END )
+ '; Total:' + CONVERT(VARCHAR(20), CASE WHEN (num_of_reads = 0 AND num_of_writes = 0) THEN 0 ELSE (io_stall/(num_of_reads + num_of_writes)) END)
+ ' (Latency in ms)'
, CASE WHEN CASE WHEN (num_of_reads = 0 AND num_of_writes = 0) THEN 0 ELSE (io_stall/(num_of_reads + num_of_writes)) END > 25 THEN 0.4 * (io_stall/(num_of_reads + num_of_writes))/5 ELSE 0 END
, CASE WHEN num_of_reads = 0 THEN 0 ELSE (num_of_bytes_read/num_of_reads) END AS [Avg Bytes/Read]
, CASE WHEN io_stall_write_ms = 0 THEN 0 ELSE (num_of_bytes_written/num_of_writes) END AS [Avg Bytes/Write]
, CASE WHEN (num_of_reads = 0 AND num_of_writes = 0) THEN 0 ELSE ((num_of_bytes_read + num_of_bytes_written)/(num_of_reads + num_of_writes)) END AS [Avg Bytes/Transfer]
FROM (
SELECT LEFT(mf.physical_name, 2) AS Drive
, MAX(CAST(fd.FreeSpaceMB / 1024 as decimal(20,2))) [AvailableGBs]
, SUM(num_of_reads) AS num_of_reads
, SUM(io_stall_read_ms) AS io_stall_read_ms
, SUM(num_of_writes) AS num_of_writes
, SUM(io_stall_write_ms) AS io_stall_write_ms
, SUM(num_of_bytes_read) AS num_of_bytes_read
, SUM(num_of_bytes_written) AS num_of_bytes_written
, SUM(io_stall) AS io_stall
FROM sys.dm_io_virtual_file_stats(NULL, NULL) AS vfs
INNER JOIN sys.master_files AS mf WITH (NOLOCK)
ON vfs.database_id = mf.database_id AND vfs.file_id = mf.file_id
INNER JOIN @fixeddrives fd ON fd.drive COLLATE DATABASE_DEFAULT = LEFT(mf.physical_name, 1) COLLATE DATABASE_DEFAULT
GROUP BY LEFT(mf.physical_name, 2)) AS tab
ORDER BY CASE WHEN (num_of_reads = 0 AND num_of_writes = 0) THEN 0 ELSE (io_stall/(num_of_reads + num_of_writes)) END OPTION (RECOMPILE);
*/
INSERT #output_man_script (SectionID, Section,Summary, Details)
SELECT 10,'[Drive]; [Latency (ms)];[PhysicalDailyIO_GB];[Details]','[READ latency (ms)]; [WRITE latency (ms)]','[FileName]; [Type]'
INSERT #output_man_script (SectionID, Section,Summary,Severity)
SELECT 10, LEFT(mf.physical_name, 2) + '\ '
+ ' ; ' + CONVERT(VARCHAR(250),SUM(io_stall)/SUM(num_of_reads+num_of_writes)) + ' (ms)'
+ ' ; ' + CONVERT(VARCHAR(25),(CONVERT(MONEY,SUM([num_of_reads])) + SUM([num_of_writes])) * 8 /1024/1024/ CONVERT(MONEY,@DaysUptime))+ 'GB/day'
+ '; Free space: ' + CONVERT(VARCHAR(20), MAX(CAST(fd.FreeSpaceMB / 1024 as decimal(20,2)))) + 'GB'
, CONVERT(VARCHAR(25),SUM(io_stall_read_ms)/SUM(num_of_reads)) + ' (ms)'
+ ' ; ' + CONVERT(VARCHAR(25),SUM(io_stall_write_ms)/SUM(num_of_writes) )+ ' (ms)'
, CASE
WHEN SUM(io_stall)/SUM(num_of_reads+num_of_writes) < 10 THEN @Result_Good
WHEN SUM(io_stall)/SUM(num_of_reads+num_of_writes) BETWEEN 10 AND 100 THEN @Result_Warning
WHEN SUM(io_stall)/SUM(num_of_reads+num_of_writes) > 100 THEN @Result_YourServerIsDead
ELSE ''
END
FROM sys.dm_io_virtual_file_stats(NULL, NULL) AS vfs
INNER JOIN sys.master_files AS mf WITH (NOLOCK)
ON vfs.database_id = mf.database_id AND vfs.file_id = mf.file_id
INNER JOIN @fixeddrives fd ON fd.drive COLLATE DATABASE_DEFAULT = LEFT(mf.physical_name, 1) COLLATE DATABASE_DEFAULT
GROUP BY LEFT(mf.physical_name, 2)
INSERT #output_man_script (SectionID, Section,Summary,Severity, Details)
SELECT 10, LEFT ([f].[physical_name], 2) + '\ '
+ '; ' + DB_NAME ([s].[database_id])
+ '; '+ CONVERT(VARCHAR(20), CASE WHEN ([num_of_reads] = 0 AND [num_of_writes] = 0) THEN 0 ELSE ([io_stall] / ([num_of_reads] + [num_of_writes])) END) + ' (ms)'
+ '; '+ CONVERT(VARCHAR(20),CASE WHEN [num_of_reads] + [num_of_writes] = 0 THEN 0 ELSE CONVERT(MONEY,([num_of_reads] + [num_of_writes])) * 8 /1024/1024/ CONVERT(MONEY,@DaysUptime) END ) + 'GB/day'
, CONVERT(VARCHAR(20),CASE WHEN [num_of_reads] = 0 THEN 0 ELSE ([io_stall_read_ms] / [num_of_reads]) END ) + ' (ms)'
+ '; '+CONVERT(VARCHAR(20),CASE WHEN [num_of_writes] = 0 THEN 0 ELSE ([io_stall_write_ms] / [num_of_writes]) END ) + ' (ms)'
, CASE
WHEN (io_stall)/(num_of_reads+num_of_writes) < 10 THEN @Result_Good
WHEN (io_stall)/(num_of_reads+num_of_writes) BETWEEN 10 AND 100 THEN @Result_Warning
WHEN (io_stall)/(num_of_reads+num_of_writes) > 100 THEN @Result_YourServerIsDead
ELSE ''
END
, [f].type_desc COLLATE DATABASE_DEFAULT
+ '; '+ [f].[physical_name] COLLATE DATABASE_DEFAULT
FROM sys.dm_io_virtual_file_stats (NULL,NULL) AS [s]
JOIN sys.master_files AS [f] ON [s].[database_id] = [f].[database_id] AND [s].[file_id] = [f].[file_id]
ORDER BY [f].[database_id], [f].[file_id],LEFT ([f].[physical_name], 2)
RAISERROR (N'Checked for disk latency and space',0,1) WITH NOWAIT;
/*----------------------------------------
--Check for disk space on the server
----------------------------------------*/
SELECT @Kb = 1024.0;
SELECT @PageSize=v.low/@Kb
FROM master..spt_values v
WHERE v.number=1 AND v.type='E';
INSERT @LogSpace
EXEC sp_executesql N'DBCC sqlperf(logspace) WITH NO_INFOMSGS';
INSERT #LogSpace
SELECT DatabaseName
, LogSize
, SpaceUsedPercent
, Status
, NULL
FROM @LogSpace
OPTION (RECOMPILE)
SET @Databasei_Count = 1;
WHILE @Databasei_Count <= @Databasei_Max
BEGIN
SELECT @DatabaseName = d.databasename, @DatabaseState = d.state FROM @Databases d WHERE id = @Databasei_Count AND d.state NOT IN (2,6)
IF EXISTS( SELECT @DatabaseName)
BEGIN
SET @dynamicSQL = 'USE [' + @DatabaseName + '];
DBCC showfilestats WITH NO_INFOMSGS;'
INSERT @FileStats
EXEC sp_executesql @dynamicSQL;
SET @dynamicSQL = 'USE [' + @DatabaseName + '];
SELECT ''' +@DatabaseName + ''', filename, size, ISNULL(FILEGROUP_NAME(groupid),''LOG''), [name] ,maxsize, growth FROM dbo.sysfiles sf ; '
INSERT @FileSize
EXEC sp_executesql @dynamicSQL;
SET @dynamicSQL = 'USE [' + @DatabaseName + '];
DBCC loginfo WITH NO_INFOMSGS;'
INSERT #dbccloginfo
EXEC sp_executesql @dynamicSQL;
SELECT @VLFcount = COUNT(*) FROM #dbccloginfo
DELETE FROM #dbccloginfo
UPDATE #LogSpace SET VLFCount = @VLFcount WHERE DatabaseName = @DatabaseName
END
SET @Databasei_Count = @Databasei_Count + 1
END
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 11, 'DATABASE FILES - Disk Usage Ordered by largest','------','------'
INSERT #output_man_script (SectionID, Section,Summary, Severity, Details)
SELECT 11,
REPLICATE('|',100-[FreeSpace %]) + REPLICATE('''',[FreeSpace %]) +' ('+ CONVERT(VARCHAR(20),CONVERT(INT,ROUND(100-[FreeSpace %],0))) + '% of ' + CONVERT(VARCHAR(20),CONVERT(MONEY,FileSize/1024)) + ')'
, (
+ 'DB size:'
+ CONVERT(VARCHAR(20),CONVERT(MONEY,TotalSize/1024))
+ ' GB; DB:'
+ DatabaseName
+ '; SizeGB:'
+ CONVERT(VARCHAR(20),CONVERT(MONEY,FileSize/1024))
+ '; Growth:'
+ CASE WHEN growth <= 100 THEN CONVERT(VARCHAR(20),growth) + '%' ELSE CONVERT(VARCHAR(20),growth/128) + 'MB' END
)
, CASE WHEN [FreeSpace %] < 5 THEN @Result_ReallyBad WHEN [FreeSpace %] < 10 THEN @Result_Warning ELSE @Result_Good END
,(UPPER(DriveLetter)
+' FG:'
+ FileGroupName
+ CASE WHEN FileGroupName = 'LOG' THEN '(' + CONVERT(VARCHAR(20),VLFCount) + 'vlfs)' ELSE '' END
--, LogicalName
+ '; MAX:'
+ CONVERT(VARCHAR(20),maxsize)
+ '; Used:'
+ CONVERT(VARCHAR(20),100-[FreeSpace %] )
+'%'
+'; Path:'
+ [FileName]
)
FROM (
SELECT
DatabaseName = fsi.DatabaseName
, fs2.TotalSize
, FileGroupName = fsi.FileGroupName
, maxsize
, growth
, LogicalName = RTRIM(fsi.LogicalName)
, [FileName] = RTRIM(fsi.FileName)
, DriveLetter = LEFT(RTRIM(fsi.FileName),2)
, FileSize = CAST(fsi.FileSize*@PageSize/@Kb as decimal(15,2))
, UsedSpace = CAST(ISNULL((fs.UsedExtents*@PageSize*8.0/@Kb), fsi.FileSize*@PageSize/@Kb * ls.SpaceUsedPercent/100.0) as MONEY)
, FreeSpace = CAST(ISNULL(((fsi.FileSize - UsedExtents*8.0)*@PageSize/@Kb), (100.0-ls.SpaceUsedPercent)/100.0 * fsi.FileSize*@PageSize/@Kb) as MONEY)
,[FreeSpace %] = CAST(ISNULL(((fsi.FileSize - UsedExtents*8.0) / fsi.FileSize * 100.0), 100-ls.SpaceUsedPercent) as MONEY)
, VLFCount
FROM @FileSize fsi
LEFT JOIN @FileStats fs ON fs.FileName = fsi.FileName
LEFT JOIN #LogSpace ls ON ls.DatabaseName COLLATE DATABASE_DEFAULT = fsi.DatabaseName COLLATE DATABASE_DEFAULT
LEFT OUTER JOIN (SELECT DatabaseName, SUM(CAST(FileSize*@PageSize/@Kb as decimal(15,2))) TotalSize FROM @FileSize F1 GROUP BY DatabaseName) fs2 ON fs2.DatabaseName COLLATE DATABASE_DEFAULT = fsi.DatabaseName COLLATE DATABASE_DEFAULT
) T1
WHERE T1.[FreeSpace %] < (CASE WHEN @ShowWarnings = 1 THEN 20 ELSE 100 END)
ORDER BY TotalSize DESC, DatabaseName ASC, FileSize DESC
OPTION (RECOMPILE)
RAISERROR (N'Checked free space',0,1) WITH NOWAIT;
/*----------------------------------------
--Look at caching plans, size matters here
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 12, 'CACHING PLANS - as % of total memory used by SQL','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Details )
SELECT 12, REPLICATE('|',[1 use size]/[Size MB]*100) + REPLICATE('''',100- [1 use size]/[Size MB]*100) +' '+ CONVERT(VARCHAR(20),CONVERT(INT,[1 use size]/[Size MB]*100)) +'% of '
+CONVERT(VARCHAR(20),CONVERT(BIGINT,[Size MB])) +'MB is 1 use'
, objtype
+'; Plans:'+ CONVERT(VARCHAR(20),[Total Use])
+'; Total Refs:'+ CONVERT(VARCHAR(20),[Total Rfs])
+'; Avg Use:'+ CONVERT(VARCHAR(20),[Avg Use])
, CONVERT(VARCHAR(20),[Size MB]) + 'MB'
+'; Single use:'+ CONVERT(VARCHAR(20),[1 use size]*100/[Size MB]) + '%'
+'; Single plans:'+ CONVERT(VARCHAR(20),[1 use count])
FROM (
SELECT objtype
, SUM(refcounts)[Total Rfs]
, AVG(refcounts) [Avg Refs]
, SUM(cast(usecounts as bigint)) [Total Use]
, AVG(cast(usecounts as bigint)) [Avg Use]
, CONVERT(MONEY,SUM(size_in_bytes*0.000000953613)) [Size MB]
, SUM(CASE WHEN usecounts = 1 THEN 1 ELSE 0 END) [1 use count]
, SUM(CASE WHEN usecounts = 1 THEN CONVERT(MONEY,size_in_bytes*0.000000953613) ELSE 0 END) [1 use size]
FROM sys.dm_exec_cached_plans GROUP BY objtype
) TCP
OPTION (RECOMPILE)
RAISERROR (N'Got cached plan statistics',0,1) WITH NOWAIT;
/*----------------------------------------
--Get the top 10 query plan bloaters for single use queries
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 13,'CACHING PLANS - TOP 10 single use plans','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Details )
SELECT TOP(10) 13, REPLICATE('|',cp.size_in_bytes/1024/1000) + ' ' + CONVERT(VARCHAR(20),CONVERT(MONEY,cp.size_in_bytes)/1024) + 'KB'
, cp.cacheobjtype
+ ' '+ cp.objtype
+ '; SizeMB:' + CONVERT(VARCHAR(20),CONVERT(MONEY,cp.size_in_bytes)/1024/1000)
, replace(replace(replace(replace(LEFT(CONVERT(NVARCHAR(4000),[text]),@LeftText), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') AS [QueryText]
FROM sys.dm_exec_cached_plans AS cp WITH (NOLOCK)
CROSS APPLY sys.dm_exec_sql_text(plan_handle)
WHERE cp.cacheobjtype = N'Compiled Plan'
AND cp.objtype IN (N'Adhoc', N'Prepared')
AND cp.usecounts = 1
ORDER BY cp.size_in_bytes DESC OPTION (RECOMPILE);
RAISERROR (N'Got cached plan statistics - Biggest single use plans',0,1) WITH NOWAIT;
/*----------------------------------------
--Find cpu load, io and memory per DB
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 14, 'Database: CPU IO Memory DISK DiskIO Latency','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Details )
SELECT 14,'Breakdown', 'DBName; CPU; IO; Buffer; DiskUsage(GB); Disk IO daily (GB); Latency (ms)', 'CPU time(s); Total IO; Buffer Pages; Buffer MB'
INSERT #output_man_script (SectionID, Section,Summary ,Details )
SELECT 14, REPLICATE('|',CONVERT(MONEY,T2.[TotalIO])/ SUM(T2.[TotalIO]) OVER()* 100.0)
+ REPLICATE('''',100 - CONVERT(MONEY,T2.[TotalIO])/ SUM(T2.[TotalIO]) OVER()* 100.0) + '' + CONVERT(VARCHAR(20), CONVERT(INT,ROUND(CONVERT(MONEY,T2.[TotalIO])/ SUM(T2.[TotalIO]) OVER()* 100.0,0))) +'% IO '
, T1.DatabaseName
+ '; ' + ISNULL(CONVERT(VARCHAR(20),CONVERT(INT,ROUND([CPU_Time(Ms)]/1000 * 1.0 /SUM([CPU_Time(Ms)]/1000) OVER()* 100.0,0))),'0') +'%'
+ '; ' + ISNULL(CONVERT(VARCHAR(20),CONVERT(INT,ROUND(CONVERT(MONEY,T2.[TotalIO])/ SUM(T2.[TotalIO]) OVER()* 100.0 ,0))) ,'0')+'%'
+ '; ' + ISNULL(CONVERT(VARCHAR(20),CONVERT(INT,ROUND(CONVERT(MONEY,src.db_buffer_pages )/ SUM(src.db_buffer_pages ) OVER()* 100.0 ,0))),'0')+'%'
+ '; ' + + ISNULL(CONVERT(VARCHAR(20),CONVERT(MONEY,TotalSize/1024)),'')
+ '; ' + DBlatency.[GB/day] +'(GB)'
+ '; ' + DBlatency.[Latency]
, ISNULL(CONVERT(VARCHAR(20),[CPU_Time(Ms)]) + ' (' + CONVERT(VARCHAR(20),CAST([CPU_Time(Ms)]/1000 * 1.0 /SUM([CPU_Time(Ms)]/1000) OVER()* 100.0 AS DECIMAL(5, 2))) + '%)','')
+ '; ' + ISNULL(CONVERT(VARCHAR(20),[TotalIO]) + ' ; Reads: ' + CONVERT(VARCHAR(20),T2.[Number of Reads]) +' ; Writes: '+ CONVERT(VARCHAR(20),T2.[Number of Writes]),'')
+ '; ' + ISNULL(CONVERT(VARCHAR(20),src.db_buffer_pages),'')
+ '; '+ CONVERT(VARCHAR(20),src.db_buffer_pages / 128)
FROM(
SELECT TOP 100 PERCENT
DatabaseID
,DB_Name(DatabaseID)AS [DatabaseName]
,SUM(total_worker_time)AS [CPU_Time(Ms)]
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY
(
SELECT CONVERT(int, value)AS [DatabaseID]
FROM sys.dm_exec_plan_attributes(qs.plan_handle)
WHERE attribute =N'dbid'
)AS epa
GROUP BY DatabaseID
ORDER BY SUM(total_worker_time) DESC
) T1
LEFT OUTER JOIN (
SELECT
Name AS 'DatabaseName'
, SUM(num_of_reads) AS'Number of Reads'
, SUM(num_of_writes) AS'Number of Writes'
, SUM(num_of_writes) + SUM(num_of_reads) [TotalIO]
FROM sys.dm_io_virtual_file_stats(NULL,NULL) I
INNER JOIN sys.databases d ON I.database_id = d.database_id
GROUP BY Name
) T2 ON T1.DatabaseName = T2.DatabaseName
LEFT OUTER JOIN
(
SELECT database_id,
db_buffer_pages =COUNT_BIG(*)
FROM sys.dm_os_buffer_descriptors
GROUP BY database_id
) src ON src.database_id = T1.DatabaseID
LEFT OUTER JOIN (SELECT DatabaseName, SUM(CAST(FileSize*@PageSize/@Kb as decimal(15,2))) TotalSize FROM @FileSize F1 GROUP BY DatabaseName) fs2 ON fs2.DatabaseName COLLATE DATABASE_DEFAULT = T2.DatabaseName COLLATE DATABASE_DEFAULT
LEFT OUTER JOIN (
SELECT DB_NAME ([s].[database_id]) [DBName]
, CONVERT(VARCHAR(20), CASE WHEN (SUM([num_of_reads]) = 0 AND SUM([num_of_writes]) = 0) THEN 0
ELSE (SUM([io_stall]) / (SUM([num_of_reads]) + SUM([num_of_writes]))) END) + ' (ms)' [Latency]
, CONVERT(VARCHAR(20),CASE WHEN SUM([num_of_reads]) + SUM([num_of_writes]) = 0 THEN 0
ELSE CONVERT(MONEY,(SUM([num_of_reads]) + SUM([num_of_writes]))) * 8 /1024/1024/ CONVERT(MONEY,@DaysUptime) END ) [GB/day]
, CONVERT(VARCHAR(20),CASE WHEN SUM([num_of_reads]) + SUM([num_of_writes]) = 0 THEN 0
ELSE CONVERT(MONEY,(SUM(CONVERT(MONEY,[num_of_reads])) + SUM([num_of_writes]))) END) [DBTotalIO]
FROM sys.dm_io_virtual_file_stats (NULL,NULL) AS [s]
JOIN sys.master_files AS [f] ON [s].[database_id] = [f].[database_id] AND [s].[file_id] = [f].[file_id]
GROUP BY DB_NAME ([s].[database_id])
) DBlatency ON DBlatency.DBName = T1.DatabaseName
WHERE T1.DatabaseName IS NOT NULL
ORDER BY [TotalIO] DESC,[CPU_Time(Ms)] DESC
OPTION (RECOMPILE) ;
RAISERROR (N'Checked CPU, IO and memory usage',0,1) WITH NOWAIT;
/*----------------------------------------
--Get to wait types, the TOP 10 would be good for now
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 15, 'TOP 10 WAIT STATS','------','------'
--INSERT @Waits
INSERT #output_man_script (SectionID, Section,Summary,Severity,HoursToResolveWithTesting )
SELECT TOP 10 15,
REPLICATE ('|', 100.0 * [wait_time_ms] / SUM ([wait_time_ms]) OVER())+ REPLICATE ('''', 100- 100.0 * [wait_time_ms] / SUM ([wait_time_ms]) OVER()) + CONVERT(VARCHAR(20), CONVERT(INT,ROUND(100.0 * [wait_time_ms] / SUM ([wait_time_ms]) OVER(),0))) + '%'
, [wait_type] + ':'
+ ';HH:' + CONVERT(VARCHAR(20),CONVERT(MONEY,SUM(wait_time_ms / 1000.0 / 60 / 60) OVER (PARTITION BY wait_type)))
+ ':MM/HH/VCPU:' + CONVERT(VARCHAR(20),CONVERT(MONEY,SUM(60.0 * wait_time_ms) OVER (PARTITION BY wait_type) / @minutesSinceRestart /60000/@CPUcount))
+'; Wait(s):'+ CONVERT(VARCHAR(20),CONVERT(BIGINT,[wait_time_ms] / 1000.0)) + '(s)'
+'; Wait count:' + CONVERT(VARCHAR(20),[waiting_tasks_count])
, CASE
WHEN CONVERT(MONEY,SUM(60.0 * wait_time_ms) OVER (PARTITION BY wait_type) / @minutesSinceRestart /60000/@CPUcount) BETWEEN 10 AND 30 THEN @Result_Warning
WHEN CONVERT(MONEY,SUM(60.0 * wait_time_ms) OVER (PARTITION BY wait_type) / @minutesSinceRestart /60000/@CPUcount) > 30 THEN @Result_YourServerIsDead
ELSE @Result_Good END
, CASE
WHEN [wait_type] = 'CXPACKET' THEN 5
WHEN [wait_type] LIKE 'PAGEIOLATCH%' THEN 8
ELSE 0
END
FROM sys.dm_os_wait_stats
WHERE
[wait_type] NOT IN (
/*[Last updated: November 27, 2017]*/
-- These wait types are almost 100% never a problem and so they are
-- filtered out to avoid them skewing the results. Click on the URL
-- for more information.
N'BROKER_EVENTHANDLER', -- https://www.sqlskills.com/help/waits/BROKER_EVENTHANDLER
N'BROKER_RECEIVE_WAITFOR', -- https://www.sqlskills.com/help/waits/BROKER_RECEIVE_WAITFOR
N'BROKER_TASK_STOP', -- https://www.sqlskills.com/help/waits/BROKER_TASK_STOP
N'BROKER_TO_FLUSH', -- https://www.sqlskills.com/help/waits/BROKER_TO_FLUSH
N'BROKER_TRANSMITTER', -- https://www.sqlskills.com/help/waits/BROKER_TRANSMITTER
N'CHECKPOINT_QUEUE', -- https://www.sqlskills.com/help/waits/CHECKPOINT_QUEUE
N'CHKPT', -- https://www.sqlskills.com/help/waits/CHKPT
N'CLR_AUTO_EVENT', -- https://www.sqlskills.com/help/waits/CLR_AUTO_EVENT
N'CLR_MANUAL_EVENT', -- https://www.sqlskills.com/help/waits/CLR_MANUAL_EVENT
N'CLR_SEMAPHORE', -- https://www.sqlskills.com/help/waits/CLR_SEMAPHORE
-- Maybe comment these four out if you have mirroring issues
N'DBMIRROR_DBM_EVENT', -- https://www.sqlskills.com/help/waits/DBMIRROR_DBM_EVENT
N'DBMIRROR_EVENTS_QUEUE', -- https://www.sqlskills.com/help/waits/DBMIRROR_EVENTS_QUEUE
N'DBMIRROR_WORKER_QUEUE', -- https://www.sqlskills.com/help/waits/DBMIRROR_WORKER_QUEUE
N'DBMIRRORING_CMD', -- https://www.sqlskills.com/help/waits/DBMIRRORING_CMD
N'DIRTY_PAGE_POLL', -- https://www.sqlskills.com/help/waits/DIRTY_PAGE_POLL
N'DISPATCHER_QUEUE_SEMAPHORE', -- https://www.sqlskills.com/help/waits/DISPATCHER_QUEUE_SEMAPHORE
N'EXECSYNC', -- https://www.sqlskills.com/help/waits/EXECSYNC
N'FSAGENT', -- https://www.sqlskills.com/help/waits/FSAGENT
N'FT_IFTS_SCHEDULER_IDLE_WAIT', -- https://www.sqlskills.com/help/waits/FT_IFTS_SCHEDULER_IDLE_WAIT
N'FT_IFTSHC_MUTEX', -- https://www.sqlskills.com/help/waits/FT_IFTSHC_MUTEX
-- Maybe comment these six out if you have AG issues
N'HADR_CLUSAPI_CALL', -- https://www.sqlskills.com/help/waits/HADR_CLUSAPI_CALL
N'HADR_FILESTREAM_IOMGR_IOCOMPLETION', -- https://www.sqlskills.com/help/waits/HADR_FILESTREAM_IOMGR_IOCOMPLETION
N'HADR_LOGCAPTURE_WAIT', -- https://www.sqlskills.com/help/waits/HADR_LOGCAPTURE_WAIT
N'HADR_NOTIFICATION_DEQUEUE', -- https://www.sqlskills.com/help/waits/HADR_NOTIFICATION_DEQUEUE
N'HADR_TIMER_TASK', -- https://www.sqlskills.com/help/waits/HADR_TIMER_TASK
N'HADR_WORK_QUEUE', -- https://www.sqlskills.com/help/waits/HADR_WORK_QUEUE
N'KSOURCE_WAKEUP', -- https://www.sqlskills.com/help/waits/KSOURCE_WAKEUP
N'LAZYWRITER_SLEEP', -- https://www.sqlskills.com/help/waits/LAZYWRITER_SLEEP
N'LOGMGR_QUEUE', -- https://www.sqlskills.com/help/waits/LOGMGR_QUEUE
N'MEMORY_ALLOCATION_EXT', -- https://www.sqlskills.com/help/waits/MEMORY_ALLOCATION_EXT
N'ONDEMAND_TASK_QUEUE', -- https://www.sqlskills.com/help/waits/ONDEMAND_TASK_QUEUE
N'PREEMPTIVE_XE_GETTARGETSTATE', -- https://www.sqlskills.com/help/waits/PREEMPTIVE_XE_GETTARGETSTATE
N'PWAIT_ALL_COMPONENTS_INITIALIZED', -- https://www.sqlskills.com/help/waits/PWAIT_ALL_COMPONENTS_INITIALIZED
N'PWAIT_DIRECTLOGCONSUMER_GETNEXT', -- https://www.sqlskills.com/help/waits/PWAIT_DIRECTLOGCONSUMER_GETNEXT
N'QDS_PERSIST_TASK_MAIN_LOOP_SLEEP', -- https://www.sqlskills.com/help/waits/QDS_PERSIST_TASK_MAIN_LOOP_SLEEP
N'QDS_ASYNC_QUEUE', -- https://www.sqlskills.com/help/waits/QDS_ASYNC_QUEUE
N'QDS_CLEANUP_STALE_QUERIES_TASK_MAIN_LOOP_SLEEP',
-- https://www.sqlskills.com/help/waits/QDS_CLEANUP_STALE_QUERIES_TASK_MAIN_LOOP_SLEEP
N'QDS_SHUTDOWN_QUEUE', -- https://www.sqlskills.com/help/waits/QDS_SHUTDOWN_QUEUE
N'REDO_THREAD_PENDING_WORK', -- https://www.sqlskills.com/help/waits/REDO_THREAD_PENDING_WORK
N'REQUEST_FOR_DEADLOCK_SEARCH', -- https://www.sqlskills.com/help/waits/REQUEST_FOR_DEADLOCK_SEARCH
N'RESOURCE_QUEUE', -- https://www.sqlskills.com/help/waits/RESOURCE_QUEUE
N'SERVER_IDLE_CHECK', -- https://www.sqlskills.com/help/waits/SERVER_IDLE_CHECK
N'SLEEP_BPOOL_FLUSH', -- https://www.sqlskills.com/help/waits/SLEEP_BPOOL_FLUSH
N'SLEEP_DBSTARTUP', -- https://www.sqlskills.com/help/waits/SLEEP_DBSTARTUP
N'SLEEP_DCOMSTARTUP', -- https://www.sqlskills.com/help/waits/SLEEP_DCOMSTARTUP
N'SLEEP_MASTERDBREADY', -- https://www.sqlskills.com/help/waits/SLEEP_MASTERDBREADY
N'SLEEP_MASTERMDREADY', -- https://www.sqlskills.com/help/waits/SLEEP_MASTERMDREADY
N'SLEEP_MASTERUPGRADED', -- https://www.sqlskills.com/help/waits/SLEEP_MASTERUPGRADED
N'SLEEP_MSDBSTARTUP', -- https://www.sqlskills.com/help/waits/SLEEP_MSDBSTARTUP
N'SLEEP_SYSTEMTASK', -- https://www.sqlskills.com/help/waits/SLEEP_SYSTEMTASK
N'SLEEP_TASK', -- https://www.sqlskills.com/help/waits/SLEEP_TASK
N'SLEEP_TEMPDBSTARTUP', -- https://www.sqlskills.com/help/waits/SLEEP_TEMPDBSTARTUP
N'SNI_HTTP_ACCEPT', -- https://www.sqlskills.com/help/waits/SNI_HTTP_ACCEPT
N'SP_SERVER_DIAGNOSTICS_SLEEP', -- https://www.sqlskills.com/help/waits/SP_SERVER_DIAGNOSTICS_SLEEP
N'SQLTRACE_BUFFER_FLUSH', -- https://www.sqlskills.com/help/waits/SQLTRACE_BUFFER_FLUSH
N'SQLTRACE_INCREMENTAL_FLUSH_SLEEP', -- https://www.sqlskills.com/help/waits/SQLTRACE_INCREMENTAL_FLUSH_SLEEP
N'SQLTRACE_WAIT_ENTRIES', -- https://www.sqlskills.com/help/waits/SQLTRACE_WAIT_ENTRIES
N'WAIT_FOR_RESULTS', -- https://www.sqlskills.com/help/waits/WAIT_FOR_RESULTS
N'WAITFOR', -- https://www.sqlskills.com/help/waits/WAITFOR
N'WAITFOR_TASKSHUTDOWN', -- https://www.sqlskills.com/help/waits/WAITFOR_TASKSHUTDOWN
N'WAIT_XTP_RECOVERY', -- https://www.sqlskills.com/help/waits/WAIT_XTP_RECOVERY
N'WAIT_XTP_HOST_WAIT', -- https://www.sqlskills.com/help/waits/WAIT_XTP_HOST_WAIT
N'WAIT_XTP_OFFLINE_CKPT_NEW_LOG', -- https://www.sqlskills.com/help/waits/WAIT_XTP_OFFLINE_CKPT_NEW_LOG
N'WAIT_XTP_CKPT_CLOSE', -- https://www.sqlskills.com/help/waits/WAIT_XTP_CKPT_CLOSE
N'XE_DISPATCHER_JOIN', -- https://www.sqlskills.com/help/waits/XE_DISPATCHER_JOIN
N'XE_DISPATCHER_WAIT', -- https://www.sqlskills.com/help/waits/XE_DISPATCHER_WAIT
N'XE_TIMER_EVENT' -- https://www.sqlskills.com/help/waits/XE_TIMER_EVENT
) AND [waiting_tasks_count] > 0
ORDER BY [wait_time_ms] DESC
OPTION (RECOMPILE)
RAISERROR (N'Filtered wait stats have been prepared',0,1) WITH NOWAIT;
RAISERROR (N'Looking at query stats.. this might take a wee while',0,1) WITH NOWAIT;
/*----------------------------------------
--Look at Plan Cache and DMV to find missing index impacts
----------------------------------------*/
INSERT #querystats
SELECT
qs.execution_count
, qs.total_logical_reads
, CONVERT(MONEY,qs.total_logical_reads)/1000 [Total_MBsRead]
, qs.total_logical_writes
, CONVERT(MONEY,qs.total_logical_writes)/1000 [Total_MBsWrite]
, qs.total_worker_time, CONVERT(MONEY,qs.total_elapsed_time)/1000000 total_elapsed_time_in_S
, qs.total_elapsed_time
, qs.last_execution_time
, qs.plan_handle
, qs.sql_handle
FROM sys.dm_exec_query_stats qs WITH (NOLOCK)
ORDER BY [Total_MBsRead] DESC, qs.total_elapsed_time, qs.execution_count
INSERT #output_man_script (SectionID, Section,Summary, Details, QueryPlan) SELECT 16, 'PLAN INSIGHT - MISSING INDEX','------','------',NULL
;WITH XMLNAMESPACES
(DEFAULT 'http://schemas.microsoft.com/sqlserver/2004/07/showplan')
INSERT #output_man_script (SectionID, Section,Summary, Details, QueryPlan,HoursToResolveWithTesting)
SELECT 16,
REPLICATE('|',TFF.[SecondsSavedPerDay]/28800*100) + ' $' + CONVERT(VARCHAR(20),CONVERT(MONEY,TFF.[SecondsSavedPerDay]/28800) * @FTECost) + 'pa ('+CONVERT(VARCHAR(20),CONVERT(MONEY,TFF.[SecondsSavedPerDay]/28800) )+ 'FTE)' [Section]
,CONVERT(VARCHAR(20),TFF.execution_count) + ' executions'
+ '; Cost:' + CONVERT(VARCHAR(20),TFF.SubTreeCost)
+ '; GuessingCost(s):' + CONVERT(VARCHAR(20),(ISNULL(TFF.SubTreeCost * @secondsperoperator * TFF.execution_count * (100-TFF.impact),0)))
+ '; Impact:' +CONVERT(VARCHAR(20), TFF.impact)
+ '; EstRows:' + CONVERT(VARCHAR(20),TFF.estRows)
+ '; Magic:' + CONVERT(VARCHAR(20),TFF.Magic)
+ '; ' + CONVERT(VARCHAR(20), TFF.SecondsSavedPerDay) + '(s)'
+ '; Total time:' + CONVERT(VARCHAR(20),TFF.total_elapsed_time/1000/1000) + '(s)' [Summary]
, ';'+TFF.[statement]
+ ISNULL(':EQ:'+ TFF.equality_columns,'')
+ ISNULL(':INEQ:'+ TFF.inequality_columns,'')
+ ISNULL(':INC:'+ TFF.include_columns,'') [Details]
, tp.query_plan
, CONVERT(VARCHAR(20),CONVERT(MONEY,TFF.[SecondsSavedPerDay]/28800 * 8 * 3))
FROM (
SELECT
SUM(TF.SubTreeCost) SubTreeCost
, SUM(CONVERT(FLOAT,TF.estRows )) estRows
, SUM(ISNULL([Magic],0)) [Magic]
, SUM(TF.impact/100 * TF.total_elapsed_time )/1000000/@DaysOldestCachedQuery [SecondsSavedPerDay]
, TF.impact
, TF.execution_count
, TF.total_elapsed_time
, TF.database_id
, TF.OBJECT_ID
, TF.statement
, TF.equality_columns
, TF.inequality_columns
, TF.include_columns
, TF.plan_handle
FROM
(
SELECT
--, query_plan
--, n.value('(@StatementText)[1]', 'VARCHAR(4000)') AS sql_text
CONVERT(FLOAT,n.value('(@StatementSubTreeCost)', 'VARCHAR(4000)')) AS SubTreeCost
, n.value('(@StatementEstRows)', 'VARCHAR(4000)') AS estRows
, CONVERT(FLOAT,n.value('(//MissingIndexGroup/@Impact)[1]', 'FLOAT')) AS impact
, tab.execution_count
, tab.total_elapsed_time
, tab.plan_handle
, DB_ID(REPLACE(REPLACE(n.value('(//MissingIndex/@Database)[1]', 'VARCHAR(128)'),'[',''),']','')) AS database_id
, OBJECT_ID(n.value('(//MissingIndex/@Database)[1]', 'VARCHAR(128)') + '.' +
n.value('(//MissingIndex/@Schema)[1]', 'VARCHAR(128)') + '.' +
n.value('(//MissingIndex/@Table)[1]', 'VARCHAR(128)')) AS OBJECT_ID,
n.value('(//MissingIndex/@Database)[1]', 'VARCHAR(128)') + '.' +
n.value('(//MissingIndex/@Schema)[1]', 'VARCHAR(128)') + '.' +
n.value('(//MissingIndex/@Table)[1]', 'VARCHAR(128)')
AS statement,
( SELECT DISTINCT c.value('(@Name)[1]', 'VARCHAR(128)') + ', '
FROM n.nodes('//ColumnGroup') AS t(cg)
CROSS APPLY cg.nodes('Column') AS r(c)
WHERE cg.value('(@Usage)[1]', 'VARCHAR(128)') = 'EQUALITY'
FOR XML PATH('')
) AS equality_columns,
( SELECT DISTINCT c.value('(@Name)[1]', 'VARCHAR(128)') + ', '
FROM n.nodes('//ColumnGroup') AS t(cg)
CROSS APPLY cg.nodes('Column') AS r(c)
WHERE cg.value('(@Usage)[1]', 'VARCHAR(128)') = 'INEQUALITY'
FOR XML PATH('')
) AS inequality_columns,
( SELECT DISTINCT c.value('(@Name)[1]', 'VARCHAR(128)') + ', '
FROM n.nodes('//ColumnGroup') AS t(cg)
CROSS APPLY cg.nodes('Column') AS r(c)
WHERE cg.value('(@Usage)[1]', 'VARCHAR(128)') = 'INCLUDE'
FOR XML PATH('')
) AS include_columns
FROM
(
SELECT query_plan
, qs.*
FROM (
SELECT plan_handle
,SUM(qs.execution_count )execution_count
,MAX(qs.total_elapsed_time )total_elapsed_time
FROM #querystats qs WITH(NOLOCK)
WHERE qs.Id <= @TopQueries
GROUP BY plan_handle
HAVING SUM(qs.total_elapsed_time ) > @MinWorkerTime
) AS qs
OUTER APPLY sys.dm_exec_query_plan(qs.plan_handle) tp
-- WHERE tp.query_plan.exist('//MissingIndex')=1
--AND qs.execution_count > @MinExecutionCount
) AS tab
CROSS APPLY query_plan.nodes('//StmtSimple') AS q(n)
) TF
LEFT OUTER JOIN (
SELECT TOP 100 PERCENT (( ISNULL(user_seeks,0) + ISNULL(user_scans,0 ) * avg_total_user_cost * avg_user_impact)/1) [Magic]
,user_seeks
,user_scans
,user_seeks + user_scans AllScans
,avg_total_user_cost
,avg_user_impact
, mid.object_id
, [statement]
, equality_columns
, inequality_columns
, included_columns
FROM sys.dm_db_missing_index_group_stats AS migs
INNER JOIN sys.dm_db_missing_index_groups AS mig ON migs.group_handle = mig.index_group_handle
INNER JOIN sys.dm_db_missing_index_details AS mid ON mig.index_handle = mid.index_handle
LEFT OUTER JOIN sys.objects WITH (nolock) ON mid.OBJECT_ID = sys.objects.OBJECT_ID
ORDER BY [Magic] DESC
) TStats ON TStats.object_id = TF.OBJECT_ID
AND TStats.statement = TF.statement
AND ISNULL(TStats.equality_columns +', ',0) = ISNULL(TF.equality_columns ,0)
AND ISNULL(TStats.inequality_columns +', ',0) = ISNULL(TF.inequality_columns,0)
AND ISNULL(TStats.included_columns +', ',0) = ISNULL(TF.include_columns,0)
GROUP BY TF.impact
, TF.execution_count
, TF.total_elapsed_time
, TF.database_id
, TF.OBJECT_ID
, TF.statement
, TF.equality_columns
, TF.inequality_columns
, TF.include_columns
, TF.plan_handle
) TFF
OUTER APPLY sys.dm_exec_query_plan(TFF.plan_handle) tp
WHERE [statement] <> '[msdb].[dbo].[backupset]'
ORDER BY [SecondsSavedPerDay] DESC, total_elapsed_time DESC OPTION (RECOMPILE);
INSERT #output_man_script (SectionID, Section,Summary, Details, QueryPlan) SELECT 17,'PLAN INSIGHT - EVERYTHING','------','------',NULL
INSERT #output_man_script (SectionID, Section,Summary, Details, QueryPlan)
SELECT 17,
/*Bismillah, Find most intensive query*/
REPLICATE ('|', CASE WHEN [Total_GBsRead]*[Impact%] = 0 THEN 0 ELSE 100.0 * [Total_GBsRead]*[Impact%] / SUM ([Total_GBsRead]*[Impact%]) OVER() END)
+ CASE WHEN [Impact%] > 0 THEN CONVERT(VARCHAR(20),CONVERT(INT,ROUND(100.0 * [Total_GBsRead]*[Impact%] / SUM ([Total_GBsRead]*[Impact%]) OVER(),0))) + '%' ELSE '' END [Section]
, CONVERT(VARCHAR(20),[execution_count])
+' events'
+CASE
WHEN [Impact%] > 0 AND [ImpactType] = 'Missing Index' THEN ' Impacted by: Missing Index (' + CONVERT(VARCHAR(20),[Impact%]) + '%)'
WHEN [Impact%] > 0 AND [ImpactType] ='CONVERT_IMPLICIT' THEN ' Impacted by: CONVERT_IMPLICIT'
ELSE '' END
+ '; ' + CONVERT(VARCHAR(20),[Total_GBsRead]) +'GBs of I/O'
+ '(' + CONVERT(VARCHAR(20),[total_logical_reads]) + ' pages)'
+' took:' + CONVERT(VARCHAR(20),[total_elapsed_time_in_S]) +'(seconds)' [Summary]
, ISNULL([Database] +':','')
+ CASE WHEN [Impact%] > 0
THEN 'Could reduce to: ' + CONVERT(VARCHAR(20), [Total_GBsRead] -([Impact%]/100 * [Total_GBsRead])) + 'GB'+ ' in ' + CONVERT(VARCHAR(20), CONVERT(INT,[total_elapsed_time_in_S] -([Impact%]/100) * [total_elapsed_time_in_S])) +'(s)'
ELSE ''
END
+ '; Writes:'+ CONVERT(VARCHAR(20),[total_logical_writes])
+ '(' + CONVERT(VARCHAR(20),[Total_GBsWrite]) + 'GB)' [Details]
--, T1.[total_worker_time], T1.[last_execution_time]
, [query_plan] /*This makes the query crawl, only add back when you have time or need to see the full plans, but you dont want this for 10k rows*/
FROM (
SELECT TOP 100 PERCENT
CASE
WHEN PATINDEX('%MissingIndexes%',CAST(qp.query_plan AS NVARCHAR(MAX))) > 0 THEN 'Missing Index'
WHEN PATINDEX('%PlanAffectingConvert%',CAST(qp.query_plan AS NVARCHAR(MAX))) > 0 THEN 'CONVERT_IMPLICIT' ELSE NULL END [ImpactType]
, CASE
WHEN PATINDEX('%MissingIndexGroup Impact%',CAST(qp.query_plan AS NVARCHAR(MAX))) > 0
THEN CONVERT(MONEY,REPLACE(REPLACE(REPLACE(SUBSTRING(CONVERT(NVARCHAR(MAX),qp.query_plan),PATINDEX('%MissingIndexGroup Impact%',CAST(qp.query_plan AS NVARCHAR(MAX)))+26,6),'"><',''),'"',''),'>',''))
ELSE NULL
END [Impact%]
, T1.[execution_count], T1.[total_logical_reads], T1.[total_logical_writes]
, [Total_MBsRead]/1000 [Total_GBsRead]
, [Total_MBsWrite]/1000 [Total_GBsWrite]
, T1.[total_worker_time], T1.[total_elapsed_time_in_S], T1.[last_execution_time]
, replace(replace(replace(qt.[Text],CHAR(10),' '), CHAR(13), ' '), ' ',' ') [QueryText]
, qp.[query_plan]
, DB_NAME(qp.dbid) [Database]
, OBJECT_NAME(qp.objectid) [Object]
FROM
#querystats T1
CROSS APPLY sys.dm_exec_query_plan(T1.plan_handle) qp
CROSS APPLY sys.dm_exec_sql_text(T1.sql_handle) qt
WHERE T1.Id <= @TopQueries
--WHERE PATINDEX('%MissingIndex%',CAST(query_plan AS NVARCHAR(MAX))) > 0
ORDER BY CASE WHEN PATINDEX('%MissingIndexes%',CAST(qp.query_plan AS NVARCHAR(MAX))) > 0 THEN 1 ELSE 0 END DESC
,CASE WHEN PATINDEX('%MissingIndexes%',CAST(qp.query_plan AS NVARCHAR(MAX))) > 0
THEN PATINDEX('%MissingIndexes%',CAST(qp.query_plan AS NVARCHAR(MAX))) * [Total_MBsRead] ELSE 0 END DESC
) q
ORDER BY CASE WHEN [Impact%] > 0 THEN 1 ELSE 0 END DESC, [Total_GBsRead]*[Impact%] DESC OPTION (RECOMPILE);
RAISERROR (N'Evaluated execution plans for missing indexes',0,1) WITH NOWAIT;
/*----------------------------------------
--Get missing index information for each database
----------------------------------------*/
RAISERROR (N'Looking for missing indexes in DMVs',0,1) WITH NOWAIT;
SET @dynamicSQL = '
USE [master]
SELECT LEFT([statement],(PATINDEX(''%.%'',[statement]))-1) [Database]
, (( user_seeks + user_scans ) * avg_total_user_cost * avg_user_impact)/' + CONVERT(NVARCHAR,@DaysOldestCachedQuery) + ' daily_magic_benefit_number
, [Table] = [statement]
, [CreateIndexStatement] = ''CREATE NONCLUSTERED INDEX IX_LEXEL_'' + REPLACE(REPLACE(REVERSE(LEFT(REVERSE([statement]),(PATINDEX(''%.%'',REVERSE([statement])))-1)),'']'',''''),''['','''')
+ REPLACE(REPLACE(REPLACE(LEFT(ISNULL(mid.equality_columns,'''')+ISNULL(mid.inequality_columns,''''),15), ''['', ''''), '']'',''''), '', '',''_'') + ''_''+ REPLACE(CONVERT(VARCHAR(20),GETDATE(),102),''.'',''_'') + ''T'' + REPLACE(CONVERT(VARCHAR(20),GETDATE(),108),'':'',''_'') + '' ON '' + [statement]
+ CHAR(13) + CHAR(10) + '' ( ''
+ CHAR(13) + CHAR(10) +''< be clever here > ''
+ CHAR(13) + CHAR(10) + '')''
+ CHAR(13) + CHAR(10) + ISNULL(''INCLUDE ('' + mid.included_columns + '')'','''')
' /* Don't be too clever now.
+ CHAR(13) + CHAR(10) + ''WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = ON, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = '+@rebuildonline+', ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON,FILLFACTOR = 98) ON [PRIMARY];''
*/
+ '
, mid.equality_columns
, mid.inequality_columns
, mid.included_columns
, ''SELECT STUFF(( SELECT '''', '''' + [Columns] FROM ( SELECT TOP 25 c1.[id], [Columns], [Count] FROM (
SELECT ROW_NUMBER() OVER(ORDER BY [RankMe]) [id], LTRIM([Columns]) [Columns]
FROM (VALUES('''''' + REPLACE(ISNULL(mid.equality_columns + ISNULL('',''+ mid.inequality_columns,''''),ISNULL(mid.inequality_columns,'''')) ,'','','''''',1),('''''')
+'''''',1))t ([Columns],[RankMe]) ) c1 ''
+ '' LEFT OUTER JOIN (
SELECT ROW_NUMBER() OVER(ORDER BY [Count]) [id] ,LTRIM([Count]) [Count] FROM (VALUES((SELECT COUNT (DISTINCT '' + REPLACE(ISNULL(mid.equality_columns + ISNULL('',''+ mid.inequality_columns,''''),ISNULL(mid.inequality_columns,'''')) ,'',''
,'') FROM '' + [statement] +'')),((SELECT COUNT (DISTINCT '')
+'') FROM '' + [statement] +'')))t ([Count]) )c2 ON c2.id = c1.id
ORDER BY c2.[Count] * 1 DESC
) t1 FOR XML PATH('''''''')),1,1,'''''''') AS NameValues'' [BeingClever]
FROM sys.dm_db_missing_index_group_stats AS migs
INNER JOIN sys.dm_db_missing_index_groups AS mig ON migs.group_handle = mig.index_group_handle
INNER JOIN sys.dm_db_missing_index_details AS mid ON mig.index_handle = mid.index_handle
ORDER BY daily_magic_benefit_number DESC, [CreateIndexStatement] DESC OPTION (RECOMPILE);'
INSERT #MissingIndex
EXEC sp_executesql @dynamicSQL;
/*----------------------------------------
--Loop all the user databases to run database specific commands against them
----------------------------------------*/
SET @dynamicSQL = ''
SET @Databasei_Count = 1;
WHILE @Databasei_Count <= @Databasei_Max
BEGIN
SELECT @DatabaseName = d.databasename, @DatabaseState = d.state FROM @Databases d WHERE id = @Databasei_Count AND d.state NOT IN (2,6) OPTION (RECOMPILE)
SET @ErrorMessage = 'Looping Database ' + CONVERT(VARCHAR(4),@Databasei_Count) +' of ' + CONVERT(VARCHAR(4),@Databasei_Max ) + ': [' + @DatabaseName + '] ';
RAISERROR (@ErrorMessage,0,1) WITH NOWAIT;
IF EXISTS( SELECT @DatabaseName)
BEGIN
/*13. Find idle indexes*/
/*---------------------------------------Shows Indexes that have never been used---------------------------------------*/
RAISERROR (N'Skipping never used indexes',0,1) WITH NOWAIT;
SET ANSI_WARNINGS OFF
SET @dynamicSQL = '
USE ['+@DatabaseName +']
DECLARE @DaysAgo INT, @TheDate DATETIME
SET @DaysAgo = 15
SET @TheDate = CONVERT(DATETIME,CONVERT(INT,DATEADD(DAY,-@DaysAgo,GETDATE())))
DECLARE @db_id smallint
SET @db_id=db_id()
SELECT db_name(db_id()),
CASE WHEN b.type_desc = ''CLUSTERED'' THEN ''Consider Carefully'' ELSE ''May remove'' END Consideration
, t.name TableName, b.type_desc TypeDesc, b.name IndexName, a.user_updates Updates, a.last_user_scan, a.last_user_seek
--, SUM(aa.page_count) Pages
FROM sys.dm_db_index_usage_stats as a
JOIN sys.indexes AS b ON a.object_id = b.object_id AND a.index_id = b.index_id
LEFT OUTER JOIN sys.tables AS t ON b.[object_id] = t.[object_id]
--LEFT OUTER JOIN INFORMATION_SCHEMA.TABLES isc ON isc.TABLE_NAME = t.name
--LEFT OUTER JOIN sys.dm_db_index_physical_stats (@db_id,NULL,NULL, NULL, NULL) AS aa ON aa.object_id = a.object_id
WHERE b.[type_desc] NOT LIKE ''Heap''
AND ISNULL(a.user_seeks,0) + ISNULL(a.user_scans,0) + ISNULL(a.system_scans,0) + ISNULL(a.user_lookups,0) = 0
--AND (DATEDIFF(DAY,a.last_user_scan,GETDATE()) > @DaysAgo AND DATEDIFF(DAY,a.last_user_seek,GETDATE()) > @DaysAgo)
--AND t.name NOT LIKE ''sys%''
GROUP BY t.name, b.type_desc, b.name, a.user_updates, a.last_user_scan, a.last_user_seek
ORDER BY [Updates] DESC OPTION (RECOMPILE)
'
INSERT #NeverUsedIndex
EXEC sp_executesql @dynamicSQL;
SET ANSI_WARNINGS ON
/*14. Find heaps*/
/*---------------------------------------Shows tables without primary key. Heaps---------------------------------------*/
RAISERROR (N'Looking for heap tables',0,1) WITH NOWAIT;
SET @dynamicSQL = '
USE ['+@DatabaseName +']
SELECT DISTINCT '''+@DatabaseName +''', SCHEMA_NAME(o.schema_id) AS [schema],object_name(i.object_id ) AS [table],p.rows,user_seeks,user_scans,user_lookups,user_updates,last_user_seek,last_user_scan,last_user_lookup
FROM sys.indexes i
INNER JOIN sys.objects o ON i.object_id = o.object_id
INNER JOIN sys.partitions p ON i.object_id = p.object_id AND i.index_id = p.index_id
LEFT OUTER JOIN sys.dm_db_index_usage_stats ius ON i.object_id = ius.object_id AND i.index_id = ius.index_id
WHERE i.type_desc = ''HEAP'' AND SCHEMA_NAME(o.schema_id) NOT LIKE ''sys'' AND rows > 100
ORDER BY rows desc OPTION (RECOMPILE);'
INSERT #HeapTable
EXEC sp_executesql @dynamicSQL;
RAISERROR (N'Looking for stale statistics',0,1) WITH NOWAIT;
SET @dynamicSQL = 'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
USE ['+@DatabaseName+'];
SELECT
'''+@DatabaseName+''' [DbName]
, ObjectNm
, StatsID
, StatsName
, SchemaName
, ModificationCount
, [LastUpdated]
, Rows
, CONVERT(MONEY,ModificationCount)*100/Rows [ModPerc]
FROM (
SELECT
OBJECT_NAME(p.object_id) ObjectNm
, p.index_id StatsID
, s.name StatsName
, MAX(p.rows) Rows
, sce.name SchemaName' +
CASE WHEN OBJECT_ID(N'sys.dm_db_stats_properties') IS NOT NULL
THEN ', sum(ddsp.modification_counter) '
ELSE ', sum(pc.modified_count) ' END
+' ModificationCount
, MAX(
STATS_DATE(s.object_id, s.stats_id)
) AS [LastUpdated]
FROM sys.system_internals_partition_columns pc
INNER JOIN sys.partitions p ON pc.partition_id = p.partition_id
INNER JOIN sys.stats s ON s.object_id = p.object_id AND s.stats_id = p.index_id
INNER JOIN sys.stats_columns sc ON sc.object_id = s.object_id AND sc.stats_id = s.stats_id AND sc.stats_column_id = pc.partition_column_id
INNER JOIN sys.tables t ON t.object_id = s.object_id
INNER JOIN sys.schemas sce ON sce.schema_id = t.schema_id' +
CASE WHEN OBJECT_ID(N'sys.dm_db_stats_properties') IS NOT NULL
THEN ' OUTER APPLY sys.dm_db_stats_properties(s.object_id, s.stats_id) ddsp WHERE ddsp.modification_counter > 0 GROUP BY p.object_id, p.index_id, s.name,sce.name'
ELSE ' GROUP BY p.object_id, p.index_id, s.name,sce.name HAVING sum(pc.modified_count)> 0 ' END
+'
) stats
WHERE ObjectNm NOT LIKE ''sys%'' AND ModificationCount != 0
AND ObjectNm NOT LIKE ''ifts_comp_fragment%''
AND ObjectNm NOT LIKE ''fulltext_%''
AND ObjectNm NOT LIKE ''filestream_%''
AND ObjectNm NOT LIKE ''queue_messages_%''
AND Rows > 500
AND CASE WHEN Rows = 0 THEN 0 ELSE CONVERT(MONEY,ModificationCount)*100/Rows END >= '+CONVERT(VARCHAR(20),@MinChangePercentage)+ '
AND LastUpdated < DATEADD(DAY, - 1, GETDATE())
ORDER BY ObjectNm, StatsName OPTION (RECOMPILE);
';
INSERT #Action_Statistics
EXEC sp_executesql @dynamicSQL;
RAISERROR (N'Skipping bad NC Indexes tables',0,1) WITH NOWAIT;
SET @dynamicSQL = 'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
USE ['+@DatabaseName+'];
-- Possible Bad NC Indexes (writes > reads) (Query 52) (Bad NC Indexes)
SELECT OBJECT_NAME(s.[object_id]) AS [Table Name], i.name AS [Index Name], i.index_id,
i.is_disabled, i.is_hypothetical, i.has_filter, i.fill_factor,
user_updates AS [Total Writes], user_seeks + user_scans + user_lookups AS [Total Reads],
user_updates - (user_seeks + user_scans + user_lookups) AS [Difference]
FROM sys.dm_db_index_usage_stats AS s WITH (NOLOCK)
INNER JOIN sys.indexes AS i WITH (NOLOCK)
ON s.[object_id] = i.[object_id]
AND i.index_id = s.index_id
WHERE OBJECTPROPERTY(s.[object_id],''IsUserTable'') = 1
AND s.database_id = DB_ID()
AND user_updates > (user_seeks + user_scans + user_lookups)
AND i.index_id > 1
ORDER BY [Difference] DESC, [Total Writes] DESC, [Total Reads] ASC OPTION (RECOMPILE);
'
--EXEC sp_executesql @dynamicSQL;
/*----------------------------------------
--Find badly behaving constraints
----------------------------------------*/
/* Constraints behaving badly*/
RAISERROR (N'Looking for bad constraints',0,1) WITH NOWAIT;
SET @dynamicSQL = 'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
USE ['+@DatabaseName+'];
IF EXISTS(
SELECT 1
from sys.check_constraints i
WHERE i.is_not_trusted = 1 AND i.is_not_for_replication = 0 AND i.is_disabled = 0
)
INSERT #notrust (KeyType, Tablename, KeyName, DBCCcommand, Fix)
SELECT ''Check'' as [KeyType], ''['+@DatabaseName+'].['' + s.name + ''].['' + o.name + '']'' [tablename]
, ''['+@DatabaseName+'].['' + s.name + ''].['' + o.name + ''].['' + i.name + '']'' AS keyname
, ''DBCC CHECKCONSTRAINTS (['' + i.name + '']) WITH ALL_ERRORMSGS'' [DBCC]
, ''ALTER TABLE ['+@DatabaseName+'].['' + s.name + ''].'' + ''['' + o.name + ''] WITH CHECK CHECK CONSTRAINT ['' + i.name + '']'' [Fix]
from sys.check_constraints i
INNER JOIN sys.objects o ON i.parent_object_id = o.object_id
INNER JOIN sys.schemas s ON o.schema_id = s.schema_id
WHERE i.is_not_trusted = 1 AND i.is_not_for_replication = 0 AND i.is_disabled = 0
OPTION (RECOMPILE)
;
IF EXISTS(
SELECT 1
from sys.foreign_keys i
INNER JOIN sys.objects o ON i.parent_object_id = o.OBJECT_ID
INNER JOIN sys.schemas s ON o.schema_id = s.schema_id
WHERE i.is_not_trusted = 1
AND i.is_not_for_replication = 0
AND i.is_disabled = 0
)
INSERT #notrust (KeyType, Tablename, KeyName, DBCCcommand, Fix)
SELECT ''FK'' as[ KeyType], ''['+@DatabaseName+'].['' + s.name + ''].'' + ''['' + o.name + '']'' AS TableName
, ''['+@DatabaseName+'].['' + s.name + ''].['' + o.name + ''].['' + i.name + '']'' AS FKName
,''DBCC CHECKCONSTRAINTS (['' + i.name + '']) WITH ALL_ERRORMSGS'' [DBCC]
, ''ALTER TABLE ['+@DatabaseName+'].['' + s.name + ''].'' + ''['' + o.name + ''] WITH CHECK CHECK CONSTRAINT ['' + i.name + '']'' [Fix]
FROM sys.foreign_keys i
INNER JOIN sys.objects o ON i.parent_object_id = o.OBJECT_ID
INNER JOIN sys.schemas s ON o.schema_id = s.schema_id
WHERE i.is_not_trusted = 1
AND i.is_not_for_replication = 0
AND i.is_disabled = 0
ORDER BY o.name
OPTION (RECOMPILE)
'
--PRINT @dynamicSQL
EXEC sp_executesql @dynamicSQL;
RAISERROR (N'Looking for connected users',0,1) WITH NOWAIT;
SET @dynamicSQL = 'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
USE ['+@DatabaseName+'];
SELECT '''+@DatabaseName+''', p.name AS [SP Name], qs.total_logical_writes AS [TotalLogicalWrites],
qs.total_logical_writes/qs.execution_count AS [AvgLogicalWrites], qs.execution_count,
ISNULL(qs.execution_count/DATEDIFF(Second, qs.cached_time, GETDATE()), 0) AS [Calls/Second],
qs.total_elapsed_time, qs.total_elapsed_time/qs.execution_count AS [avg_elapsed_time],
qs.cached_time
FROM sys.procedures AS p WITH (NOLOCK)
INNER JOIN sys.dm_exec_procedure_stats AS qs WITH (NOLOCK)
ON p.[object_id] = qs.[object_id]
WHERE qs.database_id = DB_ID()
AND qs.total_logical_writes > 0
ORDER BY qs.total_logical_writes DESC OPTION (RECOMPILE);
'
INSERT #db_sps
EXEC sp_executesql @dynamicSQL;
END
SET @Databasei_Count = @Databasei_Count + 1;
END
RAISERROR (N'Evaluated all databases',0,1) WITH NOWAIT;
/*----------------------------------------
--Output results from all databases into results table
----------------------------------------*/
IF EXISTS (SELECT 1 FROM #MissingIndex )
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 18, 'MISSING INDEXES - !Benefit > 1mm!','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Severity, Details,HoursToResolveWithTesting )
SELECT 18
, REPLICATE('|',ROUND(LOG(T1.magic_benefit_number),0)) + ' ' + CONVERT(VARCHAR(20),LOG(T1.magic_benefit_number)) + ''
, 'Benefit:'+ CONVERT(VARCHAR(20),CONVERT(BIGINT,T1.magic_benefit_number),0)
+ '; ' + T1.[Table]
+ '; Eq:' + ISNULL(T1.equality_columns,'')
+ '; Ineq:' + ISNULL(T1.inequality_columns,'')
+ '; Incl:' + ISNULL(T1.included_columns,'')
,CASE WHEN LOG(T1.magic_benefit_number) < 13 THEN @Result_Warning
WHEN LOG(T1.magic_benefit_number) >= 13 AND LOG(T1.magic_benefit_number) < 20 THEN @Result_YourServerIsDead
WHEN LOG(T1.magic_benefit_number) >= 20 THEN @Result_ReallyBad
END
, T2.[SETs] + '; ' + CHAR(13) + CHAR(10) +'UNION ALL SELECT ''' + CHAR(13) + CHAR(10) + REPLACE(T1.ChangeIndexStatement,'< be clever here >', ' ''+ ('+ BeingClever + ') + '' ') + ''' '
, CASE
WHEN LOG(T1.magic_benefit_number) >= 10 AND LOG(T1.magic_benefit_number) < 12 THEN 1
WHEN LOG(T1.magic_benefit_number) >= 12 AND LOG(T1.magic_benefit_number) < 14 THEN 2
WHEN LOG(T1.magic_benefit_number) >= 14 AND LOG(T1.magic_benefit_number) < 16 THEN 4
WHEN LOG(T1.magic_benefit_number) >= 16 AND LOG(T1.magic_benefit_number) < 20 THEN 6
WHEN LOG(T1.magic_benefit_number) >= 20 AND LOG(T1.magic_benefit_number) < 25 THEN 8
WHEN LOG(T1.magic_benefit_number) > 25 THEN 12
END
FROM #MissingIndex T1
LEFT OUTER JOIN #whatsets T2 ON T1.DB = T2.DBname
WHERE T1.magic_benefit_number > 50000
ORDER BY magic_benefit_number DESC OPTION (RECOMPILE)
END
RAISERROR (N'Completed missing index details',0,1) WITH NOWAIT;
IF EXISTS (SELECT 1 FROM #HeapTable )
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 19, 'HEAP TABLES - Bad news','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Severity, Details,HoursToResolveWithTesting )
SELECT 19, LEFT(REPLICATE('|', (ISNULL(user_scans,0)+ ISNULL(user_seeks,0) + ISNULL(user_lookups,0) + ISNULL(user_updates,0))/100) + CONVERT(VARCHAR(20),(ISNULL(user_scans,0)+ ISNULL(user_seeks,0) + ISNULL(user_lookups,0) + ISNULL(user_updates,0))/100) ,2500)
, LEFT('Rows:' + CONVERT(VARCHAR(20),T1.rows)
+ ';'+ '['+T1.DB+'].' + '['+T1.[schema]+'].' + '['+T1.[table]+']'
+ '; Scan:' + CONVERT(VARCHAR(20),ISNULL(T1.last_user_scan,0) ,120)
+ '; Seek:' + CONVERT(VARCHAR(20),ISNULL(T1.last_user_seek,0) ,120)
+ '; Lookup:' + CONVERT(VARCHAR(20),ISNULL(T1.last_user_lookup,0) ,120),3800)
, @Result_Warning
, LEFT('/*DIRTY FIX, assuming forwarded records*/ALTER TABLE ['+T1.DB+'].' + '['+T1.[schema]+'].' + '['+T1.[table]+'] REBUILD ',3800)
, 3
/*SELECT
OBJECT_NAME(ps.object_id) as TableName,
i.name as IndexName,
ps.index_type_desc,
ps.page_count,
ps.avg_fragmentation_in_percent,
ps.forwarded_record_count
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, 'DETAILED') AS ps
INNER JOIN sys.indexes AS i
ON ps.OBJECT_ID = i.OBJECT_ID
AND ps.index_id = i.index_id
WHERE forwarded_record_count > 0*/
FROM #HeapTable T1
WHERE T1.rows > 500
ORDER BY (ISNULL(user_scans,0)+ ISNULL(user_seeks,0) + ISNULL(user_lookups,0) + ISNULL(user_updates,0)) DESC, DB OPTION (RECOMPILE);
END
RAISERROR (N'Found heap tables',0,1) WITH NOWAIT;
IF EXISTS (SELECT 1 FROM #NeverUsedIndex )
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 20, 'STALE INDEXES - Consider removing them at some stage','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Details )
SELECT 20, REPLICATE('|', LOG(CONVERT(BIGINT,rows)))
, 'Table: ' + nui.TableName
+ '; Updates: '+ CONVERT(VARCHAR(20),Updates)
+ '; Rows: ' +CONVERT(NVARCHAR(20),rows)
, 'DB:' + DB
+ '; Table:' + nui.TableName
+ '; StaleIndexes: ' + CONVERT(NVARCHAR(20),IndexCount)
FROM
(
SELECT
DB
, TableName
, COUNT(DISTINCT IndexName) As IndexCount
, MAX(Updates) As Updates
FROM
#NeverUsedIndex
WHERE TypeDesc <> 'CLUSTERED'
GROUP BY DB
, TableName
)
nui
INNER JOIN (
SELECT OBJECT_NAME(object_id) TableName, SUM(row_count) rows FROM sys.dm_db_partition_stats
WHERE index_id < 2
GROUP BY object_id
)t2 ON nui.TableName = t2.TableName
WHERE Updates/rows > 1
AND rows > 0
AND rows > 90
ORDER BY rows DESC, nui.TableName ASC
OPTION (RECOMPILE)
END
IF EXISTS (SELECT 1 FROM #Action_Statistics )
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 21, 'STALE STATS - Consider updating these','------','------'
INSERT #output_man_script (SectionID, Section,Summary, Severity,Details,HoursToResolveWithTesting )
SELECT 21,
REPLICATE('|',DATEDIFF(DAY,s.LastUpdated,GETDATE())) + CONVERT(VARCHAR(20),DATEDIFF(DAY,s.LastUpdated,GETDATE())) +' days old'
, '%Change:' + CONVERT(VARCHAR(15),s.[ModPerc]) +'%; Rows:' + CONVERT(VARCHAR(15),Rows) + ';Modifications:' + CONVERT(VARCHAR(20),s.ModificationCount) +'; ['+ DBname + '].['+SchemaName+'].['+TableName+']:['+StatisticsName+']'
, CASE WHEN DATEDIFF(DAY,s.LastUpdated,GETDATE()) < 14 THEN @Result_Warning ELSE @Result_Bad END
, 'UPDATE STATISTICS [' + DBname + '].['+SchemaName+'].['+TableName+'] ['+StatisticsName+'] WITH FULLSCAN; PRINT ''[' + DBname + '].['+SchemaName+'].['+TableName+'] ['+StatisticsName+'] Done ''' [UpdateStats]
, 0.15
FROM #Action_Statistics s
ORDER BY s.[ModPerc] DESC OPTION (RECOMPILE);/*They are like little time capsules.. just sitting there.. waiting*/
END
RAISERROR (N'Listed state stats',0,1) WITH NOWAIT;
/*----------------------------------------
--Most used database stored procedures
----------------------------------------*/
IF EXISTS( SELECT 1 FROM #db_sps)
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 22, 'STORED PROCEDURE WORKLOAD - TOP 10','------','------'
INSERT #output_man_script (SectionID, Section,Summary ,Details )
SELECT TOP 10 22, REPLICATE('|', CONVERT(MONEY,execution_count*100) / SUM (execution_count) OVER() ) + ' '+ CONVERT(VARCHAR(20),CONVERT(INT,ROUND(CONVERT(MONEY,execution_count*100) / SUM (execution_count) OVER(),0))) + '%'
, [SP Name] + '; Executions:'+ CONVERT(VARCHAR(20),execution_count)
+ '; Per second:' + CONVERT(VARCHAR(20),[Calls/Second])
, dbname
+ '; Avg Time:' + CONVERT(VARCHAR(20), avg_elapsed_time/1000/1000 ) + '(s)'
+ '; Total time:' + CONVERT(VARCHAR(20), total_elapsed_time/1000/1000 ) + '(s)'
+ '; Overall time:' + CONVERT(VARCHAR(20),CONVERT(MONEY,total_elapsed_time*100) / SUM (total_elapsed_time) OVER()) +'%'
FROM #db_sps
ORDER BY execution_count DESC OPTION (RECOMPILE)
END
RAISERROR (N'Database stored procedure details',0,1) WITH NOWAIT;
/*----------------------------------------
--General server settings and items of note
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 24, 'Server details','------','------'
INSERT #output_man_script (SectionID, Section, Summary )
SELECT 24, @@SERVERNAME AS [Server Name]
,'Evauation date: ' + CONVERT(VARCHAR(20),GETDATE(),120)
INSERT #output_man_script (SectionID, Section, Summary )
SELECT 24, @@SERVERNAME AS [Server Name]
,'' + replace(replace(replace(replace(CONVERT(NVARCHAR(500),@@VERSION ), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ')
INSERT #output_man_script (SectionID,Summary,HoursToResolveWithTesting )
SELECT 24, 'Page Life Expectancy: ' + CONVERT(VARCHAR(20), cntr_value)
, CASE WHEN cntr_value < 100 THEN 4 ELSE NULL END
FROM sys.dm_os_performance_counters WITH (NOLOCK)
WHERE [object_name] LIKE N'%Buffer Node%' -- Handles named instances
AND counter_name = N'Page life expectancy' OPTION (RECOMPILE)
INSERT #output_man_script (SectionID,Summary )
SELECT 24, 'Memory Grants Pending:' + CONVERT(VARCHAR(20), cntr_value)
FROM sys.dm_os_performance_counters WITH (NOLOCK)
WHERE [object_name] LIKE N'%Memory Manager%' -- Handles named instances
AND counter_name = N'Memory Grants Pending' OPTION (RECOMPILE);
RAISERROR (N'Listed general instance stats',0,1) WITH NOWAIT;
/* The default settings have been copied from sp_Blitz from http://FirstResponderKit.org
Believe it or not, SQL Server doesn't track the default values
for sp_configure options! We'll make our own list here.*/
INSERT INTO #ConfigurationDefaults VALUES ( 'access check cache bucket count', 0, 1001 )
INSERT INTO #ConfigurationDefaults VALUES ( 'access check cache quota', 0, 1002 )
INSERT INTO #ConfigurationDefaults VALUES ( 'Ad Hoc Distributed Queries', 0, 1003 )
INSERT INTO #ConfigurationDefaults VALUES ( 'affinity I/O mask', 0, 1004 )
INSERT INTO #ConfigurationDefaults VALUES ( 'affinity mask', 0, 1005 )
INSERT INTO #ConfigurationDefaults VALUES ( 'affinity64 mask', 0, 1066 )
INSERT INTO #ConfigurationDefaults VALUES ( 'affinity64 I/O mask', 0, 1067 )
INSERT INTO #ConfigurationDefaults VALUES ( 'Agent XPs', 0, 1071 )
INSERT INTO #ConfigurationDefaults VALUES ( 'allow updates', 0, 1007 )
INSERT INTO #ConfigurationDefaults VALUES ( 'awe enabled', 0, 1008 )
INSERT INTO #ConfigurationDefaults VALUES ( 'backup checksum default', 0, 1070 )
INSERT INTO #ConfigurationDefaults VALUES ( 'backup compression default', 0, 1073 )
INSERT INTO #ConfigurationDefaults VALUES ( 'blocked process threshold', 0, 1009 )
INSERT INTO #ConfigurationDefaults VALUES ( 'blocked process threshold (s)', 0, 1009 )
INSERT INTO #ConfigurationDefaults VALUES ( 'c2 audit mode', 0, 1010 )
INSERT INTO #ConfigurationDefaults VALUES ( 'clr enabled', 0, 1011 )
INSERT INTO #ConfigurationDefaults VALUES ( 'common criteria compliance enabled', 0, 1074 )
INSERT INTO #ConfigurationDefaults VALUES ( 'contained database authentication', 0, 1068 )
INSERT INTO #ConfigurationDefaults VALUES ( 'cost threshold for parallelism', 5, 1012 )
INSERT INTO #ConfigurationDefaults VALUES ( 'cross db ownership chaining', 0, 1013 )
INSERT INTO #ConfigurationDefaults VALUES ( 'cursor threshold', -1, 1014 )
INSERT INTO #ConfigurationDefaults VALUES ( 'Database Mail XPs', 0, 1072 )
INSERT INTO #ConfigurationDefaults VALUES ( 'default full-text language', 1033, 1016 )
INSERT INTO #ConfigurationDefaults VALUES ( 'default language', 0, 1017 )
INSERT INTO #ConfigurationDefaults VALUES ( 'default trace enabled', 1, 1018 )
INSERT INTO #ConfigurationDefaults VALUES ( 'disallow results from triggers', 0, 1019 )
INSERT INTO #ConfigurationDefaults VALUES ( 'EKM provider enabled', 0, 1075 )
INSERT INTO #ConfigurationDefaults VALUES ( 'filestream access level', 0, 1076 )
INSERT INTO #ConfigurationDefaults VALUES ( 'fill factor (%)', 0, 1020 )
INSERT INTO #ConfigurationDefaults VALUES ( 'ft crawl bandwidth (max)', 100, 1021 )
INSERT INTO #ConfigurationDefaults VALUES ( 'ft crawl bandwidth (min)', 0, 1022 )
INSERT INTO #ConfigurationDefaults VALUES ( 'ft notify bandwidth (max)', 100, 1023 )
INSERT INTO #ConfigurationDefaults VALUES ( 'ft notify bandwidth (min)', 0, 1024 )
INSERT INTO #ConfigurationDefaults VALUES ( 'index create memory (KB)', 0, 1025 )
INSERT INTO #ConfigurationDefaults VALUES ( 'in-doubt xact resolution', 0, 1026 )
INSERT INTO #ConfigurationDefaults VALUES ( 'lightweight pooling', 0, 1027 )
INSERT INTO #ConfigurationDefaults VALUES ( 'locks', 0, 1028 )
INSERT INTO #ConfigurationDefaults VALUES ( 'max degree of parallelism', 0, 1029 )
INSERT INTO #ConfigurationDefaults VALUES ( 'max full-text crawl range', 4, 1030 )
INSERT INTO #ConfigurationDefaults VALUES ( 'max server memory (MB)', 2147483647, 1031 )
INSERT INTO #ConfigurationDefaults VALUES ( 'max text repl size (B)', 65536, 1032 )
INSERT INTO #ConfigurationDefaults VALUES ( 'max worker threads', 0, 1033 )
INSERT INTO #ConfigurationDefaults VALUES ( 'media retention', 0, 1034 )
INSERT INTO #ConfigurationDefaults VALUES ( 'min memory per query (KB)', 1024, 1035 );
/* Accepting both 0 and 16 below because both have been seen in the wild as defaults. */
IF EXISTS ( SELECT *
FROM sys.configurations
WHERE name = 'min server memory (MB)'
AND value_in_use IN ( 0, 16 ) )
INSERT INTO #ConfigurationDefaults
SELECT 'min server memory (MB)' ,
CAST(value_in_use AS BIGINT), 1036
FROM sys.configurations
WHERE name = 'min server memory (MB)'
ELSE
INSERT INTO #ConfigurationDefaults
VALUES ( 'min server memory (MB)', 0, 1036 );
INSERT INTO #ConfigurationDefaults VALUES ( 'nested triggers', 1, 1037 )
INSERT INTO #ConfigurationDefaults VALUES ( 'network packet size (B)', 4096, 1038 )
INSERT INTO #ConfigurationDefaults VALUES ( 'Ole Automation Procedures', 0, 1039 )
INSERT INTO #ConfigurationDefaults VALUES ( 'open objects', 0, 1040 )
INSERT INTO #ConfigurationDefaults VALUES ( 'optimize for ad hoc workloads', 0, 1041 )
INSERT INTO #ConfigurationDefaults VALUES ( 'PH timeout (s)', 60, 1042 )
INSERT INTO #ConfigurationDefaults VALUES ( 'precompute rank', 0, 1043 )
INSERT INTO #ConfigurationDefaults VALUES ( 'priority boost', 0, 1044 )
INSERT INTO #ConfigurationDefaults VALUES ( 'query governor cost limit', 0, 1045 )
INSERT INTO #ConfigurationDefaults VALUES ( 'query wait (s)', -1, 1046 )
INSERT INTO #ConfigurationDefaults VALUES ( 'recovery interval (min)', 0, 1047 )
INSERT INTO #ConfigurationDefaults VALUES ( 'remote access', 1, 1048 )
INSERT INTO #ConfigurationDefaults VALUES ( 'remote admin connections', 0, 1049 )
/* SQL Server 2012 changes a configuration default */
IF @@VERSION LIKE '%Microsoft SQL Server 2005%'
OR @@VERSION LIKE '%Microsoft SQL Server 2008%'
BEGIN
INSERT INTO #ConfigurationDefaults
VALUES ( 'remote login timeout (s)', 20, 1069 );
END
ELSE
BEGIN
INSERT INTO #ConfigurationDefaults
VALUES ( 'remote login timeout (s)', 10, 1069 );
END
INSERT INTO #ConfigurationDefaults VALUES ( 'remote proc trans', 0, 1050 )
INSERT INTO #ConfigurationDefaults VALUES ( 'remote query timeout (s)', 600, 1051 )
INSERT INTO #ConfigurationDefaults VALUES ( 'Replication XPs', 0, 1052 )
INSERT INTO #ConfigurationDefaults VALUES ( 'RPC parameter data validation', 0, 1053 )
INSERT INTO #ConfigurationDefaults VALUES ( 'scan for startup procs', 0, 1054 )
INSERT INTO #ConfigurationDefaults VALUES ( 'server trigger recursion', 1, 1055 )
INSERT INTO #ConfigurationDefaults VALUES ( 'set working set size', 0, 1056 )
INSERT INTO #ConfigurationDefaults VALUES ( 'show advanced options', 0, 1057 )
INSERT INTO #ConfigurationDefaults VALUES ( 'SMO and DMO XPs', 1, 1058 )
INSERT INTO #ConfigurationDefaults VALUES ( 'SQL Mail XPs', 0, 1059 )
INSERT INTO #ConfigurationDefaults VALUES ( 'transform noise words', 0, 1060 )
INSERT INTO #ConfigurationDefaults VALUES ( 'two digit year cutoff', 2049, 1061 )
INSERT INTO #ConfigurationDefaults VALUES ( 'user connections', 0, 1062 )
INSERT INTO #ConfigurationDefaults VALUES ( 'user options', 0, 1063 )
INSERT INTO #ConfigurationDefaults VALUES ( 'Web Assistant Procedures', 0, 1064 )
INSERT INTO #ConfigurationDefaults VALUES ( 'xp_cmdshell', 0, 1065 );
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 25, 'Server details - Non default settings','------','------'
INSERT #output_man_script (SectionID, Section,Summary,Details)
SELECT 25, [description] name
, '['+CONVERT(VARCHAR(20),cd.[DefaultValue]) + '] changed to [' + CONVERT(VARCHAR(20),value_in_use) + ']'
, 'Blitz CheckID:' + CONVERT(VARCHAR(20),cd.CheckID)
+ '; MIN:' + CONVERT(VARCHAR(20),minimum)
+ '; MAX:' + CONVERT(VARCHAR(20),maximum)
+ '; IsDynamic:' + CONVERT(VARCHAR(20),is_dynamic)
+ '; IsAdvanced:' + CONVERT(VARCHAR(20),is_advanced)
FROM sys.configurations cr WITH (NOLOCK)
INNER JOIN #ConfigurationDefaults cd ON cd.name = cr.name
LEFT OUTER JOIN #ConfigurationDefaults cdUsed ON cdUsed.name = cr.name AND cdUsed.DefaultValue = cr.value_in_use
WHERE cdUsed.name IS NULL
OPTION (RECOMPILE);
RAISERROR (N'Listed non-default settings',0,1) WITH NOWAIT;
/*----------------------------------------
--Current active logins on this instance
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 26,'CURRENT ACTIVE USERS - TOP 10','------','------'
INSERT #output_man_script (SectionID, Section,Summary)
SELECT TOP 10 26, 'User: ' + login_name
, '[' + CONVERT(VARCHAR(20), COUNT(session_id) ) + '] sessions using: ' + [program_name]
FROM sys.dm_exec_sessions WITH (NOLOCK)
GROUP BY login_name, [program_name]
ORDER BY COUNT(session_id) DESC OPTION (RECOMPILE);
RAISERROR (N'Connections listed',0,1) WITH NOWAIT;
/*----------------------------------------
--Insert trust issues into output table
----------------------------------------*/
IF EXISTS(SELECT 1 FROM #notrust )
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 27,'TRUST ISSUES','------','------'
INSERT #output_man_script (SectionID, Section,Summary, Details)
SELECT 27, KeyType + '; Table: '+ Tablename
+ '; KeyName: ' + KeyName
, DBCCcommand
, Fix
FROM #notrust
OPTION (RECOMPILE)
END
RAISERROR (N'Included Constraint trust issues',0,1) WITH NOWAIT;
/*----------------------------------------
--Current active connections on each database
----------------------------------------*/
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 29,'DATABASE CONNECTED USERS','------','------'
INSERT #output_man_script (SectionID, Section,Summary,Details)
SELECT 29, dtb.name
, 'Active: ' + CONVERT(VARCHAR(20),(select count(*) from master.dbo.sysprocesses p where dtb.database_id=p.dbid))
+ '; LastActivity:' +CONVERT(VARCHAR, ISNULL(lastactive.LastActivity,lastactive.create_date),120)
, 'Updatable: ' + ( case LOWER(convert( nvarchar(128), DATABASEPROPERTYEX(dtb.name, 'Updateability'))) when 'read_write'then 'Yes' else 'No' end)
+ '; ReplicationOptions:' + CONVERT(VARCHAR(20),(dtb.is_published*1+dtb.is_subscribed*2+dtb.is_merge_published*4))
FROM master.sys.databases AS dtb
INNER JOIN (
SELECT d.name
, MAX(d.create_date) create_date
, [LastActivity] =
(select X1= max(bb.xx)
from (
select xx = max(last_user_seek)
where max(last_user_seek) is not null
union all
select xx = max(last_user_scan)
where max(last_user_scan) is not null
union all
select xx = max(last_user_lookup)
where max(last_user_lookup) is not null
union all
select xx = max(last_user_update)
where max(last_user_update) is not null) bb)
, last_user_seek = MAX(last_user_seek)
, last_user_scan = MAX(last_user_scan)
, last_user_lookup = MAX(last_user_lookup)
, last_user_update = MAX(last_user_update)
FROM sys.dm_db_index_usage_stats AS i
JOIN sys.databases AS d ON i.database_id=d.database_id
GROUP BY d.name
) lastactive ON lastactive.name = dtb.name
OPTION (RECOMPILE);
RAISERROR (N'Database Connections counted',0,1) WITH NOWAIT;
/*----------------------------------------
--Current likely active databases
----------------------------------------*/
DECLARE @confidence TABLE (DBName NVARCHAR(500), EstHoursSinceActive BIGINT)
DECLARE @ConfidenceLevel TABLE ( Bionmial MONEY, ConfidenceLevel NVARCHAR(10))
INSERT INTO @ConfidenceLevel VALUES(1.96,'95%')
SET @lastservericerestart = (SELECT create_date FROM sys.databases WHERE name = 'tempdb');
INSERT INTO @confidence
select d.name, [LastSomethingHours] = DATEDIFF(HOUR,ISNULL(
(select X1= max(bb.xx)
from (
select xx = max(last_user_seek)
where max(last_user_seek) is not null
union all
select xx = max(last_user_scan)
where max(last_user_scan) is not null
union all
select xx = max(last_user_lookup)
where max(last_user_lookup) is not null
union all
select xx = max(last_user_update)
where max(last_user_update) is not null) bb) ,@lastservericerestart),GETDATE())
FROM master.dbo.sysdatabases d
left outer join sys.dm_db_index_usage_stats s on d.dbid= s.database_id
WHERE database_id > 4
group by d.name
PRINT 'Probability of a read data event occurring in the next hour, based on activity since the last restart with a 95% confidence'
IF @ShowMigrationRelatedOutputs = 1
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 30, 'Database usage likelyhood','------','------'
INSERT #output_man_script (SectionID, Section,Summary,Details)
SELECT 30 [SectionID]
, base.name [Section]
,ISNULL(CONVERT(VARCHAR(10),CASE
WHEN pages.[TotalPages in MB] > 0 THEN 100
WHEN con.number_of_connections > 0 THEN confidence.low
ELSE confidence.high
END),'') + '% likely'
+ '; Connections: ' + CONVERT(VARCHAR(10),con.number_of_connections )
+ '; HoursActive: '+ CONVERT(VARCHAR(10),DATEDIFF(HOUR,@lastservericerestart,GETDATE()))
+ '; Pages(MB) in memory: ' + CONVERT(VARCHAR(10), ISNULL(pages.[TotalPages in MB],0))
[Summary]
, 'DB Created: ' + CONVERT(VARCHAR,base.DBcreatedate,120)
+ '; Last seek: ' + CONVERT(VARCHAR,base.[last_user_seek],120)
+ '; Last scan:' + CONVERT(VARCHAR,base.[last_user_scan],120)
+ '; Last lookup: ' + CONVERT(VARCHAR,base.[last_user_lookup],120)
+ '; Last update: ' + CONVERT(VARCHAR,base.[last_user_update],120) [Details]
FROM (
SELECT db.name, db.database_id
, MAX(db.create_date) [DBcreatedate]
, MAX(o.modify_date) [ObjectModifyDate]
, MAX(ius.last_user_seek) [last_user_seek]
, MAX(ius.last_user_scan) [last_user_scan]
, MAX(ius.last_user_lookup) [last_user_lookup]
, MAX(ius.last_user_update) [last_user_update]
FROM
sys.databases db
LEFT OUTER JOIN sys.dm_db_index_usage_stats ius ON db.database_id = ius.database_id
LEFT OUTER JOIN sys.all_objects o ON o.object_id = ius.object_id AND o.type = 'U'
WHERE
db.database_id > 4 AND state NOT IN (1,2,3,6) AND user_access = 0
GROUP BY
db.name, db.database_id
) base
LEFT OUTER JOIN (
SELECT name AS dbname
,COUNT(status) AS number_of_connections
FROM master.sys.databases sd
LEFT JOIN master.sys.sysprocesses sp ON sd.database_id = sp.dbid
WHERE database_id > 4
GROUP BY name
) con ON con.dbname = base.name
LEFT OUTER JOIN (
SELECT DB_NAME (database_id) AS 'Database Name'
, COUNT(*) *8/1024 AS [TotalPages in MB]
FROM sys.dm_os_buffer_descriptors
GROUP BY database_id
) pages ON pages.[Database Name] = base.name
LEFT OUTER JOIN (
select DBName
, intervals.n as [Hours]
, intervals.x as [TargetActiveHours]
, CONVERT(MONEY,(p - se * 1.96)*100) as low
, CONVERT(MONEY,(intervals.p * 100)) as mid
, CONVERT(MONEY,(p + se * 1.96)*100) as high
from (
select
rates.*,
sqrt(p * (1 - p) / n) as se -- calculate se
from (
select
conversions.*,
(CASE WHEN x = 0 THEN 1 ELSE x END + 1.92) / CONVERT(FLOAT,(n + 3.84)) as p -- calculate p
from (
-- Our conversion rate table from above
select DBName
, DATEDIFF(HOUR,@lastservericerestart,GETDATE()) as n
, DATEDIFF(HOUR,@lastservericerestart,GETDATE()) - EstHoursSinceActive as x
FROM @confidence
) conversions
) rates
) intervals
) confidence ON confidence.DBName COLLATE DATABASE_DEFAULT = base.name COLLATE DATABASE_DEFAULT
LEFT OUTER JOIN sys.databases dbs ON dbs.database_id = base.database_id
ORDER BY base.name
RAISERROR (N'Database usage likelyhood measured',0,1) WITH NOWAIT;
END
/*----------------------------------------
--Calculate daily IO workload
----------------------------------------*/
BEGIN TRY
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_sql_handle_convert_table', 'U') IS NOT NULL
EXEC ('DROP TABLE #LEXEL_OES_stats_sql_handle_convert_table;')
CREATE TABLE #LEXEL_OES_stats_sql_handle_convert_table (
row_id INT identity
, t_sql_handle varbinary(64)
, t_display_option NVARCHAR(140) collate database_default
, t_display_optionIO NVARCHAR(140) collate database_default
, t_sql_handle_text NVARCHAR(140) collate database_default
, t_SPRank INT
, t_dbid INT
, t_objectid INT
, t_SQLStatement NVARCHAR(max) collate database_default
, t_execution_count INT
, t_plan_generation_num INT
, t_last_execution_time datetime
, t_avg_worker_time FLOAT
, t_total_worker_time FLOAT
, t_last_worker_time FLOAT
, t_min_worker_time FLOAT
, t_max_worker_time FLOAT
, t_avg_logical_reads FLOAT
, t_total_logical_reads BIGINT
, t_last_logical_reads BIGINT
, t_min_logical_reads BIGINT
, t_max_logical_reads BIGINT
, t_avg_logical_writes FLOAT
, t_total_logical_writes BIGINT
, t_last_logical_writes BIGINT
, t_min_logical_writes BIGINT
, t_max_logical_writes BIGINT
, t_avg_logical_IO FLOAT
, t_total_logical_IO BIGINT
, t_last_logical_IO BIGINT
, t_min_logical_IO BIGINT
, t_max_logical_IO BIGINT
);
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_objects', 'U') IS NOT NULL
EXEC ('DROP TABLE #LEXEL_OES_stats_objects;')
CREATE TABLE #LEXEL_OES_stats_objects (
obj_rank INT
, total_cpu BIGINT
, total_logical_reads BIGINT
, total_logical_writes BIGINT
, total_logical_io BIGINT
, avg_cpu BIGINT
, avg_reads BIGINT
, avg_writes BIGINT
, avg_io BIGINT
, cpu_rank INT
, total_cpu_rank INT
, logical_read_rank INT
, logical_write_rank INT
, logical_io_rank INT
);
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_object_name', 'U') IS NOT NULL
EXEC ('DROP TABLE #LEXEL_OES_stats_object_name;')
CREATE TABLE #LEXEL_OES_stats_object_name (
dbId INT
, objectId INT
, dbName sysname collate database_default null
, objectName sysname collate database_default null
, objectType nvarchar(5) collate database_default null
, schemaName sysname collate database_default null
)
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_output', 'U') IS NOT NULL
EXEC ('DROP TABLE #LEXEL_OES_stats_output;')
CREATE TABLE #LEXEL_OES_stats_output(
ID INT IDENTITY(1,1)
, evaldate DATETIME DEFAULT GETDATE()
, domain NVARCHAR(50) DEFAULT DEFAULT_DOMAIN()
, SQLInstance NVARCHAR(50) DEFAULT @@SERVERNAME
, [Type] NVARCHAR(25) NOT NULL
, l1 INT NULL
, l2 BIGINT NULL
, row_id INT NOT NULL
, t_obj_name NVARCHAR(250) NULL
, t_obj_type NVARCHAR(250) NULL
, [schema_name] NVARCHAR(250) NULL
, t_db_name NVARCHAR(250) NULL
, t_sql_handle varbinary(64) NULL
, t_SPRank INT NULL
, t_SPRank2 INT NULL
, t_SQLStatement NVARCHAR(max) NULL
, t_execution_count INT NULL
, t_plan_generation_num INT NULL
, t_last_execution_time datetime NULL
, t_avg_worker_time float NULL
, t_total_worker_time BIGINT NULL
, t_last_worker_time BIGINT NULL
, t_min_worker_time BIGINT NULL
, t_max_worker_time BIGINT NULL
, t_avg_logical_reads float NULL
, t_total_logical_reads BIGINT NULL
, t_last_logical_reads BIGINT NULL
, t_min_logical_reads BIGINT NULL
, t_max_logical_reads BIGINT NULL
, t_avg_logical_writes float NULL
, t_total_logical_writes BIGINT NULL
, t_last_logical_writes BIGINT NULL
, t_min_logical_writes BIGINT NULL
, t_max_logical_writes BIGINT NULL
, t_avg_IO float NULL
, t_total_IO BIGINT NULL
, t_last_IO BIGINT NULL
, t_min_IO BIGINT NULL
, t_max_IO BIGINT NULL
, t_CPURank INT NULL
, t_ReadRank INT NULL
, t_WriteRank INT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
INSERT INTO #LEXEL_OES_stats_sql_handle_convert_table
SELECT
sql_handle
, sql_handle AS chart_display_option
, sql_handle AS chart_display_optionIO
, master.dbo.fn_varbintohexstr(sql_handle)
, dense_RANK() over (order by s2.dbid,s2.objectid) AS SPRank
, s2.dbid
, s2.objectid
, (SELECT top 1 substring(text,(s1.statement_start_offset+2)/2, (CASE WHEN s1.statement_end_offset = -1 then len(convert(nvarchar(max),text))*2 else s1.statement_end_offset end - s1.statement_start_offset) /2 ) FROM sys.dm_exec_sql_text(s1.sql_handle)) AS [SQL Statement]
, execution_count
, plan_generation_num
, last_execution_time
, ((total_worker_time+0.0)/execution_count)/1000 AS [avg_worker_time]
, total_worker_time/1000.0
, last_worker_time/1000.0
, min_worker_time/1000.0
, max_worker_time/1000.0
, ((total_logical_reads+0.0)/execution_count) AS [avg_logical_reads]
, total_logical_reads
, last_logical_reads
, min_logical_reads
, max_logical_reads
, ((total_logical_writes+0.0)/execution_count) AS [avg_logical_writes]
, total_logical_writes
, last_logical_writes
, min_logical_writes
, max_logical_writes
, ((total_logical_writes+0.0)/execution_count + (total_logical_reads+0.0)/execution_count) AS [avg_logical_IO]
, total_logical_writes + total_logical_reads
, last_logical_writes +last_logical_reads
, min_logical_writes +min_logical_reads
, max_logical_writes + max_logical_reads
FROM sys.dm_exec_query_stats s1
CROSS APPLY sys.dm_exec_sql_text(sql_handle) s2
WHERE s2.objectid IS NOT NULL AND db_name(s2.dbid) IS NOT NULL
--AND (execution_count >= @MinExecutionCount OR (total_worker_time/1000.0) > 10)
ORDER BY s1.sql_handle;
SELECT @grand_total_worker_time = SUM(t_total_worker_time)
, @grand_total_IO = SUM(t_total_logical_reads + t_total_logical_writes)
from #LEXEL_OES_stats_sql_handle_convert_table;
SELECT @grand_total_worker_time = CASE WHEN @grand_total_worker_time > 0 THEN @grand_total_worker_time ELSE 1.0 END ;
SELECT @grand_total_IO = CASE WHEN @grand_total_IO > 0 THEN @grand_total_IO ELSE 1.0 END ;
set @cnt = 1;
SELECT @record_count = count(*) FROM #LEXEL_OES_stats_sql_handle_convert_table ;
WHILE (@cnt <= @record_count)
BEGIN
SELECT @dbid = t_dbid
, @objectid = t_objectid
FROM #LEXEL_OES_stats_sql_handle_convert_table WHERE row_id = @cnt;
if not exists (SELECT 1 FROM #LEXEL_OES_stats_object_name WHERE objectId = @objectid AND dbId = @dbid )
BEGIN
SET @cmd = 'SELECT '+convert(nvarchar(10),@dbid)+','+convert(nvarchar(100),@objectid)+','''+db_name(@dbid)+'''
, obj.name,obj.type
, CASE WHEN sch.name IS NULL THEN '''' ELSE sch.name END
FROM ['+db_name(@dbid)+'].sys.objects obj
LEFT OUTER JOIN ['+db_name(@dbid)+'].sys.schemas sch on(obj.schema_id = sch.schema_id)
WHERE obj.object_id = '+convert(nvarchar(100),@objectid)+ ';'
INSERT INTO #LEXEL_OES_stats_object_name
EXEC(@cmd)
END
SET @cnt = @cnt + 1 ;
END ;
INSERT INTO #LEXEL_OES_stats_objects
SELECT t_SPRank
, SUM(t_total_worker_time)
, SUM(t_total_logical_reads)
, SUM(t_total_logical_writes)
, SUM(t_total_logical_IO)
, SUM(t_avg_worker_time) AS avg_cpu
, SUM(t_avg_logical_reads)
, SUM(t_avg_logical_writes)
, SUM(t_avg_logical_IO)
, RANK()OVER (ORDER BY SUM(t_avg_worker_time) DESC)
, RANK()OVER (ORDER BY SUM(t_total_worker_time) DESC)
, RANK()OVER (ORDER BY SUM(t_avg_logical_reads) DESC)
, RANK()OVER (ORDER BY SUM(t_avg_logical_writes) DESC)
, RANK()OVER (ORDER BY SUM(t_total_logical_IO) DESC)
FROM #LEXEL_OES_stats_sql_handle_convert_table
GROUP BY t_SPRank ;
UPDATE #LEXEL_OES_stats_sql_handle_convert_table SET t_display_option = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #LEXEL_OES_stats_objects WHERE (total_cpu+0.0)/@grand_total_worker_time < 0.05) ;
UPDATE #LEXEL_OES_stats_sql_handle_convert_table SET t_display_option = t_sql_handle_text
WHERE t_SPRank IN (SELECT obj_rank FROM #LEXEL_OES_stats_objects WHERE total_cpu_rank <= 5) ;
UPDATE #LEXEL_OES_stats_sql_handle_convert_table SET t_display_option = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #LEXEL_OES_stats_objects WHERE (total_cpu+0.0)/@grand_total_worker_time < 0.005);
UPDATE #LEXEL_OES_stats_sql_handle_convert_table SET t_display_optionIO = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #LEXEL_OES_stats_objects WHERE (total_logical_io+0.0)/@grand_total_IO < 0.05);
UPDATE #LEXEL_OES_stats_sql_handle_convert_table SET t_display_optionIO = t_sql_handle_text
WHERE t_SPRank IN (SELECT obj_rank FROM #LEXEL_OES_stats_objects WHERE logical_io_rank <= 5) ;
UPDATE #LEXEL_OES_stats_sql_handle_convert_table SET t_display_optionIO = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #LEXEL_OES_stats_objects WHERE (total_logical_io+0.0)/@grand_total_IO < 0.005);
END TRY
BEGIN CATCH
SELECT -100 AS l1
, ERROR_NUMBER() AS l2
, ERROR_SEVERITY() AS row_id
, ERROR_STATE() AS t_sql_handle
, ERROR_MESSAGE() AS t_display_option
, 1 AS t_display_optionIO, 1 AS t_sql_handle_text,1 AS t_SPRank,1 AS t_dbid ,1 AS t_objectid ,1 AS t_SQLStatement,1 AS t_execution_count,1 AS t_plan_generation_num,1 AS t_last_execution_time, 1 AS t_avg_worker_time, 1 AS t_total_worker_time, 1 AS t_last_worker_time, 1 AS t_min_worker_time, 1 AS t_max_worker_time, 1 AS t_avg_logical_reads, 1 AS t_total_logical_reads, 1 AS t_last_logical_reads, 1 AS t_min_logical_reads, 1 AS t_max_logical_reads, 1 AS t_avg_logical_writes, 1 AS t_total_logical_writes, 1 AS t_last_logical_writes, 1 AS t_min_logical_writes, 1 AS t_max_logical_writes, 1 AS t_avg_logical_IO, 1 AS t_total_logical_IO, 1 AS t_last_logical_IO, 1 AS t_min_logical_IO, 1 AS t_max_logical_IO, 1 AS t_CPURank, 1 AS t_logical_ReadRank, 1 AS t_logical_WriteRank, 1 AS t_obj_name, 1 AS t_obj_type, 1 AS schama_name, 1 AS t_db_name
END CATCH
BEGIN TRY
set @dbid = db_id();
SET @cnt = 0;
SET @record_count = 0;
declare @sql_handle varbinary(64);
declare @sql_handle_string NVARCHAR(130);
SET @grand_total_worker_time = 0 ;
SET @grand_total_IO = 0 ;
IF OBJECT_ID('tempdb..#sql_handle_convert_table') IS NOT NULL
DROP TABLE #sql_handle_convert_table;
CREATE TABLE #sql_handle_convert_table (
row_id INT identity
, t_sql_handle varbinary(64)
, t_display_option NVARCHAR(140) collate database_default
, t_display_optionIO NVARCHAR(140) collate database_default
, t_sql_handle_text NVARCHAR(140) collate database_default
, t_SPRank INT
, t_SPRank2 INT
, t_SQLStatement NVARCHAR(max) collate database_default
, t_execution_count INT
, t_plan_generation_num INT
, t_last_execution_time datetime
, t_avg_worker_time FLOAT
, t_total_worker_time BIGINT
, t_last_worker_time BIGINT
, t_min_worker_time BIGINT
, t_max_worker_time BIGINT
, t_avg_logical_reads FLOAT
, t_total_logical_reads BIGINT
, t_last_logical_reads BIGINT
, t_min_logical_reads BIGINT
, t_max_logical_reads BIGINT
, t_avg_logical_writes FLOAT
, t_total_logical_writes BIGINT
, t_last_logical_writes BIGINT
, t_min_logical_writes BIGINT
, t_max_logical_writes BIGINT
, t_avg_IO FLOAT
, t_total_IO BIGINT
, t_last_IO BIGINT
, t_min_IO BIGINT
, t_max_IO BIGINT
);
IF OBJECT_ID('tempdb..#perf_report_objects') IS NOT NULL
DROP TABLE #perf_report_objects;
CREATE TABLE #perf_report_objects (
obj_rank INT
, total_cpu BIGINT
, total_reads BIGINT
, total_writes BIGINT
, total_io BIGINT
, avg_cpu BIGINT
, avg_reads BIGINT
, avg_writes BIGINT
, avg_io BIGINT
, cpu_rank INT
, total_cpu_rank INT
, read_rank INT
, write_rank INT
, io_rank INT
);
INSERT INTO #sql_handle_convert_table
SELECT sql_handle
, sql_handle AS chart_display_option
, sql_handle AS chart_display_optionIO
, master.dbo.fn_varbintohexstr(sql_handle)
, dense_RANK() over (order by s1.sql_handle) AS SPRank
, dense_RANK() over (partition by s1.sql_handle order by s1.statement_start_offset) AS SPRank2
, replace(replace(replace(replace(CONVERT(NVARCHAR(MAX),(SELECT top 1 substring(text,(s1.statement_start_offset+2)/2, (CASE WHEN s1.statement_end_offset = -1 then len(convert(nvarchar(max),text))*2 else s1.statement_end_offset end - s1.statement_start_offset) /2 ) FROM sys.dm_exec_sql_text(s1.sql_handle))), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') AS [SQL Statement]
, execution_count
, plan_generation_num
, last_execution_time
, ((total_worker_time+0.0)/execution_count)/1000 AS [avg_worker_time]
, total_worker_time/1000
, last_worker_time/1000
, min_worker_time/1000
, max_worker_time/1000
, ((total_logical_reads+0.0)/execution_count) AS [avg_logical_reads]
, total_logical_reads
, last_logical_reads
, min_logical_reads
, max_logical_reads
, ((total_logical_writes+0.0)/execution_count) AS [avg_logical_writes]
, total_logical_writes
, last_logical_writes
, min_logical_writes
, max_logical_writes
, ((total_logical_writes+0.0)/execution_count + (total_logical_reads+0.0)/execution_count) AS [avg_IO]
, total_logical_writes + total_logical_reads
, last_logical_writes +last_logical_reads
, min_logical_writes +min_logical_reads
, max_logical_writes + max_logical_reads
from sys.dm_exec_query_stats s1
cross apply sys.dm_exec_sql_text(sql_handle) AS s2
WHERE s2.objectid is null
--AND (execution_count >= @MinExecutionCount OR (total_worker_time/1000.0) > 10)
order by s1.sql_handle;
SELECT @grand_total_worker_time = SUM(t_total_worker_time)
, @grand_total_IO = SUM(t_total_logical_reads + t_total_logical_writes)
from #sql_handle_convert_table;
SELECT @grand_total_worker_time = CASE WHEN @grand_total_worker_time > 0 then @grand_total_worker_time else 1.0 end ;
SELECT @grand_total_IO = CASE WHEN @grand_total_IO > 0 then @grand_total_IO else 1.0 end ;
Insert INTo #perf_report_objects
SELECT t_SPRank
, SUM(t_total_worker_time)
, SUM(t_total_logical_reads)
, SUM(t_total_logical_writes)
, SUM(t_total_IO)
, SUM(t_avg_worker_time) AS avg_cpu
, SUM(t_avg_logical_reads)
, SUM(t_avg_logical_writes)
, SUM(t_avg_IO)
, RANK() OVER(ORDER BY SUM(t_avg_worker_time) DESC)
, ROW_NUMBER() OVER(ORDER BY SUM(t_total_worker_time) DESC)
, ROW_NUMBER() OVER(ORDER BY SUM(t_avg_logical_reads) DESC)
, ROW_NUMBER() OVER(ORDER BY SUM(t_avg_logical_writes) DESC)
, ROW_NUMBER() OVER(ORDER BY SUM(t_total_IO) DESC)
from #sql_handle_convert_table
group by t_SPRank ;
UPDATE #sql_handle_convert_table SET t_display_option = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #perf_report_objects WHERE (total_cpu+0.0)/@grand_total_worker_time < 0.05) ;
UPDATE #sql_handle_convert_table SET t_display_option = t_sql_handle_text
WHERE t_SPRank IN (SELECT obj_rank FROM #perf_report_objects WHERE total_cpu_rank <= 5) ;
UPDATE #sql_handle_convert_table SET t_display_option = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #perf_report_objects WHERE (total_cpu+0.0)/@grand_total_worker_time < 0.005);
UPDATE #sql_handle_convert_table SET t_display_optionIO = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #perf_report_objects WHERE (total_io+0.0)/@grand_total_IO < 0.05);
UPDATE #sql_handle_convert_table SET t_display_optionIO = t_sql_handle_text
WHERE t_SPRank IN (SELECT obj_rank FROM #perf_report_objects WHERE io_rank <= 5) ;
UPDATE #sql_handle_convert_table SET t_display_optionIO = 'show_total'
WHERE t_SPRank IN (SELECT obj_rank FROM #perf_report_objects WHERE (total_io+0.0)/@grand_total_IO < 0.005);
END TRY
begin catch
SELECT -100 AS l1
, ERROR_NUMBER() AS l2
, ERROR_SEVERITY() AS row_id
, ERROR_STATE() AS t_sql_handle
, ERROR_MESSAGE() AS t_display_option
, 1 AS t_display_optionIO, 1 AS t_sql_handle_text, 1 AS t_SPRank, 1 AS t_SPRank2, 1 AS t_SQLStatement, 1 AS t_execution_count , 1 AS t_plan_generation_num, 1 AS t_last_execution_time, 1 AS t_avg_worker_time, 1 AS t_total_worker_time, 1 AS t_last_worker_time, 1 AS t_min_worker_time, 1 AS t_max_worker_time, 1 AS t_avg_logical_reads
, 1 AS t_total_logical_reads, 1 AS t_last_logical_reads, 1 AS t_min_logical_reads, 1 AS t_max_logical_reads, 1 AS t_avg_logical_writes, 1 AS t_total_logical_writes, 1 AS t_last_logical_writes, 1 AS t_min_logical_writes, 1 AS t_max_logical_writes, 1 AS t_avg_IO, 1 AS t_total_IO, 1 AS t_last_IO, 1 AS t_min_IO, 1 AS t_max_IO, 1 AS t_CPURank, 1 AS t_ReadRank, 1 AS t_WriteRank
end catch
INSERT INTO #LEXEL_OES_stats_output
(evaldate, [Type], l1, l2, row_id, t_obj_name, t_obj_type, [schema_name], t_db_name, t_sql_handle, t_SPRank, t_SPRank2, t_SQLStatement
, t_execution_count, t_plan_generation_num, t_last_execution_time, t_avg_worker_time, t_total_worker_time, t_last_worker_time, t_min_worker_time, t_max_worker_time, t_avg_logical_reads
, t_total_logical_reads, t_last_logical_reads, t_min_logical_reads, t_max_logical_reads, t_avg_logical_writes, t_total_logical_writes, t_last_logical_writes, t_min_logical_writes
, t_max_logical_writes, t_avg_IO, t_total_IO, t_last_IO, t_min_IO, t_max_IO, t_CPURank, t_ReadRank, t_WriteRank)
SELECT @evaldate
, 'OBJECT' [Type]
, (s.t_SPRank)%2 AS l1
, (DENSE_RANK() OVER(ORDER BY s.t_SPRank,s.row_id))%2 AS l2
, row_id
, objname.objectName AS t_obj_name
, objname.objectType AS [t_obj_type]
, objname.schemaName AS schema_name
, objname.dbName AS t_db_name
, s.t_sql_handle
--, s.t_display_option
--, s.t_display_optionIO
--,s.t_sql_handle_text
, s.t_SPRank
, NULL t_SPRank2
, replace(replace(replace(replace(CONVERT(NVARCHAR(MAX),s.t_SQLStatement), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' ') t_SQLStatement
, s.t_execution_count
, s.t_plan_generation_num
, s.t_last_execution_time
, s.t_avg_worker_time
, s.t_total_worker_time
, s.t_last_worker_time
, s.t_min_worker_time
, s.t_max_worker_time
, s.t_avg_logical_reads
, s.t_total_logical_reads
, s.t_last_logical_reads
, s.t_min_logical_reads
, s.t_max_logical_reads
, s.t_avg_logical_writes
, s.t_total_logical_writes
, s.t_last_logical_writes
, s.t_min_logical_writes
, s.t_max_logical_writes
, t_avg_logical_IO t_avg_IO
, t_total_logical_IO t_total_IO
, t_last_logical_IO t_last_IO
, t_min_logical_IO t_min_IO
, t_max_logical_IO t_max_IO
, ob.cpu_rank AS t_CPURank
, ob.logical_read_rank t_ReadRank
, ob.logical_write_rank t_WriteRank
FROM #LEXEL_OES_stats_sql_handle_convert_table s
JOIN #LEXEL_OES_stats_objects ob on (s.t_SPRank = ob.obj_rank)
JOIN #LEXEL_OES_stats_object_name AS objname on (objname.dbId = s.t_dbid and objname.objectId = s.t_objectid )
INSERT INTO #LEXEL_OES_stats_output
(evaldate, [Type], l1, l2, row_id, t_obj_name, t_obj_type, [schema_name], t_db_name, t_sql_handle, t_SPRank, t_SPRank2, t_SQLStatement
, t_execution_count, t_plan_generation_num, t_last_execution_time, t_avg_worker_time, t_total_worker_time, t_last_worker_time, t_min_worker_time, t_max_worker_time, t_avg_logical_reads
, t_total_logical_reads, t_last_logical_reads, t_min_logical_reads, t_max_logical_reads, t_avg_logical_writes, t_total_logical_writes, t_last_logical_writes, t_min_logical_writes
, t_max_logical_writes, t_avg_IO, t_total_IO, t_last_IO, t_min_IO, t_max_IO, t_CPURank, t_ReadRank, t_WriteRank)
SELECT
@evaldate
, 'BATCH' [Type]
, (s.t_SPRank)%2 AS l1
, (dense_RANK() OVER(ORDER BY s.t_SPRank,s.row_id))%2 AS l2
, row_id
, NULL t_obj_name
, NULL [t_obj_type]
, NULL schema_name
, NULL t_db_name
, s.t_sql_handle
--, s. t_display_option
--, s.t_display_optionIO
--, s.t_sql_handle_text
, s.t_SPRank
, s.t_SPRank2
, replace(replace(replace(replace(replace(CONVERT(NVARCHAR(MAX),t_SQLStatement), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' '),' ', ' ') t_SQLStatement
, s.t_execution_count
, s.t_plan_generation_num
, s.t_last_execution_time
, s.t_avg_worker_time
, s.t_total_worker_time
, s.t_last_worker_time
, s.t_min_worker_time
, s.t_max_worker_time
, s.t_avg_logical_reads
, s.t_total_logical_reads
, s.t_last_logical_reads
, s.t_min_logical_reads
, s.t_max_logical_reads
, s.t_avg_logical_writes
, s.t_total_logical_writes
, s.t_last_logical_writes
, s.t_min_logical_writes
, s.t_max_logical_writes
, s.t_avg_IO
, s.t_total_IO
, s.t_last_IO
, s.t_min_IO
, s.t_max_IO
, ob.cpu_rank AS t_CPURank
, ob.read_rank AS t_ReadRank
, ob.write_rank AS t_WriteRank
FROM #sql_handle_convert_table s join #perf_report_objects ob on (s.t_SPRank = ob.obj_rank)
SELECT @TotalIODailyWorkload = SUM(CONVERT(MONEY,CONVERT(FLOAT,t_total_IO) * 8 /*KB*/ /1024/*MB*//1024)/@DaysOldestCachedQuery)
FROM #LEXEL_OES_stats_output
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 99, 'Workload details I/O','------','------'
INSERT #output_man_script (SectionID, Section,Summary,Details)
SELECT 99 [SectionID]
, 'Oldest Cache: ' + CONVERT(VARCHAR(15), @DaysOldestCachedQuery) + '; Days Uptime: ' + CONVERT(VARCHAR(15),@DaysUptime) [Section]
, CONVERT(VARCHAR(15),SUM(CONVERT(MONEY,CONVERT(FLOAT,t_total_IO) * 8 /*KB*/ /1024/*MB*//1024)/@DaysOldestCachedQuery) )
+ 'GB/day; ' + CONVERT(VARCHAR(15),SUM(CASE WHEN t_execution_count = 1 THEN 1 ELSE CONVERT(MONEY,t_execution_count)/@DaysOldestCachedQuery END) )
+ ' executions/day; ' + CONVERT(VARCHAR(15),SUM(CONVERT(MONEY,t_avg_worker_time)/1000 ))
+ ' s(avg) *[DailyGB; DailyExecutions; AverageTime(s)]' Summary
, 'Total' [Details]
FROM #LEXEL_OES_stats_output
GROUP BY domain, SQLInstance
INSERT #output_man_script (SectionID, Section)
SELECT 99, 'Total Disk I/O per day: '
+ CONVERT(VARCHAR(20),CASE WHEN SUM([num_of_reads]) + SUM([num_of_writes]) = 0 THEN 0
ELSE CONVERT(MONEY,(SUM([num_of_reads]) + SUM([num_of_writes]))) * 8 /1024/1024/ CONVERT(MONEY,@DaysUptime) END ) + 'GB/day'
FROM sys.dm_io_virtual_file_stats (NULL,NULL) AS [s]
INSERT #output_man_script (SectionID, Section,Summary,Details)
SELECT
99 [SectionID]
, REPLICATE('|', CONVERT(INT,(CONVERT(MONEY,t_total_IO * 8 /*KB*/ /1024/*MB*//1024)/@DaysOldestCachedQuery )/@TotalIODailyWorkload *100)) + ' ' + CONVERT(VARCHAR(10),(CONVERT(MONEY,CONVERT(FLOAT,t_total_IO) * 8 /*KB*/ /1024/*MB*//1024)/@DaysOldestCachedQuery )/@TotalIODailyWorkload *100) + '%' [Section]
, CONVERT(VARCHAR(15),(CONVERT(MONEY,CONVERT(FLOAT,t_total_IO) * 8 /*KB*/ /1024/*MB*//1024)/@DaysOldestCachedQuery) )
+ 'GB/day; ' + CONVERT(VARCHAR(15),(CASE WHEN t_execution_count = 1 THEN 1 ELSE CONVERT(MONEY,t_execution_count)/@DaysOldestCachedQuery END) )
+ ' executions/day; ' + CONVERT(VARCHAR(15),(CONVERT(MONEY,t_avg_worker_time_S)))
+ ' s(avg) *[DailyGB; DailyExecutions; AverageTime(s)]' [Summary]
, LEFT('/*' + [Type] + '; '+ ISNULL(t_obj_name,'') + ' [' + ISNULL(t_db_name,'') + '].[' + ISNULL(schema_name,'') + '] > */' + ISNULL(t_SQLStatement,''),3850) [Details]
FROM (
SELECT TOP 10 ID
, @evaldate [evaldate]
, domain
, SQLInstance
, [Type]
, row_id
, t_obj_name
, t_obj_type
, [schema_name]
, t_db_name
, replace(replace(replace(replace(replace(CONVERT(NVARCHAR(MAX),t_SQLStatement), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' '),' ', ' ') t_SQLStatement
, t_execution_count
, CASE WHEN t_execution_count = 1 THEN 1 ELSE CONVERT(MONEY,t_execution_count)/@DaysOldestCachedQuery END AS [t_execution_count_Daily]
, t_plan_generation_num
, CONVERT(MONEY,CONVERT(FLOAT,t_avg_worker_time)/1000) t_avg_worker_time_S
, CONVERT(MONEY,CONVERT(FLOAT,t_total_worker_time)/1000) t_total_worker_time_S
, CONVERT(MONEY,t_avg_logical_reads) t_avg_logical_reads
, t_total_logical_reads
, CONVERT(MONEY,t_avg_logical_writes) t_avg_logical_writes
, t_total_logical_writes
, CONVERT(MONEY,t_avg_IO) t_avg_IO
, t_total_IO
, CONVERT(MONEY,CONVERT(FLOAT,t_avg_IO) * 8 /*KB*/ /1024/*MB*//1024) [Average Workload GB]
, CONVERT(MONEY,CONVERT(FLOAT,t_total_IO) * 8 /*KB*/ /1024/*MB*//1024) [Total Workload GB]
, CONVERT(MONEY,CONVERT(FLOAT,t_total_IO) * 8 /*KB*/ /1024/*MB*//1024)/@DaysOldestCachedQuery [Daily Workload GB]
FROM #LEXEL_OES_stats_output
ORDER BY t_total_IO DESC
) T1
OPTION (RECOMPILE);
RAISERROR (N'Daily workload calculated',0,1) WITH NOWAIT;
/*----------------------------------------
--Create DMA commands
----------------------------------------*/
IF @ShowMigrationRelatedOutputs = 1
BEGIN
INSERT #output_man_script (SectionID, Section,Summary, Details) SELECT 31, 'Database Migration Assistant commands','------','------'
INSERT #output_man_script (SectionID, Section,Summary,Details)
SELECT 31, 'DMA', 'Run in PowerShell', '.\DmaCmd.exe /AssessmentName="' + @@SERVERNAME + '_' + name + '" /AssessmentDatabases="Server=' + @@SERVERNAME
+ ';Initial Catalog=' + name + ';Integrated Security=true" /AssessmentEvaluateCompatibilityIssues /AssessmentOverwriteResult /AssessmentTargetPlatform="SqlServerWindows2017" /AssessmentResultCsv="'
+ 'C:\Temp\DMA\AssessmentReport_' + REPLACE(@@SERVERNAME,'\','_') + '_' + name + '.csv"'
FROM sys.databases
WHERE database_id > 4
RAISERROR (N'Create DMA commands',0,1) WITH NOWAIT;
END
/*----------------------------------------
--select output
----------------------------------------*/
IF UPPER(LEFT(@Export,1)) = 'S'
BEGIN
SELECT T1.ID
, evaldate
, T1.domain
, T1.SQLInstance
, T1.SectionID
, T1.Section
, ISNULL(T1.Summary,'') [Summary]
, ISNULL(T1.Severity,'') [Severity]
, ISNULL(T1.Details,'') [Details]
, ISNULL(T1.HoursToResolveWithTesting,'') [HoursToResolveWithTesting]
, CASE WHEN @ShowQueryPlan = 1 THEN ISNULL(replace(replace(replace(replace(ISNULL(CONVERT(NVARCHAR(MAX),QueryPlan),''), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' '),'') ELSE NULL END QueryPlan
FROM #output_man_script T1
ORDER BY ID ASC
OPTION (RECOMPILE)
END
IF UPPER(LEFT(@Export,1)) = 'T'
BEGIN
IF OBJECT_ID(@ExportDBName + '.' + @ExportSchema + '.' + @ExportTableName) IS NULL
BEGIN
SET @dynamicSQL = 'CREATE TABLE ' + @ExportDBName + '.' + @ExportSchema + '.' + @ExportTableName + '
(
ID INT
, evaldate DATETIME
, domain NVARCHAR(50)
, SQLInstance NVARCHAR(50)
, SectionID TINYINT
, Section NVARCHAR(MAX)
, Summary NVARCHAR(MAX)
, Severity NVARCHAR(5)
, Details NVARCHAR(MAX)
, HoursToResolveWithTesting MONEY
, QueryPlan NVARCHAR(MAX)
);'
EXEC sp_executesql @dynamicSQL;
END
ELSE
BEGIN
SET @dynamicSQL = 'DELETE FROM ' + @ExportDBName + '.' + @ExportSchema + '.' + @ExportTableName + '
WHERE evaldate < DATEADD(DAY, - ' + CONVERT(VARCHAR(5),@ExportCleanupDays) + ', GETDATE())'
EXEC sp_executesql @dynamicSQL;
END
SET @dynamicSQL = '
DECLARE @ColumnsToAdd TABLE (ID INT IDENTITY(1,1), ColumnName NVARCHAR(500), [order] TINYINT, [length] INT)
INSERT INTO @ColumnsToAdd
SELECT targetcolumns.name, targetcolumns.column_id, targetcolumns.max_length
FROM (
SELECT c.name, column_id, max_length
FROM tempdb.sys.columns c
INNER JOIN tempdb.sys.tables t ON t.object_id = c.object_id
WHERE t.name like ''%output_man_script%'') targetcolumns
LEFT OUTER JOIN(
SELECT c.name, column_id, max_length
FROM master.sys.columns c
INNER JOIN master.sys.tables t ON t.object_id = c.object_id
WHERE t.name = ''' + @ExportTableName + ''') currentcolumns ON targetcolumns.name = currentcolumns.name
WHERE currentcolumns.name IS NULL
DECLARE @MaxcolumnsToAdd INT = 0;
DECLARE @ColumnCountLoop INT = 1;
DECLARE @ColumnToAdd NVARCHAR(500);
DECLARE @ColumnToAddLen INT = 0;
SET @MaxcolumnsToAdd = (SELECT MAX(ID) FROM @ColumnsToAdd)
IF @MaxcolumnsToAdd > 0
BEGIN
WHILE @ColumnCountLoop <= @MaxcolumnsToAdd
BEGIN
SELECT @ColumnToAdd = ColumnName
, @ColumnToAddLen = [length]
FROM @ColumnsToAdd WHERE ID = @ColumnCountLoop
IF @ColumnToAdd = ''evaldate''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD evaldate DATETIME DEFAULT GETDATE()
IF @ColumnToAdd = ''domain''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD domain NVARCHAR(505) DEFAULT DEFAULT_DOMAIN()
IF @ColumnToAdd = ''SQLInstance''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD SQLInstance NVARCHAR(505) DEFAULT @@SERVERNAME
IF @ColumnToAdd = ''SectionID''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD SectionID TINYINT NULL
IF @ColumnToAdd = ''Section''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD Section NVARCHAR(4000)
IF @ColumnToAdd = ''Summary''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD Summary NVARCHAR(4000)
IF @ColumnToAdd = ''Severity''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD Severity NVARCHAR(5)
IF @ColumnToAdd = ''Details''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD Details NVARCHAR(4000)
IF @ColumnToAdd = ''QueryPlan''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD QueryPlan XML NULL
IF @ColumnToAdd = ''HoursToResolveWithTesting''
ALTER TABLE ['+ @ExportDBName +'].[' + @ExportSchema + '].[' + @ExportTableName + '] ADD HoursToResolveWithTesting MONEY NULL
SET @ColumnCountLoop = @ColumnCountLoop + 1;
END
END
';
EXEC sp_executesql @dynamicSQL;
SET @dynamicSQL = 'INSERT INTO ' + @ExportDBName + '.' + @ExportSchema + '.' + @ExportTableName + '
(ID
, evaldate
, domain
, SQLInstance
, SectionID
, Section
, Summary
, Severity
, Details
, HoursToResolveWithTesting
, QueryPlan)
SELECT T1.ID
, evaldate
, T1.domain
, T1.SQLInstance
, T1.SectionID
, T1.Section
, T1.Summary
, T1.Severity
, T1.Details
, T1.HoursToResolveWithTesting
, CASE WHEN ' + CONVERT(VARCHAR(5),@ShowQueryPlan) + ' = 1 THEN ISNULL(replace(replace(replace(replace(ISNULL(CONVERT(NVARCHAR(MAX),QueryPlan),''''), CHAR(9), '' ''),CHAR(10),'' ''), CHAR(13), '' ''), '' '','' ''),'''') ELSE NULL END QueryPlan
FROM #output_man_script T1
ORDER BY ID ASC
OPTION (RECOMPILE)'
EXEC sp_executesql @dynamicSQL;
IF @ShowOnScreenWhenResultsToTable = 1
BEGIN
/*And after all that hard work, how about we select to the screen as well*/
SELECT T1.ID
, evaldate
, T1.domain
, T1.SQLInstance
, T1.SectionID
, T1.Section
, T1.Summary
, T1.Severity
, T1.Details
, T1.HoursToResolveWithTesting
, CASE WHEN @ShowQueryPlan = 1 THEN ISNULL(replace(replace(replace(replace(ISNULL(CONVERT(NVARCHAR(MAX),QueryPlan),''), CHAR(9), ' '),CHAR(10),' '), CHAR(13), ' '), ' ',' '),'') ELSE NULL END QueryPlan
FROM #output_man_script T1
ORDER BY ID ASC
OPTION (RECOMPILE)
END
END
IF OBJECT_ID('tempdb..#output_man_script') IS NOT NULL
DROP TABLE #output_man_script
IF OBJECT_ID('tempdb..#Action_Statistics') IS NOT NULL
DROP TABLE #Action_Statistics
IF OBJECT_ID('tempdb..#db_sps') IS NOT NULL
DROP TABLE #db_sps
IF OBJECT_ID('tempdb..#ConfigurationDefaults') IS NOT NULL
DROP TABLE #ConfigurationDefaults
IF OBJECT_ID('tempdb..#querystats') IS NOT NULL
DROP TABLE #querystats
IF OBJECT_ID('tempdb..#dbccloginfo') IS NOT NULL
DROP TABLE #dbccloginfo
IF OBJECT_ID('tempdb..#notrust') IS NOT NULL
DROP TABLE #notrust
IF OBJECT_ID('tempdb..#MissingIndex') IS NOT NULL
DROP TABLE #MissingIndex;
IF OBJECT_ID('tempdb..#HeapTable') IS NOT NULL
DROP TABLE #HeapTable;
IF OBJECT_ID('tempdb..#whatsets') IS NOT NULL
DROP TABLE #whatsets
IF OBJECT_ID('tempdb..#dbccloginfo') IS NOT NULL
DROP TABLE #dbccloginfo
IF OBJECT_ID('tempdb..SQLVersionsDump') IS NOT NULL
DROP TABLE #SQLVersionsDump
IF OBJECT_ID('tempdb..SQLVersions') IS NOT NULL
DROP TABLE #SQLVersions
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_sql_handle_convert_table', 'U') IS NOT NULL
DROP TABLE #LEXEL_OES_stats_sql_handle_convert_table;
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_objects', 'U') IS NOT NULL
DROP TABLE #LEXEL_OES_stats_objects;
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_object_name', 'U') IS NOT NULL
DROP TABLE #LEXEL_OES_stats_object_name;
IF OBJECT_ID('tempdb..#sql_handle_convert_table') IS NOT NULL
DROP TABLE #sql_handle_convert_table;
IF OBJECT_ID('tempdb..#perf_report_objects') IS NOT NULL
DROP TABLE #perf_report_objects;
IF OBJECT_ID('tempdb.dbo.#LEXEL_OES_stats_output', 'U') IS NOT NULL
DROP TABLE #LEXEL_OES_stats_output;
/*
SELECT TOP 10
qs.plan_generation_num,
qs.execution_count,
DB_NAME(st.dbid) AS DbName,
st.objectid,
st.TEXT
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS st
ORDER BY plan_generation_num DESC
OPTION (RECOMPILE)
*/
/* Get current connection details
SELECT
T.program_name
, T.database_id
, CASE
WHEN T.client_version = 4 THEN 'SQL 2000'
WHEN T.client_version = 5 THEN 'SQL 2005'
WHEN T.client_version = 6 THEN 'SQL 2008'
WHEN T.client_version = 7 THEN 'SQL 2012'
ELSE 'SQL 2014+'
END
, T.client_interface_name
, T.text_size
, T.date_format
, T.date_first
, T.quoted_identifier
, T.arithabort
, T.ansi_null_dflt_on
, T.ansi_defaults
, T.ansi_warnings
, T.ansi_nulls
, T.concat_null_yields_null
, T.transaction_isolation_level
, T.lock_timeout
, T.deadlock_priority
, T.prev_error
FROM sys.dm_exec_sessions T
WHERE T.program_name IS NOT NULL
*/
SET NOCOUNT OFF;
--COMING SOON
/*
https://blog.pythian.com/list-of-sql-server-databases-in-an-availability-group/
Michelle, https://blog.pythian.com/author/gutzait/
SELECT dbs.name DBName , t1.* FROM sys.databases dbs
LEFT OUTER JOIN(
SELECT top 100 percent
AG.name AS [AvailabilityGroupName],
ISNULL(agstates.primary_replica, '') AS [PrimaryReplicaServerName],
ISNULL(arstates.role, 3) AS [LocalReplicaRole],
dbcs.database_name AS [DatabaseName],
ISNULL(dbrs.synchronization_state, 0) AS [SynchronizationState],
ISNULL(dbrs.is_suspended, 0) AS [IsSuspended],
ISNULL(dbcs.is_database_joined, 0) AS [IsJoined]
FROM master.sys.availability_groups AS AG
LEFT OUTER JOIN master.sys.dm_hadr_availability_group_states as agstates
ON AG.group_id = agstates.group_id
INNER JOIN master.sys.availability_replicas AS AR
ON AG.group_id = AR.group_id
INNER JOIN master.sys.dm_hadr_availability_replica_states AS arstates
ON AR.replica_id = arstates.replica_id AND arstates.is_local = 1
INNER JOIN master.sys.dm_hadr_database_replica_cluster_states AS dbcs
ON arstates.replica_id = dbcs.replica_id
LEFT OUTER JOIN master.sys.dm_hadr_database_replica_states AS dbrs
ON dbcs.replica_id = dbrs.replica_id AND dbcs.group_database_id = dbrs.group_database_id
ORDER BY AG.name ASC, dbcs.database_name
) t1 on t1.DatabaseName = dbs.name
ORDER BY t1.AvailabilityGroupName, dbs.name
*/
END
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 21, 2018 at 10:14 PM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `examInt`
--
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2018_04_21_071606_create_warehouses_table', 2),
(4, '2018_04_21_082522_create_products_table', 3),
(5, '2018_04_21_083041_create_sales_table', 4),
(6, '2018_04_21_083305_create_stocks_table', 5);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`warehouseID` int(10) UNSIGNED NOT NULL,
`min` int(11) NOT NULL,
`max` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `name`, `warehouseID`, `min`, `max`, `created_at`, `updated_at`) VALUES
(6, 'Coca Cola', 1, 10, 100, '2018-04-22 00:31:24', '2018-04-22 00:31:24');
-- --------------------------------------------------------
--
-- Table structure for table `sales`
--
CREATE TABLE `sales` (
`id` int(10) UNSIGNED NOT NULL,
`productID` int(10) UNSIGNED NOT NULL,
`quantitySold` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sales`
--
INSERT INTO `sales` (`id`, `productID`, `quantitySold`, `created_at`, `updated_at`) VALUES
(5, 6, 10, '2018-04-22 00:47:42', '2018-04-22 00:47:42');
-- --------------------------------------------------------
--
-- Table structure for table `stocks`
--
CREATE TABLE `stocks` (
`id` int(10) UNSIGNED NOT NULL,
`productID` int(10) UNSIGNED NOT NULL,
`quantityStored` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `stocks`
--
INSERT INTO `stocks` (`id`, `productID`, `quantityStored`, `created_at`, `updated_at`) VALUES
(6, 6, 701, '2018-04-22 00:31:58', '2018-04-22 00:54:31');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '<EMAIL>', <PASSWORD>', 'HzyRcY6o9ePLAqXpsgnrrhgosHYvgAhBkZaxoAsRfePZ9yUvj2pNi0NmiIkO', '2018-04-21 12:48:20', '2018-04-21 12:48:20');
-- --------------------------------------------------------
--
-- Table structure for table `warehouses`
--
CREATE TABLE `warehouses` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`min` int(11) NOT NULL,
`max` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `warehouses`
--
INSERT INTO `warehouses` (`id`, `name`, `min`, `max`, `created_at`, `updated_at`) VALUES
(1, 'Plant 1', 100, 200, '2018-04-21 13:02:39', '2018-04-21 13:02:39'),
(2, 'Plant 2', 50, 100, '2018-04-21 13:04:53', '2018-04-21 13:04:53');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD KEY `products_warehouseid_foreign` (`warehouseID`);
--
-- Indexes for table `sales`
--
ALTER TABLE `sales`
ADD PRIMARY KEY (`id`),
ADD KEY `sales_productid_foreign` (`productID`);
--
-- Indexes for table `stocks`
--
ALTER TABLE `stocks`
ADD PRIMARY KEY (`id`),
ADD KEY `stocks_productid_foreign` (`productID`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- Indexes for table `warehouses`
--
ALTER TABLE `warehouses`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `sales`
--
ALTER TABLE `sales`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `stocks`
--
ALTER TABLE `stocks`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `warehouses`
--
ALTER TABLE `warehouses`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_warehouseid_foreign` FOREIGN KEY (`warehouseID`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `sales`
--
ALTER TABLE `sales`
ADD CONSTRAINT `sales_productid_foreign` FOREIGN KEY (`productID`) REFERENCES `products` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `stocks`
--
ALTER TABLE `stocks`
ADD CONSTRAINT `stocks_productid_foreign` FOREIGN KEY (`productID`) REFERENCES `products` (`id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- ============================================================
-- ACTUALIZAR FUNCIONES DE CLIENTE
-- ============================================================
-- Function: admin.fn_desktop_cliente_actualizar(bigint, integer, integer, character varying, character varying, character varying, character varying, character varying, character varying, integer)
-- DROP FUNCTION admin.fn_desktop_cliente_actualizar(bigint, integer, integer, character varying, character varying, character varying, character varying, character varying, character varying, integer);
CREATE OR REPLACE FUNCTION admin.fn_desktop_cliente_actualizar(
IN in_idcliente bigint,
IN in_idtipocliente integer,
IN in_idtipodocumento integer,
IN in_documento character varying,
IN in_nombre character varying,
IN in_representante character varying,
IN in_telefono character varying,
IN in_email character varying,
IN in_observacion character varying,
IN in_idusuario integer)
RETURNS boolean AS
$BODY$
BEGIN
update admin.cliente
set idtipocliente = in_idtipocliente,
idtipodocumento = in_idtipodocumento,
documento = in_documento,
nombre = in_nombre,
representante = in_representante,
telefono = in_telefono,
email = in_email,
observacion = in_observacion,
auditoria_actualizacionusuario = in_idusuario
where idcliente = in_idcliente;
return FOUND;
END
$BODY$
LANGUAGE plpgsql volatile
COST 100;
-- Function: admin.fn_desktop_cliente_listar(character varying)
-- DROP FUNCTION admin.fn_desktop_cliente_listar(character varying);
CREATE OR REPLACE FUNCTION admin.fn_desktop_cliente_listar(IN in_documento character varying)
RETURNS TABLE (
item integer,
idcliente bigint,
idtipocliente integer,
tipocliente character varying,
idtipodocumento integer,
tipodocumento character varying,
documento character varying,
nombre character varying,
representante character varying,
telefono character varying,
email character varying,
observacion character varying,
estadoregistro character,
vehiculos integer
) AS
$BODY$
BEGIN
return query
select
(row_number() Over(order by c.idcliente))::integer as item,
c.idcliente,
c.idtipocliente,
(case when c.idtipocliente = 1 then 'NATURAL' else 'JURIDICA' end)::character varying as tipocliente,
c.idtipodocumento,
(case when c.idtipodocumento = 1 then 'DNI' else 'RUC' end)::character varying as tipodocumento,
c.documento,
c.nombre,
c.representante,
c.telefono,
c.email,
c.observacion,
c.estadoregistro,
coalesce(v.vehiculos,0)::integer
from admin.cliente c
left join (
select t.idcliente, count(1) as vehiculos
from admin.clientevehiculo t
where t.estadoregistro = 'A'
group by t.idcliente
) v on c.idcliente = v.idcliente
where c.estadoregistro = 'A'
and (c.documento like in_documento || '%' or in_documento is null);
END
$BODY$
LANGUAGE plpgsql volatile
COST 100
ROWS 100;
-- ============================================================
-- FUNCIONES DE VEHICULO
-- ============================================================
-- Function: admin.fn_desktop_vehiculo_listar(boolean,character varying)
-- DROP FUNCTION admin.fn_desktop_vehiculo_listar(boolean, character varying);
CREATE OR REPLACE FUNCTION admin.fn_desktop_vehiculo_listar(
IN in_porplaca boolean,
IN in_texto character varying)
RETURNS TABLE (
item integer,
idvehiculo bigint,
placa character varying,
idtipovehiculo integer,
tipovehiculo character varying,
descripcion character varying,
estadoregistro character,
idclientevehiculo bigint,
idcliente bigint,
propietario character varying
) AS
$BODY$
BEGIN
if (in_porplaca) then
return query
select
(row_number() Over(order by v.idvehiculo))::integer as item,
v.idvehiculo,
v.placa,
t.idtipovehiculo,
t.nombre as tipovehiculo,
v.descripcion,
v.estadoregistro,
coalesce(cv.idclientevehiculo,0)::bigint,
coalesce(cv.idcliente,0)::bigint,
c.nombre as propietario
from admin.vehiculo v
inner join admin.tipovehiculo t on v.idtipovehiculo = t.idtipovehiculo
left join admin.clientevehiculo cv on v.idvehiculo = cv.idvehiculo
left join admin.cliente c on cv.idcliente = c.idcliente and c.estadoregistro = 'A'
where v.estadoregistro = 'A'
and (v.placa like in_texto || '%' or in_texto is null);
else
return query
select
(row_number() Over(order by v.idvehiculo))::integer as item,
v.idvehiculo,
v.placa,
t.idtipovehiculo,
t.nombre as tipovehiculo,
v.descripcion,
v.estadoregistro,
cv.idclientevehiculo,
cv.idcliente,
c.nombre as propietario
from admin.vehiculo v
inner join admin.tipovehiculo t on v.idtipovehiculo = t.idtipovehiculo
inner join admin.clientevehiculo cv on v.idvehiculo = cv.idvehiculo
inner join admin.cliente c on cv.idcliente = c.idcliente
where v.estadoregistro = 'A' and c.estadoregistro = 'A'
and (c.nombre like in_texto || '%' or in_texto is null);
end if;
END
$BODY$
LANGUAGE plpgsql volatile
COST 100
ROWS 100;
-- Function: admin.fn_desktop_vehiculo_insertar(integer, character varying, character varying, bigint)
-- DROP FUNCTION admin.fn_desktop_vehiculo_insertar(integer, character varying, character varying, bigint);
CREATE OR REPLACE FUNCTION admin.fn_desktop_vehiculo_insertar(
IN in_idtipovehiculo integer,
IN in_placa character varying,
IN in_descripcion character varying,
IN in_idcliente bigint)
RETURNS bigint AS
$BODY$
DECLARE v_idvehiculo bigint:=0;
BEGIN
-- insertar vehiculo
insert into admin.vehiculo(idvehiculo,idtipovehiculo,placa,descripcion)
values (nextval('admin.seq_vehiculo_pk'),in_idtipovehiculo,in_placa,in_descripcion)
returning idvehiculo into v_idvehiculo;
if (v_idvehiculo > 0) then
if (in_idcliente > 0) then
-- insertar clientevehiculo
insert into admin.clientevehiculo(idclientevehiculo,idcliente,idvehiculo)
values (nextval('admin.seq_clientevehiculo_pk'),in_idcliente,v_idvehiculo);
end if;
end if;
return v_idvehiculo;
END
$BODY$
LANGUAGE plpgsql volatile
COST 100;
-- Function: admin.fn_desktop_vehiculo_actualizar(bigint, integer, character varying, character varying, bigint, bigint);
-- DROP FUNCTION admin.fn_desktop_vehiculo_actualizar(bigint, integer, character varying, character varying, bigint, bigint);
CREATE OR REPLACE FUNCTION admin.fn_desktop_vehiculo_actualizar(
IN in_idvehiculo bigint,
IN in_idtipovehiculo integer,
IN in_placa character varying,
IN in_descripcion character varying,
IN in_idclientevehiculo bigint,
IN in_idcliente bigint)
RETURNS bigint AS
$BODY$
declare v_idcliente bigint:=0;
BEGIN
-- actualizar vehiculo
update admin.vehiculo
set idtipovehiculo = in_idtipovehiculo,
placa = in_placa,
descripcion = in_descripcion
where idvehiculo = in_idvehiculo;
if (in_idclientevehiculo > 0) then
update admin.clientevehiculo
set idcliente = in_idcliente,
idvehiculo = in_idvehiculo
where idclientevehiculo = in_idclientevehiculo;
else
if (in_idcliente > 0) then
-- insertar nuevo propietario
insert into admin.clientevehiculo(idclientevehiculo,idcliente,idvehiculo)
values (nextval('admin.seq_clientevehiculo_pk'),in_idcliente,in_idvehiculo);
end if;
end if;
return FOUND;
END
$BODY$
LANGUAGE plpgsql volatile
COST 100;
-- Function: admin.fn_desktop_vehiculo_eliminar(bigint, bigint)
-- DROP FUNCTION admin.fn_desktop_vehiculo_eliminar(bigint, bigint);
CREATE OR REPLACE FUNCTION admin.fn_desktop_vehiculo_eliminar(
IN in_idvehiculo bigint,
IN in_idclientevehiculo bigint)
RETURNS boolean AS
$BODY$
BEGIN
update admin.vehiculo
set estadoregistro = 'E'
where idvehiculo = in_idvehiculo;
update admin.clientevehiculo
set estadoregistro = 'E'
where idclientevehiculo = in_idclientevehiculo;
return FOUND;
END
$BODY$
LANGUAGE plpgsql volatile
COST 100;
select idtipovehiculo,nombre from admin.tipovehiculo;
select idvehiculo,idtipovehiculo,placa,descripcion from admin.vehiculo;
select idclientevehiculo,idcliente,idvehiculo from admin.clientevehiculo;
select * from admin.cliente;
--update admin.cliente set estadoregistro = 'A' where idcliente = 3
select * from admin.fn_desktop_vehiculo_listar('true', 'A');
select * from admin.fn_desktop_vehiculo_listar('false', 'V');
-- admin.fn_desktop_vehiculo_insertar(integer, character varying, character varying, integer);
-- ============================================================
-- Tabla modulo
-- ============================================================
create table admin.modulo (
idmodulo integer not nul,
serialnumber varchar(64),
et
token varchar(64) not null,
macabonado varchar(20) not null,
ip varchar(20),
port varchar(10),
conectado integer default 0 not null,
);
--- ip, puerto, conectado, sincronizado, token,
-- VER ESTE LINK
-- https://www.youtube.com/watch?v=6VdIEovint8
-- ver proceso de ingreso y salida
|
<reponame>IsiahLarose/IT202-450
SELECT * FROM Roles JOIN UserRoles on Roles.id = UserRoles.role_id where UserRoles.user_id = :user_id
|
<reponame>eduellery/hackerrank
SELECT ROUND(s.long_w, 4)
FROM station s
WHERE s.lat_n < 137.2345
ORDER BY s.lat_n DESC LIMIT 1;
|
<reponame>pedrogalocha/winoworld<gh_stars>0
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: winoworld
-- ------------------------------------------------------
-- Server version 5.7.18-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `class`
--
DROP TABLE IF EXISTS `class`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `class` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`class_name` varchar(45) DEFAULT NULL,
`descricao` varchar(50) DEFAULT NULL,
`id_habilidade` int(11) DEFAULT NULL,
`avatar` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `class`
--
LOCK TABLES `class` WRITE;
/*!40000 ALTER TABLE `class` DISABLE KEYS */;
INSERT INTO `class` VALUES (1,'Otario','Nenhuma',NULL,NULL),(2,'Soldado','Pronto para batalha sempre.',1,'soldier.png'),(3,'Engenheiro','Aquele que mantem os equipamentos funcionando.',2,'enginer.png'),(4,'Cientista','Inovador, sempre buscando solução',3,'cientista.png'),(5,'Batedor','Aquele que fica atento e alerta a equipe',4,'batedor.png');
/*!40000 ALTER TABLE `class` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `classe_aux`
--
DROP TABLE IF EXISTS `classe_aux`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `classe_aux` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_classe` int(11) DEFAULT NULL,
`id_player` int(11) DEFAULT NULL,
`level_up` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `classe_aux`
--
LOCK TABLES `classe_aux` WRITE;
/*!40000 ALTER TABLE `classe_aux` DISABLE KEYS */;
INSERT INTO `classe_aux` VALUES (1,1,1,0),(2,2,1,0),(3,3,1,0);
/*!40000 ALTER TABLE `classe_aux` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `conquistas`
--
DROP TABLE IF EXISTS `conquistas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `conquistas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome_con` varchar(45) NOT NULL,
`xp` varchar(45) DEFAULT NULL,
`descricao` varchar(45) DEFAULT NULL,
`imagem` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `conquistas`
--
LOCK TABLES `conquistas` WRITE;
/*!40000 ALTER TABLE `conquistas` DISABLE KEYS */;
INSERT INTO `conquistas` VALUES (1,'Iniciando a Caçada','20','Mate 100 Zumbis','pau-no-gato.png'),(2,'Finisher','50','Finalize uma tarefa dentro do prazo','finisher.png');
/*!40000 ALTER TABLE `conquistas` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `conquistas_feitas`
--
DROP TABLE IF EXISTS `conquistas_feitas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `conquistas_feitas` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`jogador_id` int(11) NOT NULL,
`conquista_id` int(11) NOT NULL,
`data` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `conquistas_feitas`
--
LOCK TABLES `conquistas_feitas` WRITE;
/*!40000 ALTER TABLE `conquistas_feitas` DISABLE KEYS */;
INSERT INTO `conquistas_feitas` VALUES (1,1,1,'2019-02-13 00:00:00'),(2,1,2,'2019-02-13 00:00:00');
/*!40000 ALTER TABLE `conquistas_feitas` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `habilidades`
--
DROP TABLE IF EXISTS `habilidades`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `habilidades` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(45) DEFAULT NULL,
`desc` varchar(250) DEFAULT NULL,
`efeito` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `habilidades`
--
LOCK TABLES `habilidades` WRITE;
/*!40000 ALTER TABLE `habilidades` DISABLE KEYS */;
INSERT INTO `habilidades` VALUES (1,'Tank Nato','Devido a sempre estar em combates, cria grande resistência e recebe +10 de HP',NULL),(2,'El Matador','Especializado em eliminar zumbis, ele consegue facilmente fazer a limpa na área,recebendo +1 Para Cada Chamado feito',NULL),(3,'Missão dada é missão cumprida','-2 Min em cada chamado feito.',NULL),(4,'Tank Nato Aprimorado','+10 de HP / Redução de Dano 2',NULL),(5,'Maestria em tipo de chamado ','quando é escolhido a maestria em um tipo de chamado, você ganha +2 naquele tipo de chamado.',NULL),(6,'Mecânico de campo','+50 para cada conserto de periférico.',NULL),(7,'Controlador','+500 para cada levantamento e revisão de estoque no inventário. ',NULL),(8,'Engenheiro da Computação','+25 para cada máquina consertada',NULL),(9,'Mecânico de campo aprimorado','+25 para cada conserto de periférico / +20 caso o equipamento foi retirado no mesmo dia.',NULL),(10,'Engenheiro da Computação Aprimorado','+25 para cada conserto de máquina / +25 Caso a máquina volte no mesmo dia para PA.',NULL);
/*!40000 ALTER TABLE `habilidades` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `habilidades_kit`
--
DROP TABLE IF EXISTS `habilidades_kit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `habilidades_kit` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`hab1` int(11) DEFAULT NULL,
`hab2` int(11) DEFAULT NULL,
`hab3` int(11) DEFAULT NULL,
`hab4` int(11) DEFAULT NULL,
`hab5` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `habilidades_kit`
--
LOCK TABLES `habilidades_kit` WRITE;
/*!40000 ALTER TABLE `habilidades_kit` DISABLE KEYS */;
INSERT INTO `habilidades_kit` VALUES (1,1,2,3,4,5),(2,6,7,8,9,10);
/*!40000 ALTER TABLE `habilidades_kit` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `level`
--
DROP TABLE IF EXISTS `level`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `level` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`level` int(11) DEFAULT NULL,
`requisitos` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `level`
--
LOCK TABLES `level` WRITE;
/*!40000 ALTER TABLE `level` DISABLE KEYS */;
INSERT INTO `level` VALUES (1,0,0),(2,1,3000);
/*!40000 ALTER TABLE `level` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `players`
--
DROP TABLE IF EXISTS `players`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `players` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
`class_id` int(11) NOT NULL,
`hp` int(11) DEFAULT NULL,
`abilities` varchar(200) DEFAULT NULL,
`patent` varchar(20) DEFAULT NULL,
`level_id` int(11) DEFAULT NULL,
`xp` int(11) DEFAULT NULL,
`users_id` int(11) NOT NULL,
`avatar` varchar(45) DEFAULT NULL,
`glpi_id` int(11) DEFAULT NULL,
`zumbis_mortos` int(11) DEFAULT NULL,
`tma` time(4) DEFAULT NULL,
`liberado` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `players`
--
LOCK TABLES `players` WRITE;
/*!40000 ALTER TABLE `players` DISABLE KEYS */;
INSERT INTO `players` VALUES (1,'<NAME>',2,50,NULL,NULL,1,223,2,'sob_3.png',968,121,'00:20:28.0000',1);
/*!40000 ALTER TABLE `players` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `task`
--
DROP TABLE IF EXISTS `task`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name_task` varchar(100) NOT NULL,
`xp` double NOT NULL,
`tipo` varchar(45) DEFAULT NULL,
`descricao_task` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `task`
--
LOCK TABLES `task` WRITE;
/*!40000 ALTER TABLE `task` DISABLE KEYS */;
INSERT INTO `task` VALUES (1,'<NAME>',1,'Chamados','Atender chamado é o principio do suporte, existem inúmeros, cada chamado feito corresponde a 1 ponto.'),(2,'Manutenção de equipamento',50,'Conserto Perifericos','Consertar um periferico poupa dinheiro para empresa.'),(3,'Tempo de missão diaria',50,'SLA-20','Manter o SLA abaixo de 20 minutos diario, significa um bom tempo de atendimento.'),(4,'Pensar e criar formas melhores de derrotar os zumbis',100,'Inovação','Solucionar um problema operacional ou de staff, melhora desempenho da empresa em um todo.'),(5,'Atualizar registro de missões e sobre as criaturas',50,'Base de Conhecimento','Manter atualizado a base de conhecimento faz com que toda equipe tenha acesso informações importantes para prosseguir com um atendimento.'),(6,'Movimentar os equipamentos entre lugares.',25,'Movimentação de equipamentos','Movimentar equipamentos não é uma tarefa muito legal, porém aquele que o faz ajuda manter a empresa de acordo com seu alinhamento estrategico.'),(7,'Alterar os canais de comunicação da equipe',0.5,'Movimentação de Canais','Movimentar rotas mantem a organização e bom custo do Telecom.'),(8,'Modificações na torre de rádio.',100,'Ações Telecom','Implantação de Rotas, Servidores'),(9,'Patrulhas e alertas sobre possiveis ataques.',50,'Monitoria de problemas','Identificar problemas sistemicos ou de infra e trata-los (Incluso Abertura de chamado GSE)'),(10,'Atualizar registros sobre o que temos em estoque.',50,'Atualizar Controles','Atualizar qualquer controle que tenha sido alterado'),(11,'Rotinas dentro da base.',250,'Procedimentos TI','Limpeza do TI, CPD, arquivo,etc..'),(12,'Reconhecimento de campo proximo a base.',25,'Checklist','Ronda das PA\'s, Transbordo, OCS, diario');
/*!40000 ALTER TABLE `task` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `task_feita`
--
DROP TABLE IF EXISTS `task_feita`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task_feita` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`task_id` int(11) DEFAULT NULL,
`data_conclusao` datetime DEFAULT NULL,
`player_id` int(11) DEFAULT NULL,
`xp_total` varchar(45) DEFAULT NULL,
`quantidade` varchar(45) DEFAULT NULL,
`n_chamado` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `task_feita`
--
LOCK TABLES `task_feita` WRITE;
/*!40000 ALTER TABLE `task_feita` DISABLE KEYS */;
INSERT INTO `task_feita` VALUES (1,1,'2019-02-13 00:00:00',1,'50','50','4650'),(22,1,'2019-02-13 00:00:00',1,'2','2',NULL),(23,2,'2019-02-13 00:00:00',1,'50','2','5231');
/*!40000 ALTER TABLE `task_feita` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`adm` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'pedro.galocha','631542aQ1','Administrador'),(2,'joao.uchiashi','123','Jogador');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2019-02-20 16:20:42
|
\echo Use "CREATE EXTENSION tm_updated_date" to load this file. \quit
-- BASE TABLE for updated date.
CREATE TABLE tm_updated_date (
updated_at TIMESTAMP WITH TIME ZONE,
created_at TIMESTAMP WITH TIME ZONE
);
-- This is a marker for exclusion from trigger target.
CREATE TABLE tm_updated_date_no_trigger (
);
-- UPDATE 'created_at' and 'updated_at'
CREATE OR REPLACE FUNCTION tm_updated_date_trigger_func()
RETURNS TRIGGER AS $tm_updated_date_trigger_func$
DECLARE
current_timestamp TIMESTAMP WITH TIME ZONE = NOW();
BEGIN
IF TG_OP = 'INSERT' THEN
NEW.created_at = current_timestamp;
END IF;
NEW.updated_at = current_timestamp;
RETURN NEW;
END;
$tm_updated_date_trigger_func$ LANGUAGE plpgsql;
-- MAKE TRIGGER FOR input_table_name.
CREATE OR REPLACE FUNCTION tm_make_updated_date_trigger_for(
input_table_name NAME
) RETURNS VOID AS $tm_make_updated_date_trigger_for$
DECLARE
BEGIN
-- DROP OLD TABLE
EXECUTE 'DROP TRIGGER IF EXISTS tm_updated_date_trigger ON ' || input_table_name || ' CASCADE';
-- CREATE TRIGGER
EXECUTE 'CREATE TRIGGER tm_updated_date_trigger BEFORE INSERT OR UPDATE ON ' || input_table_name ||
' FOR EACH ROW EXECUTE PROCEDURE tm_updated_date_trigger_func()';
END;
$tm_make_updated_date_trigger_for$ LANGUAGE plpgsql;
-- make triggers for all tables inherits from tm_updated_date.
CREATE OR REPLACE FUNCTION tm_make_updated_date_triggers(
input_schema_name NAME DEFAULT 'public'
) RETURNS SETOF NAME AS $tm_make_updated_date_triggers$
DECLARE
exclude_oid OID;
current_table_name NAME;
BEGIN
exclude_oid := tm_name_to_oid('tm_updated_date_no_trigger');
FOR current_table_name IN
SELECT * FROM tm_find_tables_inherit_from('tm_updated_date', input_schema_name)
LOOP
IF exclude_oid IS NOT NULL THEN
CONTINUE WHEN tm_is_inherit_from(tm_name_to_oid(current_table_name), exclude_oid);
END IF;
PERFORM tm_make_updated_date_trigger_for(current_table_name);
RETURN NEXT current_table_name;
END LOOP;
END;
$tm_make_updated_date_triggers$ LANGUAGE plpgsql;
|
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 11, 2017 at 05:16 AM
-- Server version: 5.7.14
-- PHP Version: 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `lapp`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin_settings`
--
CREATE TABLE `admin_settings` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`value` varchar(100) NOT NULL,
`change_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`group_name` varchar(30) NOT NULL,
`sequence` int(11) NOT NULL,
`group_title` varchar(50) NOT NULL,
`can_delete` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin_settings`
--
INSERT INTO `admin_settings` (`id`, `name`, `value`, `change_date`, `group_name`, `sequence`, `group_title`, `can_delete`) VALUES
(1, 'api_key', '<KEY>', '2017-03-29 03:51:41', '', 0, 'Authorize Settings', 0),
(2, 'auth_key', '<KEY>', '2017-03-29 03:51:41', '', 0, 'Authorize Settings', 0),
(3, 'failed', '8', '2017-03-30 04:03:30', '', 0, 'Security Settings', 0),
(4, 'time', '12', '2017-03-30 04:03:30', '', 0, 'Security Settings', 0),
(5, 'emails', '', '2017-03-30 04:03:30', '', 0, 'Security Settings', 0),
(6, 'google_api_key', '<KEY>', '2017-04-02 02:07:07', ' ', 0, 'Api Settings', 0);
-- --------------------------------------------------------
--
-- Table structure for table `customer`
--
CREATE TABLE `customer` (
`id` int(11) NOT NULL,
`first_name` varchar(30) NOT NULL,
`middle_initial` varchar(1) NOT NULL,
`last_name` varchar(50) NOT NULL,
`customer_number` varchar(11) NOT NULL,
`identifier` int(11) NOT NULL,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`email` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `customer_address`
--
CREATE TABLE `customer_address` (
`id` int(11) NOT NULL,
`address` varchar(50) NOT NULL,
`additional_address` varchar(50) NOT NULL,
`city` varchar(30) NOT NULL,
`state` varchar(2) NOT NULL,
`zip` int(5) NOT NULL,
`customer_number` varchar(11) NOT NULL,
`added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`current` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `customer_phone`
--
CREATE TABLE `customer_phone` (
`id` int(11) NOT NULL,
`phone` int(11) NOT NULL,
`added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`current` tinyint(1) NOT NULL,
`customer_number` varchar(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `forms`
--
CREATE TABLE `forms` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`category` varchar(30) NOT NULL,
`header` text NOT NULL,
`footer` text NOT NULL,
`added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`cost` float NOT NULL,
`min_cost` float NOT NULL DEFAULT '0',
`active` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `forms`
--
INSERT INTO `forms` (`id`, `name`, `category`, `header`, `footer`, `added`, `updated`, `cost`, `min_cost`, `active`) VALUES
(2, 'Form 2 w 6 inputs', '', 's afa Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nunc dui, aliquet eu urna vel, elementum lacinia nibh. Vivamus mollis luctus quam, ac fermentum orci aliquet vitae. Quisque interdum dui sed nisl semper venenatis. Morbi a interdum velit, sit amet lacinia turpis. Duis gravida massa quis lectus convallis, at facilisis leo feugiat. Fusce interdum dui eros, malesuada lacinia turpis elementum et. Sed quis rhoncus urna. Pellentesque ac cursus mauris, in tempus est. Suspendisse pulvinar congue libero nec sodales. Aliquam placerat semper euismod. Ut venenatis vestibulum sapien. Sed placerat rutrum justo, quis aliquam elit facilisis convallis. Duis id ante ligula.', 'Nunc viverra ligula elementum, auctor dolor quis, scelerisque ligula. Sed blandit justo scelerisque velit efficitur mollis. Morbi mollis justo purus, ac fermentum sapien semper vitae. Sed quis erat egestas, sollicitudin felis sed, auctor ipsum. Praesent at velit at purus ornare euismod vulputate ac mi. <b>Duis mattis nec erat</b> nec viverra. Integer a neque risus.', '2017-03-18 15:44:08', '2017-04-11 04:57:43', 100, 50, 0),
(3, 'Form 3 w 4 inputs', '', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nunc dui, aliquet eu urna vel, elementum lacinia nibh. Vivamus mollis luctus quam, ac fermentum orci aliquet vitae. Quisque interdum dui sed nisl semper venenatis. Morbi a interdum velit, sit amet lacinia turpis. Duis gravida massa quis lectus convallis, at facilisis leo feugiat. Fusce interdum dui eros, malesuada lacinia turpis elementum et. Sed quis rhoncus urna. Pellentesque ac cursus mauris, in tempus est. Suspendisse pulvinar congue libero nec sodales. Aliquam placerat semper euismod. Ut venenatis vestibulum sapien. Sed placerat rutrum justo, quis aliquam elit facilisis convallis. Duis id ante ligula.', 'Nunc viverra ligula elementum, auctor dolor quis, scelerisque ligula. Sed blandit justo scelerisque velit efficitur mollis. Morbi mollis justo purus, ac fermentum sapien semper vitae. Sed quis erat egestas, sollicitudin felis sed, auctor ipsum. Praesent at velit at purus ornare euismod vulputate ac mi. <b>Duis mattis nec erat</b> nec viverra. Integer a neque risus.', '2017-03-28 23:34:35', '2017-04-11 05:06:41', 50, 25, 1),
(5, 'Form 5 with 3 inputs', '', 'Sed sed orci eros. Cras sed lacus eget dolor facilisis venenatis. Aliquam vestibulum ornare dui ac faucibus. Cras at pretium risus. Donec sed porta sem. Mauris bibendum, purus sit amet gravida convallis, velit dolor imperdiet tellus, a facilisis tellus felis ut mi. Proin pellentesque sapien magna, luctus hendrerit sapien placerat a. Etiam consectetur, erat non blandit auctor, magna nunc tristique tellus, quis elementum est eros ac orci. ', 'Sed sed orci eros. Cras sed lacus eget dolor facilisis venenatis. Aliquam vestibulum ornare dui ac faucibus. Cras at pretium risus. Donec sed porta sem. Mauris bibendum, purus sit amet gravida convallis, velit dolor imperdiet tellus, a facilisis tellus felis ut mi. Proin pellentesque sapien magna, luctus hendrerit sapien placerat a. Etiam consectetur, erat non blandit auctor, magna nunc tristique tellus, quis elementum est eros ac orci. ', '2017-04-01 19:05:40', '2017-04-11 04:58:06', 25, 25, 0);
-- --------------------------------------------------------
--
-- Table structure for table `form_data`
--
CREATE TABLE `form_data` (
`id` int(11) NOT NULL,
`customer_id` varchar(11) NOT NULL,
`added` datetime NOT NULL,
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`value` varchar(255) NOT NULL,
`name` varchar(100) NOT NULL,
`form_id` int(11) NOT NULL,
`submission_id` int(11) NOT NULL,
`transaction_id` varchar(255) NOT NULL,
`viewed` tinyint(1) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `form_data`
--
INSERT INTO `form_data` (`id`, `customer_id`, `added`, `updated`, `value`, `name`, `form_id`, `submission_id`, `transaction_id`, `viewed`) VALUES
(15, 'WO6546', '2017-04-02 23:25:37', '2017-04-07 06:13:20', 'car', 'transporation', 2, 1, '', 1),
(16, 'WO6546', '2017-04-02 23:25:37', '2017-04-07 06:13:20', 'truck', 'transporation', 2, 1, '', 1),
(17, 'WO6546', '2017-04-02 23:25:37', '2017-04-07 06:13:20', '147 Stanley St', 'address', 2, 1, '', 1),
(18, 'WO6546', '2017-04-02 23:25:37', '2017-04-07 06:13:20', '545-64-6546', 'ssn', 2, 1, '', 1),
(19, 'WO6546', '2017-04-02 23:25:37', '2017-04-07 06:13:20', 'Notes', 'notes', 2, 1, '', 1),
(20, 'WO6546', '2017-04-02 23:25:37', '2017-04-07 06:13:20', 'test', 'total', 2, 1, '', 1),
(21, 'WO6546', '2017-04-02 23:25:37', '2017-04-07 06:13:20', 'Workman', 'last_name', 2, 1, '', 1),
(22, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', 'car', 'transporation', 2, 2, '60021188361', 1),
(23, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', 'boat', 'transporation', 2, 2, '60021188361', 1),
(24, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', 'truck', 'transporation', 2, 2, '60021188361', 1),
(25, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', '598 Main St', 'address', 2, 2, '60021188361', 1),
(26, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', '258-78-9844', 'ssn', 2, 2, '60021188361', 1),
(27, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', 'Notes goes here', 'notes', 2, 2, '60021188361', 1),
(28, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', 'test', 'total', 2, 2, '60021188361', 1),
(29, 'WA9844', '2017-04-02 23:32:18', '2017-04-11 04:47:33', 'Wayne', 'last_name', 2, 2, '60021188361', 1),
(30, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', 'car', 'transporation', 2, 3, '60021529851', 1),
(31, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', 'boat', 'transporation', 2, 3, '60021529851', 1),
(32, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', 'truck', 'transporation', 2, 3, '60021529851', 1),
(33, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', '57 Maple Ave', 'address', 2, 3, '60021529851', 1),
(34, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', '291-78-5161', 'ssn', 2, 3, '60021529851', 1),
(35, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', 'Notes goes here', 'notes', 2, 3, '60021529851', 1),
(36, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', 'Added', 'total', 2, 3, '60021529851', 1),
(37, 'GO5161', '2017-04-06 22:18:20', '2017-04-11 04:53:56', '<NAME>', 'last_name', 2, 3, '60021529851', 1),
(38, 'WO7889', '2017-04-10 22:54:30', '2017-04-11 04:54:14', 'car', 'transporation', 2, 4, '60021738233', 1),
(39, 'WO7889', '2017-04-10 22:54:30', '2017-04-11 04:54:14', 'boat', 'transporation', 2, 4, '60021738233', 1),
(40, 'WO7889', '2017-04-10 22:54:30', '2017-04-11 04:54:14', '461 American Way', 'address', 2, 4, '60021738233', 1),
(41, 'WO7889', '2017-04-10 22:54:30', '2017-04-11 04:54:14', '556-67-7889', 'ssn', 2, 4, '60021738233', 1),
(42, 'WO7889', '2017-04-10 22:54:30', '2017-04-11 04:54:14', 'Test Notes', 'notes', 2, 4, '60021738233', 1),
(43, 'WO7889', '2017-04-10 22:54:30', '2017-04-11 04:54:14', 'test', 'total', 2, 4, '60021738233', 1),
(44, 'WO7889', '2017-04-10 22:54:30', '2017-04-11 04:54:14', 'Workman', 'last_name', 2, 4, '60021738233', 1),
(45, 'WO1111', '2017-04-11 05:07:28', '2017-04-11 05:09:42', 'Brian', 'first_name', 3, 5, '60021779891', 1),
(46, 'WO1111', '2017-04-11 05:07:28', '2017-04-11 05:09:42', 'Workman', 'last_name', 3, 5, '60021779891', 1),
(47, 'WO1111', '2017-04-11 05:07:28', '2017-04-11 05:09:42', 'bike', 'transportation', 3, 5, '60021779891', 1),
(48, 'WO1111', '2017-04-11 05:07:28', '2017-04-11 05:09:42', 'book', 'transportation', 3, 5, '60021779891', 1),
(49, 'WO1111', '2017-04-11 05:07:28', '2017-04-11 05:09:42', '291-55-1111', 'ssn', 3, 5, '60021779891', 1);
-- --------------------------------------------------------
--
-- Table structure for table `form_inputs`
--
CREATE TABLE `form_inputs` (
`id` int(11) NOT NULL,
`form_id` int(11) NOT NULL,
`input_name` varchar(50) NOT NULL,
`input_type` varchar(20) NOT NULL,
`sequence` int(11) NOT NULL,
`custom_class` varchar(50) NOT NULL,
`added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`input_label` varchar(100) NOT NULL,
`input_validation` varchar(255) NOT NULL,
`input_inline` tinyint(1) NOT NULL DEFAULT '0',
`input_columns` varchar(20) NOT NULL,
`encrypt_data` tinyint(1) NOT NULL DEFAULT '0',
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `form_inputs`
--
INSERT INTO `form_inputs` (`id`, `form_id`, `input_name`, `input_type`, `sequence`, `custom_class`, `added`, `input_label`, `input_validation`, `input_inline`, `input_columns`, `encrypt_data`, `updated`) VALUES
(20, 2, 'ssn', 'text', 3, 'ssn', '2017-03-16 02:27:20', 'SSN', '', 0, 'col-md-5', 0, '2017-03-29 02:49:23'),
(4, 2, 'address', 'text', 2, 'address', '2017-03-12 16:00:39', 'Address', 'required', 0, 'col-md-9', 0, '2017-04-02 02:25:46'),
(16, 2, 'transporation', 'checkbox', 1, '', '2017-03-16 00:15:33', 'Transporation', 'required|min_length[1]', 0, 'col-md-9', 0, '2017-03-30 04:01:21'),
(19, 2, 'last_name', 'textarea', 6, '', '2017-03-16 01:24:18', '<NAME>', '', 0, 'col-md-4', 0, '2017-03-29 02:50:40'),
(21, 2, 'notes', 'textarea', 4, '', '2017-03-18 12:51:50', 'Notes', '', 0, 'col-md-6', 0, '2017-03-29 02:49:23'),
(22, 2, 'total', 'select', 5, '', '2017-03-18 12:52:52', 'Total', '', 0, 'col-md-6', 0, '2017-03-29 02:50:40'),
(23, 3, 'transportation', 'checkbox', 3, '', '2017-03-19 14:21:32', 'Transportation', '', 0, 'col-md-2', 1, '2017-04-11 05:06:20'),
(24, 3, 'first_name', 'text', 1, '', '2017-03-19 17:19:40', 'First Name', 'required|min_length[3]', 0, 'col-md-4', 1, '2017-03-29 03:34:35'),
(25, 5, 'first_name', 'text', 1, '', '2017-04-01 18:06:15', '<NAME>', 'required|alpha|max_length[30]', 0, 'col-md-4', 0, '2017-04-01 23:05:40'),
(26, 5, 'last_name', 'text', 3, '', '2017-04-01 18:06:46', '<NAME>', '', 0, 'col-md-4', 0, '2017-04-01 23:05:40'),
(27, 5, 'middle_initial', 'text', 2, '', '2017-04-01 18:52:34', 'Middle Initial', 'alpha|max_length[1]', 0, 'col-md-3', 0, '2017-04-01 23:05:40'),
(28, 999999, 'asdfads', 'text', 1, '', '2017-04-01 19:08:30', 'asdfads', '', 0, 'col-md-2', 0, '2017-04-01 23:08:30'),
(29, 3, 'ssn', 'text', 4, 'ssn', '2017-04-11 01:05:43', 'SSN', '', 0, 'col-md-3', 1, '2017-04-11 05:06:13'),
(30, 3, 'last_name', 'text', 2, '', '2017-04-11 01:06:13', '<NAME>', 'required', 0, 'col-md-3', 0, '2017-04-11 05:06:20');
-- --------------------------------------------------------
--
-- Table structure for table `form_input_options`
--
CREATE TABLE `form_input_options` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`value` varchar(50) NOT NULL,
`form_id` int(11) NOT NULL,
`input_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `form_input_options`
--
INSERT INTO `form_input_options` (`id`, `name`, `value`, `form_id`, `input_id`) VALUES
(160, 'Test', 'test', 2, 22),
(340, 'Boat', 'boat', 2, 16),
(339, 'Car', 'car', 2, 16),
(338, 'Truck', 'truck', 2, 16),
(325, 'Motorcycle', 'bike', 3, 23),
(324, 'Car', 'car', 3, 23),
(323, 'Book', 'book', 3, 23),
(322, 'Test', 'test', 3, 23),
(321, 'Truck', 'truck', 3, 23),
(161, 'Added', 'Added', 2, 22);
-- --------------------------------------------------------
--
-- Table structure for table `form_input_rules`
--
CREATE TABLE `form_input_rules` (
`id` int(11) NOT NULL,
`type` varchar(25) NOT NULL,
`label` varchar(100) NOT NULL,
`parameter` tinyint(1) NOT NULL,
`param_type` varchar(50) NOT NULL,
`description` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `form_input_rules`
--
INSERT INTO `form_input_rules` (`id`, `type`, `label`, `parameter`, `param_type`, `description`) VALUES
(1, 'required', 'Input Required', 0, '', 'Returns FALSE if the form element is empty.'),
(2, 'matches', 'Matches Another Input', 1, 'text', 'Returns FALSE if the form element does not match the one in the parameter. '),
(3, 'regex_match', 'Regex Match', 1, 'text', 'Returns FALSE if the form element does not match the regular expression.'),
(5, 'differs', 'Is input different then another input', 1, 'text', 'Returns FALSE if the form element does not differ from the one in the parameter.'),
(6, 'is_unique', 'Is a unique value in a database column', 1, 'text', 'Returns FALSE if the form element is not unique to the table and field name in the parameter. '),
(7, 'min_length', 'Min length of input', 1, 'number', 'Returns FALSE if the form element is shorter than the parameter value. '),
(8, 'max_length', 'Max length of input', 1, 'number', 'Returns FALSE if the form element is longer than the parameter value. '),
(9, 'exact_length', 'Input must be exactly this long', 1, 'number', 'Returns FALSE if the form element is not exactly the parameter value. '),
(10, 'greater_than', 'Input must be greater then', 1, 'number', 'Returns FALSE if the form element is less than or equal to the parameter value or not numeric. '),
(11, 'greater_than_equal_to', 'Input is greater than or equal to', 1, 'number', 'Returns FALSE if the form element is less than the parameter value, or not numeric. '),
(12, 'less_than', 'Input must be less than', 1, 'number', 'Returns FALSE if the form element is greater than or equal to the parameter value or not numeric. '),
(13, 'less_than_equal_to', 'Input is less than or equal to', 1, '', 'Returns FALSE if the form element is greater than the parameter value, or not numeric. '),
(14, 'in_list', 'Input is part of the following list', 1, '', 'Returns FALSE if the form element is not within a predetermined list. '),
(15, 'alpha', 'Is input all alpha characters. (No Spaces)', 0, '', 'Returns FALSE if the form element contains anything other than alphabetical characters. '),
(16, 'alpha_numeric', 'Input is only letters and numbers', 0, '', 'Returns FALSE if the form element contains anything other than alpha-numeric characters. '),
(17, 'alpha_numeric_spaces', 'Input is all alphanumeric and spaces', 0, '', 'Returns FALSE if the form element contains anything other than alpha-numeric characters or spaces. Should be used after trim to avoid spaces at the beginning or end. '),
(18, 'alpha_dash', 'Input has only alpha characters and dashes', 0, '', 'Returns FALSE if the form element contains anything other than alpha-numeric characters, underscores or dashes. '),
(19, 'numeric', 'Input is all numeric', 0, '', 'Returns FALSE if the form element contains anything other than numeric characters. '),
(20, 'integer', 'Input must be an integer only', 0, '', 'Returns FALSE if the form element contains anything other than an integer. '),
(21, 'decimal', 'Input must be a decimal', 0, '', 'Returns FALSE if the form element contains anything other than a decimal number. '),
(22, 'is_natural', 'Input is a natural Number', 0, '', 'Returns FALSE if the form element contains anything other than a natural number: 0, 1, 2, 3, etc. '),
(23, 'is_natural_no_zero', 'Input is only numbers above 0', 0, '', 'Returns FALSE if the form element contains anything other than a natural number, but not zero: 1, 2, 3, etc. '),
(24, 'valid_url', 'Input is a valid url', 0, '', 'Returns FALSE if the form element does not contain a valid URL. '),
(25, 'valid_email', 'Input is a valid email address', 0, '', 'Returns FALSE if the form element does not contain a valid email address. '),
(26, 'valid_emails', 'Input is comma separated valid emails', 0, '', 'Returns FALSE if any value provided in a comma separated list is not a valid email. '),
(27, 'valid_ip', 'Input is a valid ip address', 0, '', 'Returns FALSE if the supplied IP address is not valid. Accepts an optional parameter of ‘ipv4’ or ‘ipv6’ to specify an IP format. '),
(28, 'valid_base64', 'Input is valid base 64 input', 0, '', 'Returns FALSE if the supplied string contains anything other than valid Base64 characters. ');
-- --------------------------------------------------------
--
-- Table structure for table `groups`
--
CREATE TABLE `groups` (
`id` mediumint(8) UNSIGNED NOT NULL,
`name` varchar(20) NOT NULL,
`description` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `groups`
--
INSERT INTO `groups` (`id`, `name`, `description`) VALUES
(1, 'admin', 'Highest level access and cannot be deleted. This access should not be given to just anyone.'),
(4, 'View Forms', 'User can view forms that appear on the website.'),
(3, 'Edit Forms', 'User can make changes to forms that appear on the website.'),
(5, 'Add New Forms', 'User can add new forms to the website.'),
(6, 'Add Users', 'User can add new users'),
(7, 'Edit Users', 'User can edit users account details'),
(8, 'Print Forms', 'User can print forms that have been submitted.');
-- --------------------------------------------------------
--
-- Table structure for table `login_attempts`
--
CREATE TABLE `login_attempts` (
`id` mediumint(8) UNSIGNED NOT NULL,
`ip_address` varchar(16) NOT NULL,
`login` varchar(100) DEFAULT NULL,
`time` int(11) UNSIGNED DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`version` bigint(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`version`) VALUES
(2);
-- --------------------------------------------------------
--
-- Table structure for table `payments`
--
CREATE TABLE `payments` (
`id` int(11) NOT NULL,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`amount` float NOT NULL,
`form_id` int(11) NOT NULL,
`customer_id` varchar(20) NOT NULL,
`form_cost` float NOT NULL,
`billing_name` varchar(255) NOT NULL,
`billing_address` varchar(100) NOT NULL,
`billing_city` varchar(255) NOT NULL,
`billing_state` varchar(255) NOT NULL,
`billing_zip` varchar(255) NOT NULL,
`transaction_id` varchar(255) NOT NULL,
`approval_code` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `payments`
--
INSERT INTO `payments` (`id`, `date`, `amount`, `form_id`, `customer_id`, `form_cost`, `billing_name`, `billing_address`, `billing_city`, `billing_state`, `billing_zip`, `transaction_id`, `approval_code`) VALUES
(1, '2017-04-02 19:11:19', 50, 2, 'WO5161', 100, 'FWV5aXz4CpHNN2ROK0Vzt88LWKC7Qjuw/pgtxuzD+8BkKo6II1vLH7FRo2Lj/8/5EzzqJgwZHK0cICsLCGFaog==', 'a3rov/VB/vsqdJ2NLDauijRxWMdF277rbCT11P4Ex2NyX1mEWTKteOHHL3NzD0p01ElIT/Dq13zPH4Zc89QN0w==', 'oe44dk/p0sZpELQrDobKvHo0OE6u1CGGuhGdQ++lc2ZcnEKOxmAk38Bsz2vQ', 't8NojYnyhvCGDKwq0DfG', 'rPd4A6JbGXyEaoSJckii', '60021185050', 'S05XJ5'),
(2, '2017-04-02 20:04:43', 100, 2, 'WO5161', 100, 'fTCc8M5N9QiKyuT78G11gFq+6wrqFo3i0MKOhX4a1nR3cTJlBfQgkOxYJNXrXqIDsa0hOPMnHwI0ViMFDOxsVw==', 'KZnKojC4uB1f+fs1+SCgnVa26sybESAI9IJ1z9dd0aGUL29p0qVyp69wGw9oUespJ7aaFdxrOHuncOt00eXLEw==', 'NuBaNPAE2hOUCXJPYbQqm7SOSW6s7RINeiG7+JCCLK8q8aPL3i2Ju5VGZQbC', 'owhIphAvXOko+UhJKigV', 'cBCX95I8P58dyX8hU3xf', '60021185322', 'WBIH22'),
(3, '2017-04-02 20:06:12', 75.99, 2, 'WO5161', 100, 'nPdGKXMngzVyeRbb3K8L1ApUpZMewSteR0HPtvksfRhVWPnb3QRkv+vgF0auQEXvnwo27neRL0nBuFmgpJ80IQ==', 'KL9VO7PzJaomCAx2xcMVUuathLWvHJ7kTGGWXzPQV6ZJ8e29qfYU2mJ4EpcmluPWWZ1+tzk9kXTB8gFrzRmz5A==', 'FWfDLFSfKAA8eGPvDbeBsCPkw7egWHFKsWG96ctUkhM4iDxQUCR+cyvmRg6B', 'Y++S/lUqizawyBpJt4tL', 'D1fAsLWXTUyF9zGDvz92', '60021185341', 'C7ZB7S'),
(4, '2017-04-02 22:38:06', 100, 2, 'WO5645', 100, 'go1n2pwjjWdiJjtI9LhdlYzDFiIr/o2W4xfUzwXHtq50Kqpp6UJ3M47XBzpcPQEMx7P6CzdM9MdU3PZBWMJh9g==', 'OIE3EXZN4bEfQ9NnVYn5R1EIdigVd3GxsYX8vnfo4jEbre5A/IV1WDZPfCX57O487adhJ1uftK8phmgF7eF61g==', 'ztbnqDDVFFy9wErlmLp1WvettpDfTzQrXlIEDchp7RPmfgxw7X2pplaeo/8Z', 'RIt3n8m+KGc7naPEuUvQ', 'maDm9UQGHNGZ2doCuzwM', '60021187034', '1JIDM2'),
(5, '2017-04-02 22:42:49', 100, 2, 'WO5645', 100, 'zxQ2rJ2v8JzWdvKhnYwo0ijbtQN8GsDcqPdcOf0rUfw5AEDW+sw/xshk4UAf/tEK3TxdpzT4FauWT5eFYBJpPQ==', '5Olmw9e4pMf0c+qgXj0jZk3/derGcwPW1UXjCM8r3V9lHK6VcLoK+e+BdjWyBXyhyZv8qqQURXfOSJyTHTnbdg==', '2h12OvAgN1Lyz8L/AE7/V1OFFDHvKycx4/FLNoGNSSEqBR2OzVIM/NIv8RwJ', 'sLJmEOrpqz3QjHq+gr67', 'Zqc1SMQS/4eOqRHc449W', '60021187218', 'V5FUOD'),
(6, '2017-04-02 22:44:22', 100, 2, 'WO5645', 100, '+/zl3n6bMjIrJYlbJcDTcKVSNEatltOCTDjCA9buzKqy28PY8Yof/YmsPfiRS0cbJKVuhxbO0qs91pWOvTw2yQ==', 'crF11BeERj2pAuE6R1Eu4ypXVAxXz3dc2mSqsgjPt+x5I5VPNZRZqm7JIR+nlp83o92DqSokzTuH+tan/Im/sQ==', 'x8XkK5HNOqcGQBh5SEJrtpG8VDPgaPqXR/FywBkQg4/f05n+c2Zv7BvDWxTF', '/Ts04ut2DnJF3DAXKpKG', 'Eg9k+SR+wp1j2SgW7EOC', '60021187274', 'O7QIQ9'),
(7, '2017-04-02 23:02:40', 100, 2, 'TE5161', 100, 'CER0cD/nVSdgNf91jlRdbgEqk+e+csWH0dcILI8SJrdex8nJTMqpzoZ1cvuPzWnyJYAEZ37cbYQLscLyOYm4ag==', '3thkRzmwyRI+8rc0EMQZwecPEo7Hi8lBv+RRuyDTctq8+9y9gPTAm85qjqBQXzYsx9z3tCRi7glHnzU/SuNLQQ==', 'lM0zfRLYHV37D09TcpW1dK1TcpWxA61cjVF4qpP0nl3tRxiPAiNdd+PHHCyM', 'KSLjE8xhUAeZjMfRs8Yw', 'n9dzCmZKZRIXaR6w1VeN', '60021187790', '0F09X2'),
(8, '2017-04-02 23:22:08', 100, 2, 'WO5555', 100, 'K/fl5V7nvCeEddQgIaR7x889MtDu2YHC7wXbW4RZaV1ByFHrZ+M/l1liDuWP8NOiQ8hMrSFEZlRlVVAmQZYlTQ==', 'jyxbNRRBZfpPsnE4wYbL4wGD97B1Q3omilTIA/NLCQhO9rvyB0plC7EG1DObmqP/g05sydgTm9h25Hhod8mzsg==', 'UkMuZSp7bq560G4wv0h835SpG3BcjdNqhYIUi8IdCpR31TURrE9NhAfLAe/D', 'dDlkdaKV1kMEzssHHumN', '9w74ZXmOn7bvrIi/3Wv9', '60021188199', '357IKL'),
(9, '2017-04-02 23:25:37', 100, 2, 'WO6546', 100, 'mdrH+U5THvlEZSRNPFRkKREpoYVkvqEl5N4XCIRjby8EY4KE5zL6fy7tTQ1DsgUuujtXNxqqEXyOJfyRbZBrbg==', 'kj5iRzv6jerlECeiUcO6o1kdC+Og9d8m1Brqb+ljlrkQ3bzLR0nx8Vftp8JPg65+NOC0OpBUth2B6yy/EUlX0Q==', '64JddYiCW7zlnIrYxhNy/QLx1iA9DX8IJTYdtK5CHCMvuvEvkmzvWKhxBaYo', 'pKW3gjXpi25HB0ztm0OI', 'vKlycEExGQAHVHDj0FP+', '60021188240', 'K5X05X'),
(10, '2017-04-02 23:32:18', 75, 2, 'WA9844', 100, '9bxT9YSjL9vyeqj6ISNpKAlJVfxvZVLaHuIzYC04hTIz3HfhsTkOBNlKdOsM6Ozuw1vCLVSBofjYivgCvH2VQg==', 'VcM8bmi+/EgaaBkaTaY+vvkgT8XiTy+X1qG20emMaxax2ifS8fjC3VVGs+KgCN9v1pcA7NThU7zoAjJwxvIYEA==', 'lSkFRys5qxQht2ycWIn0sslXJ+01mu2zbr8XooU+MFuXbxdrgAmTyqYaFUDq', 'tfCwgM8TOEIJZp18RMuK', 'tBc6GFNOps7Rda+9EG7/', '60021188361', 'GCWP5N'),
(11, '2017-04-06 22:18:20', 100, 2, 'GO5161', 100, 'lIcB4lgwQbAnJWq0I4lmAoVGWXJPE2qokZ+rhJyg5uT+0a0Y5npuzAhPkxUK7sOBFUSZavTA8AAWyV2xUi7NdQ==', 'eWyCiWJKRWsUMbJDtUqxJXt7aehpfP0yjvuD4j6xwtcQLvKa0ulRcmYeWM6oy2fT0RxV0uBKI7GJ7kKzzJEY6A==', 'P7HhkEvCKYbin9kyJmvdqFAPWb9iRHEdbLg7ocAhfimMSbdQ1NuZj7LxTARl', '5VYg9hSb7QCQbOGAeevp', 'a1tBvb7TkdsemMkuqszU', '60021529851', '8EE8KX'),
(12, '2017-04-10 18:54:30', 100, 2, 'WO7889', 100, '80VJdVs9tDqdkFfE3GQeKlCfLEH9+6it8iWkT4HW6wePwosFfaEcG0G2Ws7galN93oNIfsZvYHdO3CDkUmplkA==', 'AfGxpAydH/yzZYfbFWzSVG+cI0C/rKRAGEtkNssuLgLTNYHsmbQouPjGPI3vE3Ya7Xc2GLMpOflOD6b4aFocIg==', '7/74Mp5ebB+ompdSL9Vm32z4+55hvYAyHc8DfvTnU13JYG96Yc2MYpp1Vu9z', 'vWsgIQ9/l6J+LocoKZ7Z', 'azgncGL/o4UzI1ZfA8Ys', '60021738233', '50KT2B'),
(13, '2017-04-11 01:07:28', 50, 3, 'WO1111', 50, 'z4+NPGOVL8oKD4R4ZqHz2C6zIUHofrbYIS5D/a39EQ9uljfUjY7BwZaWFfVoZH7NJ6yMNbHTgd8pZ93IxbBGnA==', 'WicQdtEh99kbUE8a21aDz8mcNkxmWg23Q8CecDMCMdbdb+n7pDHAyTiIdy9P7qxXvuLGUvFyhLbOCVggP1eQBA==', 'wyB0EB4On0gN8fscMWvyJULlKbbEmEb2RLDaQphoMf1M/7CPSk9hiDHIfIDPsH1kmk+xcdPRwTlV2h4Rz8spIA==', 'DHm4C01cJxbf8YeAZ99C3JyO/IEBNF2VJgH2dt4sEYSSEzvv5yYqOTi6Rv0P55KhvjHDK9mkOPIZSmm8b3FNhQ==', 'NzHbZloIj0aRU/JDfbRy89aWsawfMFWT6LLxCANQ0WsEVWOPHZRhSk/t4WyAYxJ+mQLkCCtfvhmS+zE2OKRtBw==', '60021779891', '2IUFIG');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` mediumint(8) UNSIGNED NOT NULL,
`ip_address` varchar(16) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(80) NOT NULL,
`salt` varchar(40) NOT NULL,
`email` varchar(100) NOT NULL,
`activation_code` varchar(40) DEFAULT NULL,
`forgotten_password_code` varchar(40) DEFAULT NULL,
`forgotten_password_time` int(11) UNSIGNED DEFAULT NULL,
`remember_code` varchar(40) DEFAULT NULL,
`created_on` int(11) UNSIGNED NOT NULL,
`last_login` int(11) UNSIGNED DEFAULT NULL,
`active` tinyint(1) UNSIGNED DEFAULT NULL,
`first_name` varchar(50) DEFAULT NULL,
`last_name` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`) VALUES
(1, '127.0.0.1', 'admin', <PASSWORD>', '', '<EMAIL>', '', NULL, NULL, 'e4pzUueVsdnubkjl7XYyte', 1268889823, 1491874186, 1, 'Admin', 'istrator'),
(7, '::1', 'bworkm01', '$2y$08$JxWREEQayFQIlZIlrqtSiutEXjoz.x3rXJhf/jlATmp4EYkxRhoS.', '', '<EMAIL>', NULL, NULL, NULL, 'yoyZmdEP.KIabCFW/5A49O', 1488259668, 1488327015, 1, 'Brian', 'Workman'),
(11, '::1', 'test', '$2y$08$oub2OXTy8Bx3uGd//nS9TOD2F.5MC6Z3gJ/45Gdt3HetuLGbY1wTG', '', '<EMAIL>', NULL, NULL, NULL, NULL, 1490581456, NULL, 1, 'Test', 'User');
-- --------------------------------------------------------
--
-- Table structure for table `users_groups`
--
CREATE TABLE `users_groups` (
`id` mediumint(8) UNSIGNED NOT NULL,
`user_id` mediumint(8) UNSIGNED NOT NULL,
`group_id` mediumint(8) UNSIGNED NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users_groups`
--
INSERT INTO `users_groups` (`id`, `user_id`, `group_id`) VALUES
(1, 1, 1),
(22, 7, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin_settings`
--
ALTER TABLE `admin_settings`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `unique_name` (`name`);
--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `customer_address`
--
ALTER TABLE `customer_address`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `customer_phone`
--
ALTER TABLE `customer_phone`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `forms`
--
ALTER TABLE `forms`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `form_data`
--
ALTER TABLE `form_data`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `form_inputs`
--
ALTER TABLE `form_inputs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `form_input_options`
--
ALTER TABLE `form_input_options`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `form_input_rules`
--
ALTER TABLE `form_input_rules`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `groups`
--
ALTER TABLE `groups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `login_attempts`
--
ALTER TABLE `login_attempts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `payments`
--
ALTER TABLE `payments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users_groups`
--
ALTER TABLE `users_groups`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin_settings`
--
ALTER TABLE `admin_settings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `customer`
--
ALTER TABLE `customer`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `customer_address`
--
ALTER TABLE `customer_address`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `customer_phone`
--
ALTER TABLE `customer_phone`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `forms`
--
ALTER TABLE `forms`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `form_data`
--
ALTER TABLE `form_data`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `form_inputs`
--
ALTER TABLE `form_inputs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `form_input_options`
--
ALTER TABLE `form_input_options`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=341;
--
-- AUTO_INCREMENT for table `form_input_rules`
--
ALTER TABLE `form_input_rules`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `groups`
--
ALTER TABLE `groups`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `login_attempts`
--
ALTER TABLE `login_attempts`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=182;
--
-- AUTO_INCREMENT for table `payments`
--
ALTER TABLE `payments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `users_groups`
--
ALTER TABLE `users_groups`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>claudio-alvarez/beerdb-tutorial-p2<filename>hydrate.sql
.mode csv
.headers on
.import csv/countries.csv countries
.import csv/customers.csv customers
.import csv/breweries.csv breweries
.import csv/brands.csv brands
.import csv/beers.csv beers
.import csv/orders.csv orders
.import csv/beers_orders.csv beers_orders
.quit
|
ALTER TABLE [dbo].[CaseStudyExecutives]
ADD CONSTRAINT [FK_CaseStudyExecutives_CaseStudies] FOREIGN KEY ([CaseStudyId]) REFERENCES [dbo].[CaseStudies] ([id]) ON DELETE NO ACTION ON UPDATE NO ACTION;
|
-- Fix disenchant item
-- By <NAME>
SET @SKILL := 475;
SET @ITEM := 52722;
SET @ENTRY1 := 59326;
SET @ENTRY2 := 65053;
SET @ENTRY3 := 59516;
SET @ENTRY4 := 65108;
SET @ENTRY5 := 59514;
SET @ENTRY6 := 65110;
SET @ENTRY7 := 59349;
SET @ENTRY8 := 65034;
SET @ENTRY9 := 63534;
SET @ENTRY10 := 65093;
SET @ENTRY11 := 59472;
SET @ENTRY12 := 65141;
SET @ENTRY13 := 59510;
SET @ENTRY14 := 65114;
SET @ENTRY15 := 59343;
SET @ENTRY16 := 65039;
SET @ENTRY17 := 59350;
SET @ENTRY18 := 65033;
SET @ENTRY19 := 63540;
SET @ENTRY20 := 65004;
SET @ENTRY21 := 59490;
SET @ENTRY22 := 65129;
SET @ENTRY23 := 60201;
SET @ENTRY24 := 65100;
SET @ENTRY25 := 59476;
SET @ENTRY26 := 65137;
SET @ENTRY27 := 62386;
SET @ENTRY28 := 60253;
SET @ENTRY29 := 65238;
SET @ENTRY30 := 59482;
SET @ENTRY31 := 65135;
SET @ENTRY32 := 59217;
SET @ENTRY33 := 65079;
SET @ENTRY34 := 63498;
SET @ENTRY35 := 65376;
SET @ENTRY36 := 54504;
SET @ENTRY37 := 65066;
SET @ENTRY38 := 59312;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY1 WHERE `item_template`.`entry` =@ENTRY1;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY2 WHERE `item_template`.`entry` =@ENTRY2;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY3 WHERE `item_template`.`entry` =@ENTRY3;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY4 WHERE `item_template`.`entry` =@ENTRY4;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY5 WHERE `item_template`.`entry` =@ENTRY5;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY6 WHERE `item_template`.`entry` =@ENTRY6;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY7 WHERE `item_template`.`entry` =@ENTRY7;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY8 WHERE `item_template`.`entry` =@ENTRY8;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY9 WHERE `item_template`.`entry` =@ENTRY9;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY10 WHERE `item_template`.`entry` =@ENTRY10;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY11 WHERE `item_template`.`entry` =@ENTRY11;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY12 WHERE `item_template`.`entry` =@ENTRY12;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY13 WHERE `item_template`.`entry` =@ENTRY13;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY14 WHERE `item_template`.`entry` =@ENTRY14;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY15 WHERE `item_template`.`entry` =@ENTRY15;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY16 WHERE `item_template`.`entry` =@ENTRY16;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY17 WHERE `item_template`.`entry` =@ENTRY17;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY18 WHERE `item_template`.`entry` =@ENTRY18;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY19 WHERE `item_template`.`entry` =@ENTRY19;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY20 WHERE `item_template`.`entry` =@ENTRY20;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY21 WHERE `item_template`.`entry` =@ENTRY21;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY22 WHERE `item_template`.`entry` =@ENTRY22;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY23 WHERE `item_template`.`entry` =@ENTRY23;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY24 WHERE `item_template`.`entry` =@ENTRY24;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY25 WHERE `item_template`.`entry` =@ENTRY25;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY26 WHERE `item_template`.`entry` =@ENTRY26;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY27 WHERE `item_template`.`entry` =@ENTRY27;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY28 WHERE `item_template`.`entry` =@ENTRY28;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY29 WHERE `item_template`.`entry` =@ENTRY29;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY30 WHERE `item_template`.`entry` =@ENTRY30;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY31 WHERE `item_template`.`entry` =@ENTRY31;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY32 WHERE `item_template`.`entry` =@ENTRY32;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY33 WHERE `item_template`.`entry` =@ENTRY33;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY34 WHERE `item_template`.`entry` =@ENTRY34;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY35 WHERE `item_template`.`entry` =@ENTRY35;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY36 WHERE `item_template`.`entry` =@ENTRY36;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY37 WHERE `item_template`.`entry` =@ENTRY37;
UPDATE `item_template` SET `RequiredDisenchantSkill` = @SKILL,
`DisenchantID` = @ENTRY38 WHERE `item_template`.`entry` =@ENTRY38;
REPLACE INTO `disenchant_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) VALUES
(@ENTRY1, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY2, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY3, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY4, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY5, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY6, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY7, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY8, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY9, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY10, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY11, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY12, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY13, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY14, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY15, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY16, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY17, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY18, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY19, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY20, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY21, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY22, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY23, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY24, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY25, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY26, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY27, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY28, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY29, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY30, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY31, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY32, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY33, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY34, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY35, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY36, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY37, @ITEM, 100, 1, 0, 1, 2),
(@ENTRY38, @ITEM, 100, 1, 0, 1, 2);
|
create table EMPLOYEE (emp_name VARCHAR2(20) Primary key,
street VARCHAR2(20),
city VARCHAR2(20)
);
create table COMPANY(
co_name VARCHAR2(20) Primary key,
city VARCHAR2(20)
);
create table WORKS (emp_name VARCHAR2(20) references EMPLOYEE(emp_name),
co_name VARCHAR2(20) references COMPANY(co_name),
salary NUMBER(8,2) check(salary>= 10000)
);
select * from company
commit;
insert into EMPLOYEE values ('X','MG Road','Kolkata');
insert into EMPLOYEE values ('SUSMITA','Ripon Street','Howrah');
insert into EMPLOYEE values ('SANTANU','Middleton Street','Barackpore');
insert into EMPLOYEE values ('SWASWATI','SPStreet','Asansol');
insert into EMPLOYEE values ('MANPREET','AJC Bose Road','Kolkata');
insert into EMPLOYEE values ('TIA','Club Road','Darjeeling');
insert into COMPANY values('XYZ','Kolkata');
insert into COMPANY values('TCS','Kolkata');
insert into COMPANY values('IBM','Kolkata');
insert into WORKS values ('X','XYZ',25000);
insert into WORKS values ('SUSMITA','IBM',23000);
insert into WORKS values ('SANTANU','IBM',10000);
insert into WORKS values ('SWASWATI','TCS',21000);
insert into WORKS values ('MANPREET','TCS',12000);
insert into WORKS values ('TIA','XYZ',21000);
quries
. Find the names of the employees who live in the same city of the company for which they work for
select emp.emp_on,
comp.co_name
from works emp
left join works company comp
select city ,emp_name
from EMPLOYEE
inter
|
<filename>MYSQL - Lista 1 Exercicios/Atividade 1 - Creates, inserts, updates.sql<gh_stars>0
create database db_funcionarios;
use db_funcionarios;
create table DadosFuncionarios(
id bigint auto_increment,
nome_funcionario text(50),
idade int,
salario double,
cargo text(50),
rg int,
primary key (id)
);
INSERT INTO DadosFuncionarios (nome_funcionario, idade, salario, cargo, rg)
VALUES ('<NAME>', '31', '8980.14', 'Gerente', '957418284');
INSERT INTO DadosFuncionarios (nome_funcionario, idade, salario, cargo, rg)
VALUES ('<NAME>', '28', '2874.50', 'Analista junior', '974632548');
INSERT INTO DadosFuncionarios (nome_funcionario, idade, salario, cargo, rg)
VALUES ('<NAME>', '27', '4500.95', 'Supervisor', '957418630');
INSERT INTO DadosFuncionarios (nome_funcionario, idade, salario, cargo, rg)
VALUES ('<NAME>', '30', '15000.14', 'Diretora', '957414784');
INSERT INTO DadosFuncionarios (nome_funcionario, idade, salario, cargo, rg)
VALUES ('<NAME>', '35', '2750.80', 'Analista junior', '985418284');
UPDATE DadosFuncionarios
SET salario = '1250'
WHERE id= 5;
|
<gh_stars>1-10
-- sumres
SELECT DISTINCT
R.SampId AS Samp_Id,
R.SampName ,
R.ResEntUserid ,
R.ResEntTs ,
R.ResStrVal ,
R.ResNumVal ,
SUBSTR(R.SampTag2,1,18) AS Matl_Nbr,
S.SpecName ,
S.DispName AS SpecDispName,
V.Name AS VarName,
V.DispName AS VarDispName,
PLS.ProcStatus AS ProcStat,
SS.EntryTs ,
SS.SampStatus AS Samp_Status
FROM ProcLoopStat PLS,
ResultALL R,
SampleStat SS,
Var V,
Spec S
WHERE R.SampId IN (248311,252747, 257874,260411,283271,296785,299066,300270,304262,248593,297746)
AND R.SpecRevId = S.SpecRevId
AND R.SpecRevId = V.SpecRevId
AND R.VarId = V.VarId
AND R.SampId = SS.SampId
AND R.SampId = PLS.SampId
AND SS.CurrAuditFlag = 1
AND SS.CurrCycleFlag = 1
AND SS.SampStatus <> 20
AND PLS.ProcStatus > 3
AND ((V.TYPE = 'T' AND R.ResReplicateIx <> 0) OR (V.TYPE <> 'T' AND R.ResReplicateIx = 0))
AND R.ResSpecialResultType <> 'C'
AND SUBSTR(R.SampName,1,1) NOT IN ('T')
|
<gh_stars>1-10
-- 用户表
CREATE TABLE `videomanager`.`user`(
`user_id` bigint(10) PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT '用户id',
`name` varchar(20) NOT NULL COMMENT '用户名',
`password` varchar(20) NOT NULL COMMENT '密码',
`gender` tinyint(1) NULL DEFAULT 1 COMMENT '性别 0 女,1 男',
`portrait` varchar(30) COMMENT '头像',
`birthday` datetime(0) NULL COMMENT '出生日期',
`is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 0 未删除,1 已删除',
`gmt_create` datetime(0) NULL COMMENT '注册时间',
`gmt_modified` datetime(0) NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '上次更新时间'
);
-- 管理员表
CREATE TABLE `videomanager`.`admin_user`(
`admin_id` bigint(10) PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT '管理员id',
`name` varchar(20) NOT NULL COMMENT '用户名',
`password` varchar(20) NOT NULL COMMENT '密码',
`is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 0 未删除,1 已删除',
`gmt_create` datetime(0) NULL COMMENT '账号产生时间',
`gmt_modified` datetime(0) NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '上次更新时间'
);
-- 讲师表
CREATE TABLE `videomanager`.`teacher` (
`teacher_id` bigint(10) PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT '讲师id',
`name` varchar(20) NOT NULL COMMENT '讲师姓名',
`gender` tinyint(1) NULL DEFAULT 1 COMMENT '性别 0 女,1 男',
`gmt_modified` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '上次更新时间',
`portrait` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像',
`is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 0 未删除,1 已删除',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '注册时间',
`description` varchar(255) NULL COMMENT '简介',
`job` varchar(50) NULL COMMENT '职务',
`create_admin` bigint(10) NULL COMMENT '创建操作员',
`modified_admin` bigint(10) NULL COMMENT '修改操作员'
);
-- 视频表
CREATE TABLE `videomanager`.`video` (
`video_id` bigint(10) PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT '视频id',
`course_id` bigint(10) NULL COMMENT '课程id',
`teacher_id` bigint(10) NULL COMMENT '讲师id',
`title` varchar(30) NULL COMMENT '标题',
`video_length` int(20) NULL COMMENT '视频长度',
`cover` varchar(255) NULL COMMENT '视频封面',
`video_address` varchar(255) NULL COMMENT '视频地址',
`description` varchar(255) NULL COMMENT '视频简介',
`gmt_create` datetime(0) NULL COMMENT '视频新增时间',
`create_userId` bigint(10) NULL COMMENT '操作管理员用户',
`gmt_update` datetime(0) NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
`is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 0 未删除,1 已删除'
);
-- 课程表
CREATE TABLE `videomanager`.`course` (
`course_id` bigint(10) PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT '课程id',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '注册时间',
`gmt_modified` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '上次更新时间',
`create_admin` bigint(10) NULL DEFAULT NULL COMMENT '创建操作员',
`modified_admin` bigint(10) NULL DEFAULT NULL COMMENT '修改操作员',
`title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简介',
`subject_id` bigint(10) NULL COMMENT '学科id'
);
-- 学科表
CREATE TABLE `videomanager`.`subject` (
`subject_id` bigint(10) PRIMARY key AUTO_INCREMENT NOT NULL COMMENT '学科id',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '注册时间',
`gmt_modified` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '上次更新时间',
`create_admin` bigint(10) NULL DEFAULT NULL COMMENT '创建操作员',
`modified_admin` bigint(10) NULL DEFAULT NULL COMMENT '修改操作员',
`title` varchar(50) NULL COMMENT '学科名称'
);
INSERT INTO admin_user(`name`,`password`) VALUES('<PASSWORD>','<PASSWORD>');
ALTER TABLE course ADD `is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 0 未删除,1 已删除';
ALTER TABLE `subject` ADD `is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 0 未删除,1 已删除';
INSERT INTO course(create_admin,title,description,subject_id)
VALUES
(1,'javaWeb','javaWeb基础课程',1),
(1,'java','java基础课程',1),
(1,'hadoop','hadoop基础课程',1),
(1,'scala','scala基础课程',1),
(2,'色彩搭配','色彩搭配基础课程',1),
(2,'设计','UI设计基础',1),
(3,'VR','VR基础课程',1),
(4,'python基础','python基础课程',1);
INSERT INTO `subject`(create_admin,gmt_create,title)
VALUES
(1,CURRENT_TIME,'大数据'),
(1,CURRENT_TIME,'UI'),
(1,CURRENT_TIME,'VR'),
(1,CURRENT_TIME,'Python人工智能');
INSERT INTO teacher(`name`,gmt_create,description,job,create_admin)
VALUES
('BD_赵',CURRENT_TIME,'大数据赵老师','讲师',1),
('UI_钱',CURRENT_TIME,'UI 钱老师','讲师',1),
('VR_孙',CURRENT_TIME,'VR孙老师','讲师',1),
('Python_李',CURRENT_TIME,'python李老师','讲师',1)
;
INSERT INTO video(course_id,teacher_id,title,description,create_userId,gmt_create)
VALUES
(1,1,'servlet基础','介绍servlet基础用法',1,CURRENT_TIME),
(2,1,'for循环','介绍for循环',1,CURRENT_TIME),
(5,2,'色彩学','色彩学基础',1,CURRENT_TIME),
(8,4,'servlet基础','介绍servlet基础用法',1,CURRENT_TIME);
|
CREATE VIEW [svc].[uvw_UserLogin]
AS
SELECT
UserId
,LoginId
,IsDeletable
,CreatedUtc
FROM
[dbo].[tbl_UserLogin]
|
-- Add migration script here
CREATE TABLE public.new_members
(
guild_id bigint NOT NULL,
channel_id bigint NOT NULL,
welcome_message text,
leave_message text,
PRIMARY KEY (guild_id),
CONSTRAINT "FK_new_members_guild_info_guild_id" FOREIGN KEY (guild_id)
REFERENCES public.guild_info (guild_id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE CASCADE
NOT VALID
);
ALTER TABLE public.new_members
OWNER to postgres;
CREATE TABLE public.welcome_roles
(
guild_id bigint NOT NULL,
role_id bigint NOT NULL,
PRIMARY KEY (guild_id, role_id),
CONSTRAINT "FK_welcome_roles_guild_info_guild_id" FOREIGN KEY (guild_id)
REFERENCES public.guild_info (guild_id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE CASCADE
NOT VALID
);
ALTER TABLE public.welcome_roles
OWNER to postgres;
|
<gh_stars>10-100
create domain domaindroptest int4;
comment on domain domaindroptest is 'About to drop this..';
create domain dependenttypetest domaindroptest;
drop domain domaindroptest;
create domain domainvarchar varchar(5);
create domain domainnumeric numeric(8,2);
create domain domainint4 int4;
create domain domaintext text;
drop domain domainint4 restrict;
drop domain domaintext;
create domain domainint4arr int4[1];
create domain domainchar4arr varchar(4)[2][3];
drop domain domainint4arr restrict;
drop domain domainchar4arr restrict;
create domain dia as int[];
drop domain dia;
create domain dcomptype as comptype;
alter domain dcomptype add constraint c1 check ((value).r <= (value).i);
alter domain dcomptype add constraint c2 check ((value).r > (value).i); -- fail
create domain dcomptype as comptype;
alter domain dcomptype add constraint c1 check ((value).r > 0);
comment on constraint c1 on domain dcomptype is 'random commentary';
create domain dcomptypea as comptype[];
--alter domain dcomptypea add constraint c1 check (value[1].r <= value[1].i);
--alter domain dcomptypea add constraint c2 check (value[1].r > value[1].i); -- fail
create domain posint as int check (value > 0);
create domain vc4 as varchar(4);
create domain dposinta as posint[];
create domain dnotnull varchar(15) NOT NULL;
create domain dnull varchar(15);
create domain dcheck varchar(15) NOT NULL CHECK (VALUE = 'a' OR VALUE = 'c' OR VALUE = 'd');
create domain ddef1 int4 DEFAULT 3;
create domain ddef2 oid DEFAULT '12';
create domain ddef3 text DEFAULT 5;
create domain ddef4 int4 DEFAULT nextval('ddef4_seq');
create domain ddef5 numeric(8,2) NOT NULL DEFAULT '12.12';
create domain dnotnulltest integer;
alter domain dnotnulltest set not null;
alter domain dnotnulltest drop not null;
alter domain ddef1 set default '42';
alter domain ddef1 drop default;
create domain con as integer;
alter domain con add constraint t check (VALUE < 1);
alter domain con add constraint t check (VALUE < 34);
alter domain con add check (VALUE > 0);
alter domain con drop constraint t;
alter domain con drop constraint nonexistent;
alter domain con drop constraint if exists nonexistent;
create domain things AS INT;
ALTER DOMAIN things ADD CONSTRAINT meow CHECK (VALUE < 11);
ALTER DOMAIN things ADD CONSTRAINT meow CHECK (VALUE < 11) NOT VALID;
ALTER DOMAIN things VALIDATE CONSTRAINT meow;
create domain dom as integer;
alter domain dom set not null;
alter domain dom drop not null;
alter domain dom add constraint domchkgt6 check(value > 6);
alter domain dom drop constraint domchkgt6 restrict;
create domain vchar4 varchar(4);
create domain dinter vchar4 check (substring(VALUE, 1, 1) = 'x');
create domain dtop dinter check (substring(VALUE, 2, 1) = '1');
create domain str_domain as text not null;
create domain str_domain2 as text check (value <> 'foo') default 'foo';
create domain pos_int as int4 check (value > 0) not null;
create domain posint as int4;
alter domain posint add constraint c1 check(value >= 0);
create domain ddtest1d as ddtest1;
create domain ddtest1d as ddtest1[];
create domain posint2 as posint check (value % 2 = 0);
alter domain posint add constraint c2 check(value >= 10); -- fail
alter domain posint add constraint c2 check(value > 0); -- OK
drop domain posint cascade;
create domain mynums as numeric(4,2)[1];
create domain mynums2 as mynums;
create domain orderedpair as int[2] check (value[1] < value[2]);
create domain inotnull int check (sql_is_distinct_from(value, null));
create domain testdomain1 as int constraint unsigned check (value > 0);
alter domain testdomain1 rename constraint unsigned to unsigned_foo;
alter domain testdomain1 drop constraint unsigned_foo;
drop domain testdomain1;
CREATE DOMAIN js_int_not_null AS int NOT NULL;
CREATE DOMAIN js_int_array_1d AS int[] CHECK(array_length(VALUE, 1) = 3);
CREATE DOMAIN js_int_array_2d AS int[][] CHECK(array_length(VALUE, 2) = 3);
create domain j_ordered_pair as j_unordered_pair check((value).x <= (value).y);
CREATE DOMAIN testboolxmldomain AS bool;
CREATE DOMAIN testdatexmldomain AS date;
CREATE DOMAIN testxmldomain AS varchar;
|
DROP TABLE IF EXISTS users_ratings;
ALTER TABLE movies
DROP COLUMN rating,
DROP COLUMN rating_count;
|
<filename>sql/_07_misc/_02_prameter_bind/cases/CUBRIDSUS1190.sql
--CUBRIDSUS1190 reproduce sql
create table foo ( i int, j int, k int);
insert into foo values(1,1,1);
create table bar(i int primary key);
insert into bar values(1);
--set optimization level 513;
select * from bar, foo where bar.i in(foo.i, foo.j, foo.k) using index bar.pk_bar_i(+);
drop foo;
drop bar;
create table aaa(a integer);
insert into aaa values(1);
create index idx1 on aaa(a);
$INT, $1, $INT, $1, $INT, $1;
select rownum, a from aaa where a in(?,?,?) using index idx1(+);
drop aaa;
|
<reponame>vasilvalkov/Databases
-- find the email addresses of each employee (by his first and last name). Consider that the mail domain is telerik.com. Emails should look like “<EMAIL>". The produced column should be named "Full Email Addresses".
USE TelerikAcademy
SELECT FirstName + '.' + LastName + '@<EMAIL>' AS [Full Email Addresses]
FROM Employees
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.