Ejemplo n.º 1
0
 public static bool RemoveColumn(MySQL sql, string table, string column)
 {
     return(sql.ExecuteQuery($"ALTER TABLE {table} DROP COLUMN {column}") > 0);
 }
Ejemplo n.º 2
0
 public static bool ConvertColumn(MySQL sql, string table, string column, string type)
 {
     return(sql.ExecuteQuery($"ALTER TABLE {table} MODIFY COLUMN {column} {type}") > 0);
 }
Ejemplo n.º 3
0
 public static bool CreateTable(MySQL sql, string table, List <ColumnProperty> properties)
 {
     return(sql.ExecuteQuery(MySQLBuilder.Static.TableBuilder(table, properties)) > 0);
 }