Subversion-Projekte lars-tiefland.ci

Revision

Revision 2257 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2257 Revision 2414
Zeile 4... Zeile 4...
4
 *
4
 *
5
 * An open source application development framework for PHP
5
 * An open source application development framework for PHP
6
 *
6
 *
7
 * This content is released under the MIT License (MIT)
7
 * This content is released under the MIT License (MIT)
8
 *
8
 *
9
 * Copyright (c) 2014 - 2018, British Columbia Institute of Technology
9
 * Copyright (c) 2014 - 2019, British Columbia Institute of Technology
10
 *
10
 *
11
 * Permission is hereby granted, free of charge, to any person obtaining a copy
11
 * Permission is hereby granted, free of charge, to any person obtaining a copy
12
 * of this software and associated documentation files (the "Software"), to deal
12
 * of this software and associated documentation files (the "Software"), to deal
13
 * in the Software without restriction, including without limitation the rights
13
 * in the Software without restriction, including without limitation the rights
14
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Zeile 27... Zeile 27...
27
 * THE SOFTWARE.
27
 * THE SOFTWARE.
28
 *
28
 *
29
 * @package	CodeIgniter
29
 * @package	CodeIgniter
30
 * @author	EllisLab Dev Team
30
 * @author	EllisLab Dev Team
31
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
31
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
32
 * @copyright	Copyright (c) 2014 - 2018, British Columbia Institute of Technology (http://bcit.ca/)
32
 * @copyright	Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/)
33
 * @license	http://opensource.org/licenses/MIT	MIT License
33
 * @license	https://opensource.org/licenses/MIT	MIT License
34
 * @link	https://codeigniter.com
34
 * @link	https://codeigniter.com
35
 * @since	Version 1.0.0
35
 * @since	Version 1.0.0
36
 * @filesource
36
 * @filesource
37
 */
37
 */
38
defined('BASEPATH') OR exit('No direct script access allowed');
38
defined('BASEPATH') OR exit('No direct script access allowed');
Zeile 346... Zeile 346...
346
			}
346
			}
347
		}
347
		}
Zeile 348... Zeile 348...
348
 
348
 
349
		if (($result = $this->db->query($sql)) !== FALSE)
349
		if (($result = $this->db->query($sql)) !== FALSE)
-
 
350
		{
-
 
351
			if (isset($this->db->data_cache['table_names']))
350
		{
352
			{
-
 
353
				$this->db->data_cache['table_names'][] = $table;
Zeile 351... Zeile 354...
351
			isset($this->db->data_cache['table_names']) && $this->db->data_cache['table_names'][] = $table;
354
			}
352
 
355
 
353
			// Most databases don't support creating indexes from within the CREATE TABLE statement
356
			// Most databases don't support creating indexes from within the CREATE TABLE statement
354
			if ( ! empty($this->keys))
357
			if ( ! empty($this->keys))
Zeile 722... Zeile 725...
722
				'name'			=> $key,
725
				'name'			=> $key,
723
				'new_name'		=> isset($attributes['NAME']) ? $attributes['NAME'] : NULL,
726
				'new_name'		=> isset($attributes['NAME']) ? $attributes['NAME'] : NULL,
724
				'type'			=> isset($attributes['TYPE']) ? $attributes['TYPE'] : NULL,
727
				'type'			=> isset($attributes['TYPE']) ? $attributes['TYPE'] : NULL,
725
				'length'		=> '',
728
				'length'		=> '',
726
				'unsigned'		=> '',
729
				'unsigned'		=> '',
727
				'null'			=> '',
730
				'null'			=> NULL,
728
				'unique'		=> '',
731
				'unique'		=> '',
729
				'default'		=> '',
732
				'default'		=> '',
730
				'auto_increment'	=> '',
733
				'auto_increment'	=> '',
731
				'_literal'		=> FALSE
734
				'_literal'		=> FALSE
732
			);
735
			);