-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ad2d90f
Showing
738 changed files
with
130,520 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
*.js linguist-vendored | ||
CHANGELOG.md export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/node_modules | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
/.idea | ||
/.vscode | ||
/.vagrant | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Cambiando el tipo de dato de la table clientenatural | ||
|
||
ALTER TABLE clientenatural ALTER COLUMN c_n_correo TYPE varchar(50); | ||
|
||
Cambiar el nombre a una columna: | ||
|
||
ALTER TABLE nombretabla RENAME COLUMN nombre_actual TO nombre_nuevo | ||
|
||
Borrar una columna | ||
|
||
ALTER TABLE nombretabla DROP COLUMN nombre_columna | ||
|
||
Agregar columna | ||
|
||
ALTER TABLE nombretabla ADD COLUMN nombre_columna (rectricciones) | ||
|
||
Eliminarle a una columna la restriccion de no aceptar valores nulos | ||
|
||
ALTER TABLE nombretabla ALTER COLUMN nombre_columna DROP NOT NULL | ||
|
||
Modificar la columna para que apartir de ahora no acepte valores nulos | ||
|
||
ALTER TABLE nombretabla ALTER COLUMN nombre_columna SET NOT NULL | ||
|
||
Modificar el tipo de dato a una columna | ||
|
||
ALTER TABLE nombretabla ALTER COLUMN nombre_columna TYPE (tipo) | ||
|
||
Eliminar una Foreign-key constraint | ||
|
||
ALTER TABLE nombretabla DROP CONSTRAINT nombre_foreign_key_fkey | ||
|
||
Agregar una foreign-key | ||
|
||
ALTER TABLE nombretabla ADD FOREIGN KEY(nombre_columna) REFERENCES nomina(nombre_columna) | ||
|
||
Eliminar el valor que tiene por default una columna | ||
|
||
ALTER TABLE nombretabla ALTER COLUMN nombre_columna DROP default | ||
|
||
Agregar un valor por default a una columna | ||
|
||
ALTER TABLE nombretabla ALTER COLUMN nombre_columna SET DEFAULT 125 |
Oops, something went wrong.